回复:[acrn-users] 2021 ACRN Project Technical Community Meeting (2021/1~2021/6): @ Monthly 3rd Wednesday 4PM (China-Shanghai), Wednesday 9AM (Europe-London), Tuesday 0AM (US-West Coast),

杰克朱
好的,Jerry Zou. 我的网上参会信息是来自以下这份邮件。感谢您给予的更正信息。
-------- 原始邮件 -------- 主题:[acrn-users] 2021 ACRN Project Technical Community Meeting (2021/1~2021/6): @ Monthly 3rd Wednesday 4PM (China-Shanghai), Wednesday 9AM (Europe-London), Tuesday 0AM (US-West Coast), 发件人:"Zou, Terry" 收件人:acrn-dev@...," acrn-users@..." 抄送:"Fang, Peter" ,"Chang, Stanley " ,"Schroeder, Henning " ,"Liu, Junming" ,"Ueda, Kenta" ,"Schweikhardt, Markus " ,"VanCutsem, Geoffroy " ,"Li, Wilson" ,"Liang, Yi" ,"Chen, Gang C" ,"Taylor, Deb" ,"Kim, Dongwon" ,"Kinder, David B"
toggle quoted messageShow quoted text
Special Notes: If you have Zoom connection issue by using web browser, please
install & launch Zoom application, manually input the meeting ID (320664063)
to join the Zoom meeting.
Agenda & Archives:
WW |
Topic |
Presenter |
Status |
WW04 |
ACRN PCI based vUART introduction |
Tao Yuhong |
1/20/2021 |
WW13 |
ACRN PTCM Introduction |
Wang Yu / Huang Yonghua |
3/24/2021 |
Project ACRN: A flexible, light-weight, open source reference hypervisor for IoT devices
We invite you to attend a monthly "Technical Community" meeting where we'll meet community members and talk about the ACRN project and plans.
As we explore community interest and involvement opportunities, we'll (re)schedule these meetings at a time convenient to most attendees:
- Meets every 3rd Wednesday, Starting Jan 20, 2021: 11AM-12AM (China-Shanghai), 7PM-8PM (US-West Coast), 3AM-4AM (Europe-London)
- Chairperson: Terry ZOU, terry.zou@... (Intel)
- Online conference link: https://zoom.com.cn/j/320664063
- Zoom Meeting ID: 320 664 063
- Special Notes: If you have Zoom connection
issue by using web browser, please launch Zoom application, manually input the meeting ID
(320664063) to join the Zoom meeting.
- Online conference phone:
- China: +86 010 87833177 or 400 669 9381 (Toll Free)
- Germany: +49 (0) 30 3080 6188 or +49 800 724 3138 (Toll Free)
- US: +1 669 900 6833 or +1 646 558 8656 or +1 877 369 0926 (Toll Free) or +1 855 880 1246 (Toll Free)
- Additional international phone numbers
|
|
回复:回复:[acrn-users] 2021 ACRN Project Technical Community Meeting Minutes - WW13'21

杰克朱
谢谢Jerry Zou.原来是这样,但在ACRN主页上的信息应该更正一下了。还有,如果我想线下联系ACRN的开发技术人员交流,可以有联系电话吗?
-------- 原始邮件 -------- 主题:Re: 回复:[acrn-users] 2021 ACRN Project Technical Community Meeting Minutes - WW13'21 发件人:"Zou, Terry" 收件人:杰克朱 抄送:acrn-users@...
toggle quoted messageShow quoted text
Hi Jack, ACRN TCM is planned on every 3rd Wednesday (monthly from 2021), 16:00~17:00 afternoon (PRC time).
I will re-send TCM meeting-series to you, welcome to join the next session : )
Best & Regards
Terry
From: acrn-users@... <acrn-users@...>
On Behalf Of ???
Sent: Wednesday, March 24, 2021 6:11 PM
To: acrn-users@...
Subject: 回复:[acrn-users] 2021 ACRN Project Technical Community Meeting Minutes - WW13'21
你好,
。今天我参加11:00~12:00am的网上会议的时候没人么?是由于什么原因吗?
-------- 原始邮件 --------
主题:[acrn-users] 2021 ACRN Project Technical Community Meeting Minutes - WW13'21
发件人:"Zou, Terry"
收件人:acrn-users@...,"
acrn-dev@..."
抄送:
ACRN Project TCM - 24th Mar 2021
Attendees (Total 16, 24/03)
Note: If you need
to edit this document, please ask for access. We disabled anonymous editing to keep track of changes and identify who are the owners of the opens and agenda items.
Note: When adding opens or agenda items, please provide details (not only links), add your name next to the item you have added
and specify your expectation from the TCM
1.
ACRN project update:
a.
Happy 3rd Birthday, Project ACRN™:
https://projectacrn.org/happy-3rd-birthday-project-acrn/
2.
Open Source HW of Tiger Lake NUC update: NUC11 was officially published in
https://www.intel.com/content/www/us/en/products/boards-kits/nuc/mini-pcs.html. ACRN is doing evaluation, stay tuned, will update in
https://projectacrn.github.io/latest/reference/hardware.html
3.
“WW13’21 ACRN Real-Time Enhancement Introduction” Huang Yonghua
Description: We will briefly introduce key challenges of Real-Time, Latency in industrial usage and typical enhancement methodology in ACRN.
4.
All: Community open discussion.
Q&A: IO device performance with VirtIO in post-launched RTVM maybe lower than Pass-through devices in pre-launched RTVM. But pass-through
device performance in Post-launched RTVM is similar to Pre-launched RTVM.
5.
Next meeting agenda proposal:
WW
|
Topic
|
Presenter
|
Status
|
WW04
|
ACRN PCI based vUART introduction
|
Tao Yuhong
|
1/20/2021
|
WW13
|
ACRN
Real-Time Enhancement
|
Huang Yonghua
|
3/24/2021
|
b.
Portal:
https://projectacrn.org
c.
Source code:
https://github.com/projectacrn
d.
email:
info@...
e.
Technical Mailing list:
acrn-dev@...
|
|
Re: 回复:[acrn-users] 2021 ACRN Project Technical Community Meeting Minutes - WW13'21
Hi Jack, ACRN TCM is planned on every 3rd Wednesday (monthly from 2021), 16:00~17:00 afternoon (PRC time).
I will re-send TCM meeting-series to you, welcome to join the next session : )
Best & Regards
Terry
toggle quoted messageShow quoted text
From: acrn-users@... <acrn-users@...>
On Behalf Of ???
Sent: Wednesday, March 24, 2021 6:11 PM
To: acrn-users@...
Subject: 回复:[acrn-users] 2021 ACRN Project Technical Community Meeting Minutes - WW13'21
你好,
。今天我参加11:00~12:00am的网上会议的时候没人么?是由于什么原因吗?
-------- 原始邮件 --------
主题:[acrn-users] 2021 ACRN Project Technical Community Meeting Minutes - WW13'21
发件人:"Zou, Terry"
收件人:acrn-users@...,"
acrn-dev@..."
抄送:
ACRN Project TCM - 24th Mar 2021
Attendees (Total 16, 24/03)
Note: If you need
to edit this document, please ask for access. We disabled anonymous editing to keep track of changes and identify who are the owners of the opens and agenda items.
Note: When adding opens or agenda items, please provide details (not only links), add your name next to the item you have added
and specify your expectation from the TCM
1.
ACRN project update:
a.
Happy 3rd Birthday, Project ACRN™:
https://projectacrn.org/happy-3rd-birthday-project-acrn/
2.
Open Source HW of Tiger Lake NUC update: NUC11 was officially published in
https://www.intel.com/content/www/us/en/products/boards-kits/nuc/mini-pcs.html. ACRN is doing evaluation, stay tuned, will update in
https://projectacrn.github.io/latest/reference/hardware.html
3.
“WW13’21 ACRN Real-Time Enhancement Introduction” Huang Yonghua
Description: We will briefly introduce key challenges of Real-Time, Latency in industrial usage and typical enhancement methodology in ACRN.
4.
All: Community open discussion.
Q&A: IO device performance with VirtIO in post-launched RTVM maybe lower than Pass-through devices in pre-launched RTVM. But pass-through
device performance in Post-launched RTVM is similar to Pre-launched RTVM.
5.
Next meeting agenda proposal:
WW
|
Topic
|
Presenter
|
Status
|
WW04
|
ACRN PCI based vUART introduction
|
Tao Yuhong
|
1/20/2021
|
WW13
|
ACRN
Real-Time Enhancement
|
Huang Yonghua
|
3/24/2021
|
b.
Portal:
https://projectacrn.org
c.
Source code:
https://github.com/projectacrn
d.
email:
info@...
e.
Technical Mailing list:
acrn-dev@...
|
|
回复:[acrn-users] 2021 ACRN Project Technical Community Meeting Minutes - WW13'21

杰克朱
你好, 。今天我参加11:00~12:00am的网上会议的时候没人么?是由于什么原因吗?
-------- 原始邮件 -------- 主题:[acrn-users] 2021 ACRN Project Technical Community Meeting Minutes - WW13'21 发件人:"Zou, Terry" 收件人:acrn-users@...," acrn-dev@..." 抄送:
toggle quoted messageShow quoted text
ACRN Project TCM - 24th Mar 2021
Attendees (Total 16, 24/03)
Note: If you need to edit this document, please ask for access. We disabled anonymous editing to keep track of changes
and identify who are the owners of the opens and agenda items.
Note: When adding opens or agenda items, please provide details (not only links), add your name next to the item you have added
and specify your expectation from the TCM
Agenda
- ACRN project update:
- Happy 3rd Birthday, Project ACRN™: https://projectacrn.org/happy-3rd-birthday-project-acrn/
- Open Source HW of Tiger Lake NUC update: NUC11 was officially published in https://www.intel.com/content/www/us/en/products/boards-kits/nuc/mini-pcs.html.
ACRN is doing evaluation, stay tuned, will update in https://projectacrn.github.io/latest/reference/hardware.html
- “WW13’21 ACRN Real-Time Enhancement Introduction” Huang Yonghua
Description: We will briefly introduce key challenges of Real-Time, Latency in industrial usage and typical enhancement methodology in ACRN.
- All: Community open discussion.
Q&A: IO device performance with VirtIO in post-launched RTVM maybe lower than Pass-through devices in pre-launched RTVM. But pass-through device performance in Post-launched
RTVM is similar to Pre-launched RTVM.
- Next meeting agenda proposal:
WW |
Topic |
Presenter |
Status |
WW04 |
ACRN PCI based vUART introduction |
Tao Yuhong |
1/20/2021 |
WW13 |
ACRN Real-Time Enhancement |
Huang Yonghua |
3/24/2021 |
Resources
- Portal: https://projectacrn.org
- Source code: https://github.com/projectacrn
- email: info@...
- Technical Mailing list: acrn-dev@...
|
|
2021 ACRN Project Technical Community Meeting Minutes - WW13'21
ACRN Project TCM - 24th Mar 2021
Attendees (Total 16, 24/03)
Note: If you need to edit this document, please ask for access. We disabled anonymous editing to keep track of changes
and identify who are the owners of the opens and agenda items.
Note: When adding opens or agenda items, please provide details (not only links), add your name next to the item you have added
and specify your expectation from the TCM
Agenda
- ACRN project update:
- Happy 3rd Birthday, Project ACRN™: https://projectacrn.org/happy-3rd-birthday-project-acrn/
- Open Source HW of Tiger Lake NUC update: NUC11 was officially published in https://www.intel.com/content/www/us/en/products/boards-kits/nuc/mini-pcs.html.
ACRN is doing evaluation, stay tuned, will update in https://projectacrn.github.io/latest/reference/hardware.html
- “WW13’21 ACRN Real-Time Enhancement Introduction” Huang Yonghua
Description: We will briefly introduce key challenges of Real-Time, Latency in industrial usage and typical enhancement methodology in ACRN.
- All: Community open discussion.
Q&A: IO device performance with VirtIO in post-launched RTVM maybe lower than Pass-through devices in pre-launched RTVM. But pass-through device performance in Post-launched
RTVM is similar to Pre-launched RTVM.
- Next meeting agenda proposal:
WW |
Topic |
Presenter |
Status |
WW04 |
ACRN PCI based vUART introduction |
Tao Yuhong |
1/20/2021 |
WW13 |
ACRN Real-Time Enhancement |
Huang Yonghua |
3/24/2021 |
Resources
- Portal: https://projectacrn.org
- Source code: https://github.com/projectacrn
- email: info@...
- Technical Mailing list: acrn-dev@...
|
|
some issues when launch debian and windows uos
Hi all,
I build a Ubuntu18.04 SOS on our 7300U board. SCENARIO =
industry
$ uname -a
Linux acrn-Kabylake 5.4.72-PKT-200203T060100Z #2 SMP PREEMPT Mon Mar
8 10:59:26 CST 2021 x86_64 x86_64 x86_64 GNU/Linux
$ dmesg | grep ACRN
[ 0.000000] Hypervisor detected: ACRN
[ 65.293721] ACRNTrace: Initialized acrn trace module with 4 cpu
[ 65.293722] ACRN HVLog: no fixed memory reserve for hvlog.
$ acrn-dm -v
DM version is: 2.3-b6e24ea4-dirty (daily
tag:acrn-2020w48.5-180000p), build by acrn@2021-03-08 10:28:57
There are some issues when launch UOS:
issue1: The SOS freezes for 60s at startup after the
i915.enable_gvt=1 added in 40_customer.

the dmesg file is in attachment.
issue2: launch Debian as UOS, warning messages(as follows)
keep printing but the UOS works fine.
Failed to emulate instruction [mmio address 0xdf57e000, size
4Unhandled memory access to 0xdf57e004
Failed to emulate instruction [mmio address 0xdf57e004, size
4Unhandled memory access to 0xdf57e008
Failed to emulate instruction [mmio address 0xdf57e008, size
4Unhandled memory access to 0xdf57e00c
....
issue3: follow the latest document to using_windows_as_uos,
Enable the GVT-d GOP Driver.
The board often restarts after running the install_win.sh script.
have tried 10 times, see UEFI shell only twice, and the rest are
restarted directly.
finished the windows installation by GVT-d, but never launch WaaG
successfully
because the board always restart when running launch_win.sh
the attachment is the tar of the dmesg files and scripts.
Any information, or thoughts would be greatly appreciated.
Thanks and Best Regards,
ZhangShuai
--
Xi'an R&D Center Computerized Numerical Control R&D Dept. Shuai Zhang
Tel : 029-84503040-8360
E-mail : zhangshuai@... Web : www.jingdiao.com
|
|
2021 ACRN Project Technical Community Meeting (2021/1~2021/6): @ Monthly 3rd Wednesday 4PM (China-Shanghai), Wednesday 9AM (Europe-London), Tuesday 0AM (US-West Coast),
Special Notes: If you have Zoom connection issue by using web browser, please
install & launch Zoom application, manually input the meeting ID (320664063)
to join the Zoom meeting.
Agenda & Archives:
WW |
Topic |
Presenter |
Status |
WW04 |
ACRN PCI based vUART introduction |
Tao Yuhong |
1/20/2021 |
WW13 |
ACRN PTCM Introduction |
Wang Yu / Huang Yonghua |
3/24/2021 |
Project ACRN: A flexible, light-weight, open source reference hypervisor for IoT devices
We invite you to attend a monthly "Technical Community" meeting where we'll meet community members and talk about the ACRN project and plans.
As we explore community interest and involvement opportunities, we'll (re)schedule these meetings at a time convenient to most attendees:
- Meets every 3rd Wednesday, Starting Jan 20, 2021: 11AM-12AM (China-Shanghai), 7PM-8PM (US-West Coast), 3AM-4AM (Europe-London)
- Chairperson: Terry ZOU, terry.zou@... (Intel)
- Online conference link: https://zoom.com.cn/j/320664063
- Zoom Meeting ID: 320 664 063
- Special Notes: If you have Zoom connection
issue by using web browser, please launch Zoom application, manually input the meeting ID
(320664063) to join the Zoom meeting.
- Online conference phone:
- China: +86 010 87833177 or 400 669 9381 (Toll Free)
- Germany: +49 (0) 30 3080 6188 or +49 800 724 3138 (Toll Free)
- US: +1 669 900 6833 or +1 646 558 8656 or +1 877 369 0926 (Toll Free) or +1 855 880 1246 (Toll Free)
- Additional international phone numbers
|
|
Paid ACRN developer research opportunity

Kinder, David B
[The ACRN mailing list admin has approved this message, posted by an ACRN maintainer.] I'm looking to do paid interviews with embedded developers and system integration engineers who have completed one or more projects on ACRN, so we can learn about hypervisor usage. My name is Greg Labavitch, and I work at a user-centered research and design company ( concreteux.com) that does research with technology professionals to provide input on the usefulness and usability of technical products and tools. I’m asking for one hour of your time for a remote video conference in the first half of March 2021, and we'll give you $150 for your participation. Your input will directly help the ACRN team understand your usage and development experience with ACRN. If you're interested, please fill out this Google Form questionnaire. For questions, please feel free to contact me at greg.labavitch@.... Thank you!
|
|
Re: Running ACRN in Virtualbox on NUC7i7DNH?

Geoffroy Van Cutsem
Hi Lonnie,
I have never heard of anyone attempting to boot ACRN in a VirtualBox VM… do let us know if you and have any success there!
😉
One other path you could take is to QEMU on Windows and follow this tutorial:
https://projectacrn.github.io/latest/tutorials/acrn_on_qemu.html. I don’t have any experience with QEMU on Windows, but assuming it only does the emulation piece, you’d probably
also want to use the HAXM driver to expose VT-x (https://github.com/intel/haxm).
Unfortunately, I don’t have any Windows machine other than my official IT machine… and I don’t think my IT department would be too thrilled if I was to try this on it
😊
Cheers,
Geoffroy
toggle quoted messageShow quoted text
From: acrn-users@... <acrn-users@...>
On Behalf Of Lonnie Cumberland
Sent: Sunday, February 7, 2021 2:18 PM
To: acrn-users@...
Subject: [acrn-users] Running ACRN in Virtualbox on NUC7i7DNH?
Hi All,
I am running my new NUC7i7DNHE that has Windows 10 on it and have installed VirtualBox so that I can use it as a build platform for ACRN in some VM's.
I am wondering if anyone has been able to install and boot up ACRN in a VirtualBox VM with Clear Linux or other?
I have been using these dated ACRN videos as guides while trying to replicate just a basic install and boot up of ACRN to see it in action before wiping my NUC and working from that pathway.
--- ACRN Getting Started and Demo
Basically, I would just like to see it run locally, in a VM if possible, before digging heavier into it.
|
|
Running ACRN in Virtualbox on NUC7i7DNH?
Lonnie Cumberland <lonnie@...>
Hi All,
I am running my new NUC7i7DNHE that has Windows 10 on it and have installed VirtualBox so that I can use it as a build platform for ACRN in some VM's.
I am wondering if anyone has been able to install and boot up ACRN in a VirtualBox VM with Clear Linux or other?
I have been using these dated ACRN videos as guides while trying to replicate just a basic install and boot up of ACRN to see it in action before wiping my NUC and working from that pathway.
--- ACRN Getting Started and Demo
--- Info on ACRN design
Basically, I would just like to see it run locally, in a VM if possible, before digging heavier into it.
Cheers, Lonnie
|
|
Re: Can't enable uart for Ubuntu SOS
Hi zhangshuai
Could you please try "make install" instead of copy the grubx64.efi?
It works for my setup: root@acrn-OptiPlex-9010:/home/acrn/work/grub-2.04# make install root@acrn-OptiPlex-9010:/home/acrn/work/grub-2.04# grub-install -V grub-install (GRUB) 2.02-2ubuntu8.17 root@acrn-OptiPlex-9010:/home/acrn/work/grub-2.04# reboot root@acrn-OptiPlex-9010:/home/acrn# grub-install -V grub-install (GRUB) 2.04
BR. Fuzhong
toggle quoted messageShow quoted text
-----Original Message----- From: acrn-users@... <acrn-users@...> On Behalf Of "??????-?????-?? Sent: Thursday, February 4, 2021 5:27 PM To: acrn-users@... Cc: ligang@...; wumengkui@...; lijia@...; hujunke@...; hudongjiang@... Subject: Re: [acrn-users] Can't enable uart for Ubuntu SOS Hi Victor, update the grub2.05 according to this https://projectacrn.github.io/latest/tutorials/using_grub.html?#installing-self-built-grub, copy the grubx64.efi to /boot/efi/EFI/ubuntu . But grub cannot boot ubuntu to startup. Is the file in the wrong place? Thanks and Best Regards, zhangshuai -- Xi'an R&D Center Computerized Numerical Control R&D Dept. Shuai Zhang Tel : 029-84503040-8360 E-mail :zhangshuai@... Web :www.jingdiao.com
|
|
Re: Can't enable uart for Ubuntu SOS
hi Shuai, If you follows https://projectacrn.github.io/latest/tutorials/using_grub.html?#installing-self-built-grubthen you should not replace grubx64.efi to /boot/efi/EFI/ubuntu since grub-mkimge -p parameter is incorrect. Ubuntu GRUB is built with its own build script and parameters. please put efi application to your "-p" specified folder, (maybe you can try "grub-mkimage -p /EFI/grub ..." to replace your Ubuntu grub efi but I am not sure it can work, depends on your ubuntu version.) BR, Victor
toggle quoted messageShow quoted text
|
|
Re: Can't enable uart for Ubuntu SOS

Geoffroy Van Cutsem
Hi Zhangshuai,
What is your version of Ubuntu? I'm running Ubuntu 20.04 on a machine and did not have to update Grub to install ACRN.
This is the right location, do you see the Grub menu at all after updating the Grub binary? If not, can you get to the EFI shell and manually start it from there? Make sure you have secure boot turned off in your bios as well.
Back to your question about the UART, can you also try to use the bdf info instead, i.e.: # lspci | grep UART 00:18.0 . Series HSUART Controller #1 (rev 0b) 00:18.1 . Series HSUART Controller #2 (rev 0b)
Which translates into uart=bdf@00:18.1 (if you want to use the second one for example).
One last thing, make sure you have flow control (HW and SW) turned off in your serial port program (e.g. minicom).
Geoffroy
toggle quoted messageShow quoted text
-----Original Message----- From: acrn-users@... <acrn-users@...> On Behalf Of "??????-?????-?? Sent: Thursday, February 4, 2021 10:27 AM To: acrn-users@... Cc: ligang@...; wumengkui@...; lijia@...; hujunke@...; hudongjiang@... Subject: Re: [acrn-users] Can't enable uart for Ubuntu SOS
Hi Victor, update the grub2.05 according to this https://projectacrn.github.io/latest/tutorials/using_grub.html?#installing- self-built-grub, copy the grubx64.efi to /boot/efi/EFI/ubuntu . But grub cannot boot ubuntu to startup. Is the file in the wrong place?
Thanks and Best Regards, zhangshuai
--
Xi'an R&D Center Computerized Numerical Control R&D Dept. Shuai Zhang Tel : 029-84503040-8360 E-mail :zhangshuai@... Web :www.jingdiao.com
|
|
Re: Can't enable uart for Ubuntu SOS
|
|
Re: Can't enable uart for Ubuntu SOS
张帅: 后面在一些开源项目里面提问,可以把大家都抄送上。
toggle quoted messageShow quoted text
Date: 2021-02-04 10:37 Subject: Re: [acrn-users] Can't enable uart for Ubuntu SOS
Hi Shuai,
First of all, make sure your grub has below commit:
http://git.savannah.gnu.org/cgit/grub.git/commit/?id=0f3f5b7c13fa9b677a64cf11f20eca0f850a2b20
multiboot2: Set min address for mbi allocation to 0x1000
If the issue still occurs, please post your board file and scenario file.
BR,
Victor
From: acrn-users@... <acrn-users@...>
On Behalf Of "西安研发中心-数控研发部-张帅
Sent: Thursday, February 4, 2021 10:26 AM
To: acrn-users@...
Subject: [acrn-users] Can't enable uart for Ubuntu SOS
Hello,
We have a development board with i5-7300U and tried to install acrn sos. We generated the board and scenario xmls using ACRN Configuration Tool, builded the acrn Hypervisor with RELEASE=0. When boot into ubuntu-service-vm, the system got stuck with
HDMI show "loading ACRN..."
There is a serial port on the board, so we want to output the boot log. The setting of the uart is as fellows. The serial works ok when boot into the Ubuntu without acrn kernel(native boot?) ; but there is nothing output when boot into ubuntu-service-vm.
Is this configuration correct? or should I do something else?
$ dmesg | grep tty
[ 13.399735] dw-apb-uart.2: ttyS4 at MMIO 0xb151b000 (irq = 20, base_baud = 115200) is a 16550A
[ 13.399769] printk: console [ttyS4] enabled
$ vi /etc/grub.d/40_custom
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "ACRN Multiboot Ubuntu Service VM" --id ubuntu-service-vm {
load_video
insmod gzio
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set 9efd748b-88fc-4082-b2f9-2e91b6e3dc07
echo 'loading ACRN...'
multiboot2 /boot/acrn/acrn.bin root=PARTUUID="41d2eeec-fd7b-4479-9ae0-3a41845d25ff"
uart=mmio@0xb151b000
module2 /boot/bzImage Linux_bzImage
}
Best Regards
zhangshuai
-------------------------
Xi'an R&D Center Computerized Numerical Control R&D Dept. Shuai Zhang
Tel : 029-84503040-8360
E-mail : zhangshuai@... Web : www.jingdiao.com
|
|
Re: Can't enable uart for Ubuntu SOS
toggle quoted messageShow quoted text
From: acrn-users@... <acrn-users@...>
On Behalf Of " 西安研发中心- 数控研发部- 张帅
Sent: Thursday, February 4, 2021 10:26 AM
To: acrn-users@...
Subject: [acrn-users] Can't enable uart for Ubuntu SOS
Hello,
We have a development board with i5-7300U and tried to install acrn sos. We generated the board and scenario xmls using ACRN Configuration Tool, builded the acrn Hypervisor with RELEASE=0. When boot into ubuntu-service-vm, the system got stuck with
HDMI show "loading ACRN..."
There is a serial port on the board, so we want to output the boot log. The setting of the uart is as fellows. The serial works ok when boot into the Ubuntu without acrn kernel(native boot?) ; but there is nothing output when boot into ubuntu-service-vm.
Is this configuration correct? or should I do something else?
$ dmesg | grep tty
[ 13.399735] dw-apb-uart.2: ttyS4 at MMIO 0xb151b000 (irq = 20, base_baud = 115200) is a 16550A
[ 13.399769] printk: console [ttyS4] enabled
$ vi /etc/grub.d/40_custom
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "ACRN Multiboot Ubuntu Service VM" --id ubuntu-service-vm {
load_video
insmod gzio
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set 9efd748b-88fc-4082-b2f9-2e91b6e3dc07
echo 'loading ACRN...'
multiboot2 /boot/acrn/acrn.bin root=PARTUUID="41d2eeec-fd7b-4479-9ae0-3a41845d25ff"
uart=mmio@0xb151b000
module2 /boot/bzImage Linux_bzImage
}
Best Regards
zhangshuai
-------------------------
Xi'an R&D Center Computerized Numerical Control R&D Dept. Shuai Zhang
Tel : 029-84503040-8360
E-mail : zhangshuai@... Web : www.jingdiao.com
|
|
Can't enable uart for Ubuntu SOS
Hello,
We have a development board with i5-7300U and tried to
install acrn sos. We generated the board and scenario xmls using
ACRN Configuration Tool, builded the acrn Hypervisor with RELEASE=0.
When boot into ubuntu-service-vm, the system got stuck with HDMI
show "loading ACRN..."
There is a serial port on the board, so we want to output
the boot log. The setting of the uart is as fellows. The serial
works ok when boot into the Ubuntu without acrn kernel(native boot?)
; but there is nothing output when boot into ubuntu-service-vm. Is
this configuration correct? or should I do something else?
$ dmesg | grep tty
[ 13.399735] dw-apb-uart.2: ttyS4 at MMIO
0xb151b000 (irq = 20, base_baud = 115200) is a 16550A
[ 13.399769] printk: console [ttyS4] enabled
$ vi /etc/grub.d/40_custom
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply
type the
# menu entries you want to add after this comment. Be careful not
to change
# the 'exec tail' line above.
menuentry "ACRN Multiboot Ubuntu Service VM" --id ubuntu-service-vm
{
load_video
insmod gzio
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set
9efd748b-88fc-4082-b2f9-2e91b6e3dc07
echo 'loading ACRN...'
multiboot2 /boot/acrn/acrn.bin
root=PARTUUID="41d2eeec-fd7b-4479-9ae0-3a41845d25ff" uart=mmio@0xb151b000
module2 /boot/bzImage Linux_bzImage
}
Best Regards
zhangshuai
-------------------------
Xi'an R&D Center Computerized Numerical Control R&D Dept. Shuai Zhang
Tel : 029-84503040-8360
E-mail : zhangshuai@... Web : www.jingdiao.com
|
|
Re: GVT init failed when install windows

Geoffroy Van Cutsem
Fuzhong, do we have more details on this issue documented somewhere? Is there any plan to fix this?
Jacky, I assume the different content for the various screens will be coming from different VMs, is that correct? Do you have a need for 3D acceleration or can a remote display solution (e.g. VNC) meet your needs too?
Thanks, Geoffroy
toggle quoted messageShow quoted text
-----Original Message----- From: acrn-users@... <acrn-users@...> On Behalf Of Jacky Lau Sent: Monday, February 1, 2021 2:06 PM To: acrn-users@... Subject: Re: [acrn-users] GVT init failed when install windows
Got it, thank you.
Liu, Fuzhong <fuzhong.liu@...> 于2021年2月1日周一 下午4:17写道 :
Hi Jacky There is the known GVT-g issue after v2.0, please try v2.0 if you MUST use GVT-g.
BR. Fuzhong
-----Original Message----- From: acrn-users@... <acrn-users@...> On Behalf Of Jacky Lau Sent: Thursday, January 28, 2021 10:31 PM To: acrn-users@... Subject: Re: [acrn-users] GVT init failed when install windows
Well, I'm using acrn v2.3, so I following this tutorial: https://projectacrn.github.io/2.3/tutorials/using_windows_as_uos.html
I checked the code and fixed the gvt init failed issue by enlarged PCI_EMUL_MEMLIMIT32.
The install_win.sh run successful. But nothing displayed on my hdmi screen.
When I run install_win.sh, the kernel print messages: [ 214.077918] IRQ 122: no longer affine to CPU1 [ 214.079031] smpboot: CPU 1 is now offline [ 215.083296] vhm: try to offline cpu 1 with lapicid 2 [ 215.110031] IRQ 120: no longer affine to CPU2 [ 215.112118] smpboot: CPU 2 is now offline [ 216.114476] vhm: try to offline cpu 2 with lapicid 1 [ 216.130278] IRQ 124: no longer affine to CPU3 [ 216.131571] smpboot: CPU 3 is now offline [ 217.135012] vhm: try to offline cpu 3 with lapicid 3 [ 217.190688] vhm_dev_open: opening device node [ 217.191180] vhm-ioreq: init request buffer @ 00000000d5da3ebd!
[ 217.191184] vhm-ioreq: created ioreq client 1 for ioeventfd-1 [ 217.191214] ACRN vhm ioeventfd init done!
[ 217.191222] ACRN vhm irqfd init done! [ 217.191223] vhm: VM 1 created [ 217.385657] vhm-ioreq: created ioreq client 2 for ioreq gvt-g [ 217.387846] IPv6: ADDRCONF(NETDEV_CHANGE): tap0: link becomes ready [
217.387871] acrn-br0: port 1(tap0) entered blocking state [ 217.387873] acrn-br0: port 1(tap0) entered forwarding state [ 217.475601] vhm-ioreq: created ioreq client 3 for acrndm [ 217.563042] [drm] prepare GOP fb: 8100KB for 1920X1080@32 [ 217.567443] [drm] Set up display w:1920 h:1080 for GOP [ 217.567456] gvt: vgpu 1: pvinfo read gop: [78860:4] = df000000 [ 217.567758] gvt: vgpu 1: pvinfo read gop: [78864:4] = 780 [ 217.567904] gvt: vgpu 1: pvinfo read gop: [78868:4] = 438 [ 217.568049] gvt: vgpu 1: pvinfo read gop: [7886c:4] = 780 [ 217.568194] gvt: vgpu 1: pvinfo read gop: [78870:4] = 4 [ 217.568336] gvt: vgpu 1: pvinfo read gop: [78874:4] = 7e9000 [ 217.574251] [drm:intel_cpu_fifo_underrun_irq_handler] *ERROR* CPU pipe A FIFO underrun [ 496.745805] [drm] hotplug can't be supported in idv [ 497.781306] [drm] hotplug can't be supported in idv [ 498.869303] [drm] hotplug can't be supported in idv
I must use GTV-g, as I need to display different content on different screens.
Geoffroy Van Cutsem <geoffroy.vancutsem@...> 于2021年1月28 日周四
下午8:21写道:
Hi,
Were you following this tutorial when you hit this issue? https://projectacrn.github.io/latest/tutorials/using_windows_as_uos. ht ml
We switched at some point and are now using GVT-d (direct
assignement) to run Windows as a Guest, and I believe there are some known issues if trying to install Windows using GTV-g. Which version of ACRN are you using?
Thanks, Geoffroy
-----Original Message----- From: acrn-users@... <acrn-users@...> On Behalf Of Jacky Lau Sent: Thursday, January 28, 2021 10:03 AM To: acrn-users@... Subject: [acrn-users] GVT init failed when install windows
Hi, all. After setup an ACRN Industry Scenario with Ubuntu Service VM, I want to launch Windows as the Guest VM. But there are some issues when I install windows.
1. Service VM boot time become very long when enable gvt: ... [ 0.699211] Linux agpgart interface v0.103 [ 0.699424] vhm: initializing [ 0.699427] vhm: hv api version 1.0 [ 0.699428] vhm: registered correctly with major number 243 [ 0.699431] vhm: device class registered correctly [ 0.699457] register IPI handler [ 0.699515] vhm: Virtio & Hypervisor service module initialized [ 0.700422] i915 0000:00:02.0: Direct firmware load for i915/gvt/vid_0x8086_did_0x5912_rid_0x04.golden_hw_state failed with error -2 [ 0.700424] i915 0000:00:02.0: Falling back to sysfs fallback for: i915/gvt/vid_0x8086_did_0x5912_rid_0x04.golden_hw_state [ 1.458633] tsc: Refined TSC clocksource calibration: 3912.000 MHz [ 1.458640] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x70c747804da, max_idle_ns: 881591211608 ns [ 1.458656] clocksource: Switched to clocksource tsc [ 62.531820] [drm] Supports vblank timestamp caching Rev 2
(21.10.2013).
[ 62.531821] [drm] Driver supports precise vblank timestamp query. [ 62.532332] i915 0000:00:02.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=io+mem [ 62.532346] [drm] Skip DMC firmware loading in IDV [ 62.532347] i915 0000:00:02.0: Failed to load DMC firmware i915/kbl_dmc_ver1_04.bin. Disabling runtime power management. [ 62.532348] i915 0000:00:02.0: DMC firmware homepage: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux- firmware.git/tree/i915 [ 62.532567] [drm] Disable FBC for direct display in IDV [ 64.563004] [drm] Initialized i915 1.6.0 20191101 for 0000:00:02.0 on
minor 0
[ 64.565045] ACPI: Video Device [GFX0] (multi-head: yes rom: no post:
no)
[ 64.565372] input: Video Bus as
/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/inpu
t3 [ 64.568575] brd: module loaded [ 64.570271] loop: module loaded [ 64.570359] zram: Added device: zram0 [ 64.570457] mei_me 0000:00:16.0: enabling device (0000 -> 0002) ...
The kernel parameters of my Service VM is: root=/dev/sda3 console=ttyS0 idle=halt rw rootwait console=tty0 consoleblank=0 no_timer_check quiet loglevel=3 i915.nuclear_pageflip=1 hvlog=2M@0xe00000 memmap=0x200000$0xe00000 maxcpus=4 root=PARTUUID=28259bf2-ab31-1048-a7b8-96cf62ef034f
intel_iommu=on
i915.enable_gvt=1 i915.enable_guc=0 i915.enable_inital_modeset=1 hugepagesz=1G hugepages=4
Full dmesg is in the attached file.
2. acrn-dm report "gvt pci bases are out of range" when init gvt: jacky@acrn:~/acrn-work$ sudo ./install_win.sh cpu1 online=0 cpu2 online=0 cpu3 online=0 passed gvt-g optargs low_gm 64, high_gm 448, fence 8 SW_LOAD: get ovmf path /usr/share/acrn/bios/OVMF.fd, size 0x200000 vm_create: win_vm1 VHM api version 1.0 vm_setup_memory: size=0x100000000 open hugetlbfs file
/run/hugepage/acrn/huge_lv1/win_vm1/D279543825D611E8864ECB7A18B34
643 open hugetlbfs file
/run/hugepage/acrn/huge_lv2/win_vm1/D279543825D611E8864ECB7A18B34
643 level 0 free/need pages:1/1 page size:0x200000 level 1 free/need pages:4/4 page size:0x40000000
try to setup hugepage with: level 0 - lowmem 0x0, biosmem 0x200000, highmem 0x0 level 1 - lowmem 0x80000000, biosmem 0x0, highmem 0x80000000 total_size 0x200000000
mmap ptr 0x0x7fd9e6fbf000 -> baseaddr 0x0x7fda00000000 mmap 0x80000000@0x7fda00000000 touch 2 pages with pagesz 0x40000000 mmap 0x80000000@0x7fdb40000000 touch 2 pages with pagesz 0x40000000 mmap 0x200000@0x7fdaffe00000 touch 1 pages with pagesz 0x200000
really setup hugepage with: level 0 - lowmem 0x0, biosmem 0x200000, highmem 0x0 level 1 - lowmem 0x80000000, biosmem 0x0, highmem 0x80000000 vm_init_vdevs No correct pm notify channel given pci init hostbridge pci init lpc pci init pci-gvt gvt pci bases are out of range GVT: init failed pci pci-gvt init failed
polling 34...
Listening 34...
Stop listening 34...
Stop polling 34...
No correct pm notify channel given
Unable to init vdev (2)
my install_win.sh script: #!/bin/bash # Copyright (C) 2019 Intel Corporation. # SPDX-License-Identifier: BSD-3-Clause
function launch_win() { vm_name=win_vm$1
#check if the vm is running or not vm_ps=$(pgrep -a -f acrn-dm) result=$(echo $vm_ps | grep "${vm_name}") if [[ "$result" != "" ]]; then echo "$vm_name is running, can't create twice!" exit fi
#for memsize setting mem_size=4096M
acrn-dm -A -m $mem_size -s 0:0,hostbridge -s 1:0,lpc -l com1,stdio \ -s 2,pci- gvt -G "$2" \ -s 3,virtio-blk,./win10-20h2.img \ -s 4,virtio-net,tap0 \ -s 6,xhci,1-7 \ -s 8,ahci,cd:./Windows.iso \ -s 9,ahci,cd:./virtio-win-0.1.190.iso \ --ovmf /usr/share/acrn/bios/OVMF.fd \ --windows \ $vm_name }
# offline SOS CPUs except BSP before launch UOS for i in `ls -d /sys/devices/system/cpu/cpu[1-99]`; do online=`cat $i/online` idx=`echo $i | tr -cd "[1-99]"` echo cpu$idx online=$online if [ "$online" = "1" ]; then echo 0 > $i/online # during boot time, cpu hotplug may be disabled by pci_device_probe during a pci module insmod while [ "$online" = "1" ]; do sleep 1 echo 0 > $i/online online=`cat $i/online` done echo $idx > /sys/class/vhm/acrn_vhm/offline_cpu fi done
launch_win 1 "64 448 8"
3. There are no mdev_supported_types file in the /sys filesystem jacky@acrn:~/acrn-work$ lspci|grep -i vga 00:02.0 VGA compatible controller: Intel Corporation HD Graphics 630 (rev 04)
jacky@acrn:~/acrn-work$ ls -l /sys/devices/pci0000\:00/0000\:00\:02.0/ total 0 -r--r--r-- 1 root root 4096 Jan 28 15:58 ari_enabled -r--r--r-- 1 root root 4096 Jan 28 15:58 boot_vga -rw-r--r-- 1 root root 4096 Jan 28 15:58 broken_parity_status -r--r--r-- 1 root root 4096 Jan 28 15:58 class -rw-r--r-- 1 root root 4096 Jan 28 15:58 config -r--r--r-- 1 root root 4096 Jan 28 15:58 consistent_dma_mask_bits -r--r--r-- 1 root root 4096 Jan 28 15:58 current_link_speed -r--r--r-- 1 root root 4096 Jan 28 15:58 current_link_width -rw-r--r-- 1 root root 4096 Jan 28 15:58 d3cold_allowed -r--r--r-- 1 root root 4096 Jan 28 15:58 device -r--r--r-- 1 root root 4096 Jan 28 15:58 dma_mask_bits lrwxrwxrwx 1 root root 0 Jan 28 15:58 driver -> ../../../bus/pci/drivers/i915 -rw-r--r-- 1 root root 4096 Jan 28 15:58 driver_override drwxr-xr-x 4 root root 0 Jan 28 15:58 drm -rw-r--r-- 1 root root 4096 Jan 28 15:58 enable lrwxrwxrwx 1 root root 0 Jan 28 15:58 firmware_node -> ../../LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00 drwxr-xr-x 3 root root 0 Jan 28 15:58 graphics -r-------- 1 root root 2101304 Jan 28 15:58 gvt_firmware drwxr-xr-x 4 root root 0 Jan 28 15:58 i2c-0 drwxr-xr-x 4 root root 0 Jan 28 15:58 i2c-1 drwxr-xr-x 4 root root 0 Jan 28 15:58 i2c-2 -r--r--r-- 1 root root 4096 Jan 28 15:58 index -r--r--r-- 1 root root 4096 Jan 28 15:58 irq -r--r--r-- 1 root root 4096 Jan 28 15:58 label -r--r--r-- 1 root root 4096 Jan 28 15:58 local_cpulist -r--r--r-- 1 root root 4096 Jan 28 15:58 local_cpus -r--r--r-- 1 root root 4096 Jan 28 15:58 max_link_speed -r--r--r-- 1 root root 4096 Jan 28 15:58 max_link_width -r--r--r-- 1 root root 4096 Jan 28 15:58 modalias -rw-r--r-- 1 root root 4096 Jan 28 15:58 msi_bus drwxr-xr-x 2 root root 0 Jan 28 15:58 msi_irqs drwxr-xr-x 2 root root 0 Jan 28 15:58 power --w--w---- 1 root root 4096 Jan 28 15:58 remove --w------- 1 root root 4096 Jan 28 15:58 rescan --w------- 1 root root 4096 Jan 28 15:58 reset -r--r--r-- 1 root root 4096 Jan 28 15:58 resource -rw------- 1 root root 16777216 Jan 28 15:58 resource0 -rw------- 1 root root 268435456 Jan 28 15:58 resource2 -rw------- 1 root root 268435456 Jan 28 15:58 resource2_wc -rw------- 1 root root 64 Jan 28 15:58 resource4 -r--r--r-- 1 root root 4096 Jan 28 15:58 revision -rw------- 1 root root 131072 Jan 28 15:58 rom lrwxrwxrwx 1 root root 0 Jan 28 15:58 subsystem -> ../../../bus/pci -r--r--r-- 1 root root 4096 Jan 28 15:58 subsystem_device -r--r--r-- 1 root root 4096 Jan 28 15:58 subsystem_vendor -rw-r--r-- 1 root root 4096 Jan 28 15:58 uevent -r--r--r-- 1 root root 4096 Jan 28 15:58 vendor
So, do I miss anything?
|
|
Re: GVT init failed when install windows
Got it, thank you.
Liu, Fuzhong <fuzhong.liu@...> 于2021年2月1日周一 下午4:17写道:
toggle quoted messageShow quoted text
Hi Jacky There is the known GVT-g issue after v2.0, please try v2.0 if you MUST use GVT-g.
BR. Fuzhong
-----Original Message----- From: acrn-users@... <acrn-users@...> On Behalf Of Jacky Lau Sent: Thursday, January 28, 2021 10:31 PM To: acrn-users@... Subject: Re: [acrn-users] GVT init failed when install windows
Well, I'm using acrn v2.3, so I following this tutorial: https://projectacrn.github.io/2.3/tutorials/using_windows_as_uos.html
I checked the code and fixed the gvt init failed issue by enlarged PCI_EMUL_MEMLIMIT32. The install_win.sh run successful. But nothing displayed on my hdmi screen. When I run install_win.sh, the kernel print messages: [ 214.077918] IRQ 122: no longer affine to CPU1 [ 214.079031] smpboot: CPU 1 is now offline [ 215.083296] vhm: try to offline cpu 1 with lapicid 2 [ 215.110031] IRQ 120: no longer affine to CPU2 [ 215.112118] smpboot: CPU 2 is now offline [ 216.114476] vhm: try to offline cpu 2 with lapicid 1 [ 216.130278] IRQ 124: no longer affine to CPU3 [ 216.131571] smpboot: CPU 3 is now offline [ 217.135012] vhm: try to offline cpu 3 with lapicid 3 [ 217.190688] vhm_dev_open: opening device node [ 217.191180] vhm-ioreq: init request buffer @ 00000000d5da3ebd! [ 217.191184] vhm-ioreq: created ioreq client 1 for ioeventfd-1 [ 217.191214] ACRN vhm ioeventfd init done! [ 217.191222] ACRN vhm irqfd init done! [ 217.191223] vhm: VM 1 created [ 217.385657] vhm-ioreq: created ioreq client 2 for ioreq gvt-g [ 217.387846] IPv6: ADDRCONF(NETDEV_CHANGE): tap0: link becomes ready [ 217.387871] acrn-br0: port 1(tap0) entered blocking state [ 217.387873] acrn-br0: port 1(tap0) entered forwarding state [ 217.475601] vhm-ioreq: created ioreq client 3 for acrndm [ 217.563042] [drm] prepare GOP fb: 8100KB for 1920X1080@32 [ 217.567443] [drm] Set up display w:1920 h:1080 for GOP [ 217.567456] gvt: vgpu 1: pvinfo read gop: [78860:4] = df000000 [ 217.567758] gvt: vgpu 1: pvinfo read gop: [78864:4] = 780 [ 217.567904] gvt: vgpu 1: pvinfo read gop: [78868:4] = 438 [ 217.568049] gvt: vgpu 1: pvinfo read gop: [7886c:4] = 780 [ 217.568194] gvt: vgpu 1: pvinfo read gop: [78870:4] = 4 [ 217.568336] gvt: vgpu 1: pvinfo read gop: [78874:4] = 7e9000 [ 217.574251] [drm:intel_cpu_fifo_underrun_irq_handler] *ERROR* CPU pipe A FIFO underrun [ 496.745805] [drm] hotplug can't be supported in idv [ 497.781306] [drm] hotplug can't be supported in idv [ 498.869303] [drm] hotplug can't be supported in idv
I must use GTV-g, as I need to display different content on different screens.
Geoffroy Van Cutsem <geoffroy.vancutsem@...> 于2021年1月28日周四 下午8:21写道:
Hi,
Were you following this tutorial when you hit this issue? https://projectacrn.github.io/latest/tutorials/using_windows_as_uos.ht ml
We switched at some point and are now using GVT-d (direct assignement) to run Windows as a Guest, and I believe there are some known issues if trying to install Windows using GTV-g. Which version of ACRN are you using?
Thanks, Geoffroy
-----Original Message----- From: acrn-users@... <acrn-users@...> On Behalf Of Jacky Lau Sent: Thursday, January 28, 2021 10:03 AM To: acrn-users@... Subject: [acrn-users] GVT init failed when install windows
Hi, all. After setup an ACRN Industry Scenario with Ubuntu Service VM, I want to launch Windows as the Guest VM. But there are some issues when I install windows.
1. Service VM boot time become very long when enable gvt: ... [ 0.699211] Linux agpgart interface v0.103 [ 0.699424] vhm: initializing [ 0.699427] vhm: hv api version 1.0 [ 0.699428] vhm: registered correctly with major number 243 [ 0.699431] vhm: device class registered correctly [ 0.699457] register IPI handler [ 0.699515] vhm: Virtio & Hypervisor service module initialized [ 0.700422] i915 0000:00:02.0: Direct firmware load for i915/gvt/vid_0x8086_did_0x5912_rid_0x04.golden_hw_state failed with error -2 [ 0.700424] i915 0000:00:02.0: Falling back to sysfs fallback for: i915/gvt/vid_0x8086_did_0x5912_rid_0x04.golden_hw_state [ 1.458633] tsc: Refined TSC clocksource calibration: 3912.000 MHz [ 1.458640] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x70c747804da, max_idle_ns: 881591211608 ns [ 1.458656] clocksource: Switched to clocksource tsc [ 62.531820] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [ 62.531821] [drm] Driver supports precise vblank timestamp query. [ 62.532332] i915 0000:00:02.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=io+mem [ 62.532346] [drm] Skip DMC firmware loading in IDV [ 62.532347] i915 0000:00:02.0: Failed to load DMC firmware i915/kbl_dmc_ver1_04.bin. Disabling runtime power management. [ 62.532348] i915 0000:00:02.0: DMC firmware homepage: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux- firmware.git/tree/i915 [ 62.532567] [drm] Disable FBC for direct display in IDV [ 64.563004] [drm] Initialized i915 1.6.0 20191101 for 0000:00:02.0 on minor 0 [ 64.565045] ACPI: Video Device [GFX0] (multi-head: yes rom: no post: no) [ 64.565372] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/inpu t3 [ 64.568575] brd: module loaded [ 64.570271] loop: module loaded [ 64.570359] zram: Added device: zram0 [ 64.570457] mei_me 0000:00:16.0: enabling device (0000 -> 0002) ...
The kernel parameters of my Service VM is: root=/dev/sda3 console=ttyS0 idle=halt rw rootwait console=tty0 consoleblank=0 no_timer_check quiet loglevel=3 i915.nuclear_pageflip=1 hvlog=2M@0xe00000 memmap=0x200000$0xe00000 maxcpus=4 root=PARTUUID=28259bf2-ab31-1048-a7b8-96cf62ef034f intel_iommu=on i915.enable_gvt=1 i915.enable_guc=0 i915.enable_inital_modeset=1 hugepagesz=1G hugepages=4
Full dmesg is in the attached file.
2. acrn-dm report "gvt pci bases are out of range" when init gvt: jacky@acrn:~/acrn-work$ sudo ./install_win.sh cpu1 online=0 cpu2 online=0 cpu3 online=0 passed gvt-g optargs low_gm 64, high_gm 448, fence 8 SW_LOAD: get ovmf path /usr/share/acrn/bios/OVMF.fd, size 0x200000 vm_create: win_vm1 VHM api version 1.0 vm_setup_memory: size=0x100000000 open hugetlbfs file /run/hugepage/acrn/huge_lv1/win_vm1/D279543825D611E8864ECB7A18B34 643 open hugetlbfs file /run/hugepage/acrn/huge_lv2/win_vm1/D279543825D611E8864ECB7A18B34 643 level 0 free/need pages:1/1 page size:0x200000 level 1 free/need pages:4/4 page size:0x40000000
try to setup hugepage with: level 0 - lowmem 0x0, biosmem 0x200000, highmem 0x0 level 1 - lowmem 0x80000000, biosmem 0x0, highmem 0x80000000 total_size 0x200000000
mmap ptr 0x0x7fd9e6fbf000 -> baseaddr 0x0x7fda00000000 mmap 0x80000000@0x7fda00000000 touch 2 pages with pagesz 0x40000000 mmap 0x80000000@0x7fdb40000000 touch 2 pages with pagesz 0x40000000 mmap 0x200000@0x7fdaffe00000 touch 1 pages with pagesz 0x200000
really setup hugepage with: level 0 - lowmem 0x0, biosmem 0x200000, highmem 0x0 level 1 - lowmem 0x80000000, biosmem 0x0, highmem 0x80000000 vm_init_vdevs No correct pm notify channel given pci init hostbridge pci init lpc pci init pci-gvt gvt pci bases are out of range GVT: init failed pci pci-gvt init failed
polling 34...
Listening 34...
Stop listening 34...
Stop polling 34...
No correct pm notify channel given
Unable to init vdev (2)
my install_win.sh script: #!/bin/bash # Copyright (C) 2019 Intel Corporation. # SPDX-License-Identifier: BSD-3-Clause
function launch_win() { vm_name=win_vm$1
#check if the vm is running or not vm_ps=$(pgrep -a -f acrn-dm) result=$(echo $vm_ps | grep "${vm_name}") if [[ "$result" != "" ]]; then echo "$vm_name is running, can't create twice!" exit fi
#for memsize setting mem_size=4096M
acrn-dm -A -m $mem_size -s 0:0,hostbridge -s 1:0,lpc -l com1,stdio \ -s 2,pci- gvt -G "$2" \ -s 3,virtio-blk,./win10-20h2.img \ -s 4,virtio-net,tap0 \ -s 6,xhci,1-7 \ -s 8,ahci,cd:./Windows.iso \ -s 9,ahci,cd:./virtio-win-0.1.190.iso \ --ovmf /usr/share/acrn/bios/OVMF.fd \ --windows \ $vm_name }
# offline SOS CPUs except BSP before launch UOS for i in `ls -d /sys/devices/system/cpu/cpu[1-99]`; do online=`cat $i/online` idx=`echo $i | tr -cd "[1-99]"` echo cpu$idx online=$online if [ "$online" = "1" ]; then echo 0 > $i/online # during boot time, cpu hotplug may be disabled by pci_device_probe during a pci module insmod while [ "$online" = "1" ]; do sleep 1 echo 0 > $i/online online=`cat $i/online` done echo $idx > /sys/class/vhm/acrn_vhm/offline_cpu fi done
launch_win 1 "64 448 8"
3. There are no mdev_supported_types file in the /sys filesystem jacky@acrn:~/acrn-work$ lspci|grep -i vga 00:02.0 VGA compatible controller: Intel Corporation HD Graphics 630 (rev 04)
jacky@acrn:~/acrn-work$ ls -l /sys/devices/pci0000\:00/0000\:00\:02.0/ total 0 -r--r--r-- 1 root root 4096 Jan 28 15:58 ari_enabled -r--r--r-- 1 root root 4096 Jan 28 15:58 boot_vga -rw-r--r-- 1 root root 4096 Jan 28 15:58 broken_parity_status -r--r--r-- 1 root root 4096 Jan 28 15:58 class -rw-r--r-- 1 root root 4096 Jan 28 15:58 config -r--r--r-- 1 root root 4096 Jan 28 15:58 consistent_dma_mask_bits -r--r--r-- 1 root root 4096 Jan 28 15:58 current_link_speed -r--r--r-- 1 root root 4096 Jan 28 15:58 current_link_width -rw-r--r-- 1 root root 4096 Jan 28 15:58 d3cold_allowed -r--r--r-- 1 root root 4096 Jan 28 15:58 device -r--r--r-- 1 root root 4096 Jan 28 15:58 dma_mask_bits lrwxrwxrwx 1 root root 0 Jan 28 15:58 driver -> ../../../bus/pci/drivers/i915 -rw-r--r-- 1 root root 4096 Jan 28 15:58 driver_override drwxr-xr-x 4 root root 0 Jan 28 15:58 drm -rw-r--r-- 1 root root 4096 Jan 28 15:58 enable lrwxrwxrwx 1 root root 0 Jan 28 15:58 firmware_node -> ../../LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00 drwxr-xr-x 3 root root 0 Jan 28 15:58 graphics -r-------- 1 root root 2101304 Jan 28 15:58 gvt_firmware drwxr-xr-x 4 root root 0 Jan 28 15:58 i2c-0 drwxr-xr-x 4 root root 0 Jan 28 15:58 i2c-1 drwxr-xr-x 4 root root 0 Jan 28 15:58 i2c-2 -r--r--r-- 1 root root 4096 Jan 28 15:58 index -r--r--r-- 1 root root 4096 Jan 28 15:58 irq -r--r--r-- 1 root root 4096 Jan 28 15:58 label -r--r--r-- 1 root root 4096 Jan 28 15:58 local_cpulist -r--r--r-- 1 root root 4096 Jan 28 15:58 local_cpus -r--r--r-- 1 root root 4096 Jan 28 15:58 max_link_speed -r--r--r-- 1 root root 4096 Jan 28 15:58 max_link_width -r--r--r-- 1 root root 4096 Jan 28 15:58 modalias -rw-r--r-- 1 root root 4096 Jan 28 15:58 msi_bus drwxr-xr-x 2 root root 0 Jan 28 15:58 msi_irqs drwxr-xr-x 2 root root 0 Jan 28 15:58 power --w--w---- 1 root root 4096 Jan 28 15:58 remove --w------- 1 root root 4096 Jan 28 15:58 rescan --w------- 1 root root 4096 Jan 28 15:58 reset -r--r--r-- 1 root root 4096 Jan 28 15:58 resource -rw------- 1 root root 16777216 Jan 28 15:58 resource0 -rw------- 1 root root 268435456 Jan 28 15:58 resource2 -rw------- 1 root root 268435456 Jan 28 15:58 resource2_wc -rw------- 1 root root 64 Jan 28 15:58 resource4 -r--r--r-- 1 root root 4096 Jan 28 15:58 revision -rw------- 1 root root 131072 Jan 28 15:58 rom lrwxrwxrwx 1 root root 0 Jan 28 15:58 subsystem -> ../../../bus/pci -r--r--r-- 1 root root 4096 Jan 28 15:58 subsystem_device -r--r--r-- 1 root root 4096 Jan 28 15:58 subsystem_vendor -rw-r--r-- 1 root root 4096 Jan 28 15:58 uevent -r--r--r-- 1 root root 4096 Jan 28 15:58 vendor
So, do I miss anything?
|
|
Re: GVT init failed when install windows
Hi Jacky There is the known GVT-g issue after v2.0, please try v2.0 if you MUST use GVT-g.
BR. Fuzhong
toggle quoted messageShow quoted text
-----Original Message----- From: acrn-users@... <acrn-users@...> On Behalf Of Jacky Lau Sent: Thursday, January 28, 2021 10:31 PM To: acrn-users@... Subject: Re: [acrn-users] GVT init failed when install windows Well, I'm using acrn v2.3, so I following this tutorial: https://projectacrn.github.io/2.3/tutorials/using_windows_as_uos.htmlI checked the code and fixed the gvt init failed issue by enlarged PCI_EMUL_MEMLIMIT32. The install_win.sh run successful. But nothing displayed on my hdmi screen. When I run install_win.sh, the kernel print messages: [ 214.077918] IRQ 122: no longer affine to CPU1 [ 214.079031] smpboot: CPU 1 is now offline [ 215.083296] vhm: try to offline cpu 1 with lapicid 2 [ 215.110031] IRQ 120: no longer affine to CPU2 [ 215.112118] smpboot: CPU 2 is now offline [ 216.114476] vhm: try to offline cpu 2 with lapicid 1 [ 216.130278] IRQ 124: no longer affine to CPU3 [ 216.131571] smpboot: CPU 3 is now offline [ 217.135012] vhm: try to offline cpu 3 with lapicid 3 [ 217.190688] vhm_dev_open: opening device node [ 217.191180] vhm-ioreq: init request buffer @ 00000000d5da3ebd! [ 217.191184] vhm-ioreq: created ioreq client 1 for ioeventfd-1 [ 217.191214] ACRN vhm ioeventfd init done! [ 217.191222] ACRN vhm irqfd init done! [ 217.191223] vhm: VM 1 created [ 217.385657] vhm-ioreq: created ioreq client 2 for ioreq gvt-g [ 217.387846] IPv6: ADDRCONF(NETDEV_CHANGE): tap0: link becomes ready [ 217.387871] acrn-br0: port 1(tap0) entered blocking state [ 217.387873] acrn-br0: port 1(tap0) entered forwarding state [ 217.475601] vhm-ioreq: created ioreq client 3 for acrndm [ 217.563042] [drm] prepare GOP fb: 8100KB for 1920X1080@32 [ 217.567443] [drm] Set up display w:1920 h:1080 for GOP [ 217.567456] gvt: vgpu 1: pvinfo read gop: [78860:4] = df000000 [ 217.567758] gvt: vgpu 1: pvinfo read gop: [78864:4] = 780 [ 217.567904] gvt: vgpu 1: pvinfo read gop: [78868:4] = 438 [ 217.568049] gvt: vgpu 1: pvinfo read gop: [7886c:4] = 780 [ 217.568194] gvt: vgpu 1: pvinfo read gop: [78870:4] = 4 [ 217.568336] gvt: vgpu 1: pvinfo read gop: [78874:4] = 7e9000 [ 217.574251] [drm:intel_cpu_fifo_underrun_irq_handler] *ERROR* CPU pipe A FIFO underrun [ 496.745805] [drm] hotplug can't be supported in idv [ 497.781306] [drm] hotplug can't be supported in idv [ 498.869303] [drm] hotplug can't be supported in idv I must use GTV-g, as I need to display different content on different screens. Geoffroy Van Cutsem <geoffroy.vancutsem@...> 于2021年1月28日周四 下午8:21写道: Hi,
Were you following this tutorial when you hit this issue? https://projectacrn.github.io/latest/tutorials/using_windows_as_uos.ht ml
We switched at some point and are now using GVT-d (direct assignement) to run Windows as a Guest, and I believe there are some known issues if trying to install Windows using GTV-g. Which version of ACRN are you using?
Thanks, Geoffroy
-----Original Message----- From: acrn-users@... <acrn-users@...> On Behalf Of Jacky Lau Sent: Thursday, January 28, 2021 10:03 AM To: acrn-users@... Subject: [acrn-users] GVT init failed when install windows
Hi, all. After setup an ACRN Industry Scenario with Ubuntu Service VM, I want to launch Windows as the Guest VM. But there are some issues when I install windows.
1. Service VM boot time become very long when enable gvt: ... [ 0.699211] Linux agpgart interface v0.103 [ 0.699424] vhm: initializing [ 0.699427] vhm: hv api version 1.0 [ 0.699428] vhm: registered correctly with major number 243 [ 0.699431] vhm: device class registered correctly [ 0.699457] register IPI handler [ 0.699515] vhm: Virtio & Hypervisor service module initialized [ 0.700422] i915 0000:00:02.0: Direct firmware load for i915/gvt/vid_0x8086_did_0x5912_rid_0x04.golden_hw_state failed with error -2 [ 0.700424] i915 0000:00:02.0: Falling back to sysfs fallback for: i915/gvt/vid_0x8086_did_0x5912_rid_0x04.golden_hw_state [ 1.458633] tsc: Refined TSC clocksource calibration: 3912.000 MHz [ 1.458640] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x70c747804da, max_idle_ns: 881591211608 ns [ 1.458656] clocksource: Switched to clocksource tsc [ 62.531820] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [ 62.531821] [drm] Driver supports precise vblank timestamp query. [ 62.532332] i915 0000:00:02.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=io+mem [ 62.532346] [drm] Skip DMC firmware loading in IDV [ 62.532347] i915 0000:00:02.0: Failed to load DMC firmware i915/kbl_dmc_ver1_04.bin. Disabling runtime power management. [ 62.532348] i915 0000:00:02.0: DMC firmware homepage: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux- firmware.git/tree/i915 [ 62.532567] [drm] Disable FBC for direct display in IDV [ 64.563004] [drm] Initialized i915 1.6.0 20191101 for 0000:00:02.0 on minor 0 [ 64.565045] ACPI: Video Device [GFX0] (multi-head: yes rom: no post: no) [ 64.565372] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/inpu t3 [ 64.568575] brd: module loaded [ 64.570271] loop: module loaded [ 64.570359] zram: Added device: zram0 [ 64.570457] mei_me 0000:00:16.0: enabling device (0000 -> 0002) ...
The kernel parameters of my Service VM is: root=/dev/sda3 console=ttyS0 idle=halt rw rootwait console=tty0 consoleblank=0 no_timer_check quiet loglevel=3 i915.nuclear_pageflip=1 hvlog=2M@0xe00000 memmap=0x200000$0xe00000 maxcpus=4 root=PARTUUID=28259bf2-ab31-1048-a7b8-96cf62ef034f intel_iommu=on i915.enable_gvt=1 i915.enable_guc=0 i915.enable_inital_modeset=1 hugepagesz=1G hugepages=4
Full dmesg is in the attached file.
2. acrn-dm report "gvt pci bases are out of range" when init gvt: jacky@acrn:~/acrn-work$ sudo ./install_win.sh cpu1 online=0 cpu2 online=0 cpu3 online=0 passed gvt-g optargs low_gm 64, high_gm 448, fence 8 SW_LOAD: get ovmf path /usr/share/acrn/bios/OVMF.fd, size 0x200000 vm_create: win_vm1 VHM api version 1.0 vm_setup_memory: size=0x100000000 open hugetlbfs file /run/hugepage/acrn/huge_lv1/win_vm1/D279543825D611E8864ECB7A18B34 643 open hugetlbfs file /run/hugepage/acrn/huge_lv2/win_vm1/D279543825D611E8864ECB7A18B34 643 level 0 free/need pages:1/1 page size:0x200000 level 1 free/need pages:4/4 page size:0x40000000
try to setup hugepage with: level 0 - lowmem 0x0, biosmem 0x200000, highmem 0x0 level 1 - lowmem 0x80000000, biosmem 0x0, highmem 0x80000000 total_size 0x200000000
mmap ptr 0x0x7fd9e6fbf000 -> baseaddr 0x0x7fda00000000 mmap 0x80000000@0x7fda00000000 touch 2 pages with pagesz 0x40000000 mmap 0x80000000@0x7fdb40000000 touch 2 pages with pagesz 0x40000000 mmap 0x200000@0x7fdaffe00000 touch 1 pages with pagesz 0x200000
really setup hugepage with: level 0 - lowmem 0x0, biosmem 0x200000, highmem 0x0 level 1 - lowmem 0x80000000, biosmem 0x0, highmem 0x80000000 vm_init_vdevs No correct pm notify channel given pci init hostbridge pci init lpc pci init pci-gvt gvt pci bases are out of range GVT: init failed pci pci-gvt init failed
polling 34...
Listening 34...
Stop listening 34...
Stop polling 34...
No correct pm notify channel given
Unable to init vdev (2)
my install_win.sh script: #!/bin/bash # Copyright (C) 2019 Intel Corporation. # SPDX-License-Identifier: BSD-3-Clause
function launch_win() { vm_name=win_vm$1
#check if the vm is running or not vm_ps=$(pgrep -a -f acrn-dm) result=$(echo $vm_ps | grep "${vm_name}") if [[ "$result" != "" ]]; then echo "$vm_name is running, can't create twice!" exit fi
#for memsize setting mem_size=4096M
acrn-dm -A -m $mem_size -s 0:0,hostbridge -s 1:0,lpc -l com1,stdio \ -s 2,pci- gvt -G "$2" \ -s 3,virtio-blk,./win10-20h2.img \ -s 4,virtio-net,tap0 \ -s 6,xhci,1-7 \ -s 8,ahci,cd:./Windows.iso \ -s 9,ahci,cd:./virtio-win-0.1.190.iso \ --ovmf /usr/share/acrn/bios/OVMF.fd \ --windows \ $vm_name }
# offline SOS CPUs except BSP before launch UOS for i in `ls -d /sys/devices/system/cpu/cpu[1-99]`; do online=`cat $i/online` idx=`echo $i | tr -cd "[1-99]"` echo cpu$idx online=$online if [ "$online" = "1" ]; then echo 0 > $i/online # during boot time, cpu hotplug may be disabled by pci_device_probe during a pci module insmod while [ "$online" = "1" ]; do sleep 1 echo 0 > $i/online online=`cat $i/online` done echo $idx > /sys/class/vhm/acrn_vhm/offline_cpu fi done
launch_win 1 "64 448 8"
3. There are no mdev_supported_types file in the /sys filesystem jacky@acrn:~/acrn-work$ lspci|grep -i vga 00:02.0 VGA compatible controller: Intel Corporation HD Graphics 630 (rev 04)
jacky@acrn:~/acrn-work$ ls -l /sys/devices/pci0000\:00/0000\:00\:02.0/ total 0 -r--r--r-- 1 root root 4096 Jan 28 15:58 ari_enabled -r--r--r-- 1 root root 4096 Jan 28 15:58 boot_vga -rw-r--r-- 1 root root 4096 Jan 28 15:58 broken_parity_status -r--r--r-- 1 root root 4096 Jan 28 15:58 class -rw-r--r-- 1 root root 4096 Jan 28 15:58 config -r--r--r-- 1 root root 4096 Jan 28 15:58 consistent_dma_mask_bits -r--r--r-- 1 root root 4096 Jan 28 15:58 current_link_speed -r--r--r-- 1 root root 4096 Jan 28 15:58 current_link_width -rw-r--r-- 1 root root 4096 Jan 28 15:58 d3cold_allowed -r--r--r-- 1 root root 4096 Jan 28 15:58 device -r--r--r-- 1 root root 4096 Jan 28 15:58 dma_mask_bits lrwxrwxrwx 1 root root 0 Jan 28 15:58 driver -> ../../../bus/pci/drivers/i915 -rw-r--r-- 1 root root 4096 Jan 28 15:58 driver_override drwxr-xr-x 4 root root 0 Jan 28 15:58 drm -rw-r--r-- 1 root root 4096 Jan 28 15:58 enable lrwxrwxrwx 1 root root 0 Jan 28 15:58 firmware_node -> ../../LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00 drwxr-xr-x 3 root root 0 Jan 28 15:58 graphics -r-------- 1 root root 2101304 Jan 28 15:58 gvt_firmware drwxr-xr-x 4 root root 0 Jan 28 15:58 i2c-0 drwxr-xr-x 4 root root 0 Jan 28 15:58 i2c-1 drwxr-xr-x 4 root root 0 Jan 28 15:58 i2c-2 -r--r--r-- 1 root root 4096 Jan 28 15:58 index -r--r--r-- 1 root root 4096 Jan 28 15:58 irq -r--r--r-- 1 root root 4096 Jan 28 15:58 label -r--r--r-- 1 root root 4096 Jan 28 15:58 local_cpulist -r--r--r-- 1 root root 4096 Jan 28 15:58 local_cpus -r--r--r-- 1 root root 4096 Jan 28 15:58 max_link_speed -r--r--r-- 1 root root 4096 Jan 28 15:58 max_link_width -r--r--r-- 1 root root 4096 Jan 28 15:58 modalias -rw-r--r-- 1 root root 4096 Jan 28 15:58 msi_bus drwxr-xr-x 2 root root 0 Jan 28 15:58 msi_irqs drwxr-xr-x 2 root root 0 Jan 28 15:58 power --w--w---- 1 root root 4096 Jan 28 15:58 remove --w------- 1 root root 4096 Jan 28 15:58 rescan --w------- 1 root root 4096 Jan 28 15:58 reset -r--r--r-- 1 root root 4096 Jan 28 15:58 resource -rw------- 1 root root 16777216 Jan 28 15:58 resource0 -rw------- 1 root root 268435456 Jan 28 15:58 resource2 -rw------- 1 root root 268435456 Jan 28 15:58 resource2_wc -rw------- 1 root root 64 Jan 28 15:58 resource4 -r--r--r-- 1 root root 4096 Jan 28 15:58 revision -rw------- 1 root root 131072 Jan 28 15:58 rom lrwxrwxrwx 1 root root 0 Jan 28 15:58 subsystem -> ../../../bus/pci -r--r--r-- 1 root root 4096 Jan 28 15:58 subsystem_device -r--r--r-- 1 root root 4096 Jan 28 15:58 subsystem_vendor -rw-r--r-- 1 root root 4096 Jan 28 15:58 uevent -r--r--r-- 1 root root 4096 Jan 28 15:58 vendor
So, do I miss anything?
|
|