Re: Using Virtio-gpio in guest VM
Liu, Fuzhong
Please share lspci -xxxxvvvv
BR. Fuzhong
From: acrn-users@... <acrn-users@...>
On Behalf Of shibi590268@...
Please find the attachments. config, dmesg and lspci.
|
|||||||||||||||||
|
|||||||||||||||||
Re: Using Virtio-gpio in guest VM
shibi590268@...
Please find the attachments. config, dmesg and lspci.
|
|||||||||||||||||
|
|||||||||||||||||
Re: Using Virtio-gpio in guest VM
Liu, Fuzhong
Hi Please share the kernel config and dmesg log of User VM which included the driver.
Thanks!
BR. Fuzhong
From: acrn-users@... <acrn-users@...>
On Behalf Of shibi590268@...
Hi Geoffroy,
|
|||||||||||||||||
|
|||||||||||||||||
Re: ACRN configurator failing to start in master branch
Liu, Fuzhong
Hi Please help to raise one git issue with following link:
BR. Fuzhong
From: acrn-users@... <acrn-users@...>
On Behalf Of shibi590268@...
Hello rn@acrn-NUC6CAYH:~/acrn-work/acrn-hypervisor/misc/config_tools/config_app$ sudo python3 acrn_configurator.py [sudo] password for acrn: Traceback (most recent call last): File "acrn_configurator.py", line 34, in <module> from views import CONFIG_APP File "/home/acrn/acrn-work/acrn-hypervisor/misc/config_tools/config_app/views.py", line 26, in <module> from launch_config.launch_cfg_gen import get_launch_item_values ImportError: cannot import name 'get_launch_item_values' from 'launch_config.launch_cfg_gen' (/home/acrn/acrn-work/acrn-hypervisor/misc/config_tools/config_app/../launch_config/launch_cfg_gen.py)
|
|||||||||||||||||
|
|||||||||||||||||
Re: Using Virtio-gpio in guest VM
shibi590268@...
Hi Geoffroy,
I checked in the latest version of kernels(i.e., 5.18) which included the driver in question. I compiled the kernel with CONFIG_GPIO_VIRTIO=y. I see the same behavior as before. The virtio-gpio gets emulated as a PCI device. Should there be some examples or some references that was used while evaluating the virtio gpio, please share that. Thanks in Advance
|
|||||||||||||||||
|
|||||||||||||||||
Re: Using Virtio-gpio in guest VM
shibi590268@...
Is CONFIG_VIRTIO_IOMMU needed for using GPIO_VIRTIO in guest VM?
|
|||||||||||||||||
|
|||||||||||||||||
Re: Using Virtio-gpio in guest VM
shibi590268@...
Could someone please reply and help me
|
|||||||||||||||||
|
|||||||||||||||||
ACRN configurator failing to start in master branch
shibi590268@...
Hello
I am getting the below error when launching the acrn_configurator.py. How to get rid of this error. ACRN-hypervisor branch: master commit:e491773f5e0a97d36b03180306458c47c196aada Error: rn@acrn-NUC6CAYH:~/acrn-work/acrn-hypervisor/misc/config_tools/config_app$ sudo python3 acrn_configurator.py
[sudo] password for acrn:
Traceback (most recent call last):
File "acrn_configurator.py", line 34, in <module>
from views import CONFIG_APP
File "/home/acrn/acrn-work/acrn-hypervisor/misc/config_tools/config_app/views.py", line 26, in <module>
from launch_config.launch_cfg_gen import get_launch_item_values
ImportError: cannot import name 'get_launch_item_values' from 'launch_config.launch_cfg_gen' (/home/acrn/acrn-work/acrn-hypervisor/misc/config_tools/config_app/../launch_config/launch_cfg_gen.py)
|
|||||||||||||||||
|
|||||||||||||||||
Re: Booting to ACRN (Yocto) image is getting struck at WARNING: no console will be available to OS
Liu, Fuzhong
Hi Shrikant Please boot into native to check the grub version of Yocto rootfs; then help to share the grub version and grub menu info on git issue:7342 Thanks!
BR. Fuzhong From: acrn-users@... <acrn-users@...>
On Behalf Of HALLUR, SHRIKANT
Hi Fuzhong,
|
|||||||||||||||||
|
|||||||||||||||||
Re: Booting to ACRN (Yocto) image is getting struck at WARNING: no console will be available to OS
HALLUR, SHRIKANT
Hi Fuzhong,
Issue https://github.com/projectacrn/acrn-hypervisor/issues/7342 is closed and ACRN working well with Linux but still issue persists with Yocto. Please help with this. Regards, Shrikant U H
|
|||||||||||||||||
|
|||||||||||||||||
Re: Using Virtio-gpio in guest VM
Yes, that’s the driver in question. I do not know if we have a version of it for the latest kernel, let’s see what the kernel team has to say about it.
Geoffroy
From: acrn-users@... <acrn-users@...>
On Behalf Of shibi590268@...
Hi
|
|||||||||||||||||
|
|||||||||||||||||
Re: Using Virtio-gpio in guest VM
shibi590268@...
Hi
I want to use little latest kernel. Do you mean this driver gpio-virtio.c. Is following the config that you are pointing to?
|
|||||||||||||||||
|
|||||||||||||||||
Re: Using Virtio-gpio in guest VM
I don’t see this anywhere in the 5.10 version, while it was there in the 4.19/preempt-rt. I suspect that means it’s a driver that was never upstreamed (or is still in the process of being upstreamed).
Is using the 4.19 kernel an option for you?
Does anyone from the kernel team know if there is a version of that driver for the 5.10 preempt-rt kernel?
Thanks, Geoffroy
From: acrn-users@... <acrn-users@...>
On Behalf Of shibi590268@...
Hi
|
|||||||||||||||||
|
|||||||||||||||||
Re: Using Virtio-gpio in guest VM
shibi590268@...
Hi
I am using the ACRN patched rt kernel from https://github.com/projectacrn/acrn-kernel.git with 5.10/prempt-rt branch to use it in RTVM. I am unable to locate CONFIG_VIRTIO_GPIO=Y in the config. Is there any separate patch available for this? Attached is the .config file
|
|||||||||||||||||
|
|||||||||||||||||
Re: Using Virtio-gpio in guest VM
Liu, Fuzhong
Hi Is following kernel config enabled in your User VM? CONFIG_VIRTIO_GPIO=y
Please share the kernel config and dmesg log of User VM.
Thanks!
BR. Fuzhong
From: acrn-users@... <acrn-users@...>
On Behalf Of shibi590268@...
Hello, But i couldn't find the gpio device listed under /dev/ ls /dev/gpio ls: cannot access '/dev/gpio': No such file or directory
ls /sys/class/gpio/ export unexport ls /sys/bus/gpio/devices/ ubunturt@ubunturt-Standard-PC-i440FX-PIIX-1996:~$
|
|||||||||||||||||
|
|||||||||||||||||
Using Virtio-gpio in guest VM
shibi590268@...
Hello,
I need to use two gpio pins from a VM. I used -s 10,virtio-gpio,@gpiochip0{11=pin0:12=pin1} \ in the launch scripts. The kernel boots up successfully with a new pci device added 00:0a.0 PIC: Intel Corporation Device 8609. The device is getting listed as PIC: Intel Corporation Device 8609. is this correct? But i couldn't find the gpio device listed under /dev/ ls /dev/gpio
ls: cannot access '/dev/gpio': No such file or directory
or in /sys/class/gpio ls /sys/class/gpio/
export unexport
ls /sys/bus/gpio/devices/
ubunturt@ubunturt-Standard-PC-i440FX-PIIX-1996:~$
I couldn't find virtio-gpio module in kernel. So I used a patch from https://lkml.iu.edu/hypermail/linux/kernel/2108.1/01975.html. But still i am not successful in this. Is there anything that i am missing? Is there any patch recommendation available that could be used. User VM: ubuntu Service VM : ubuntu I am using ACRN hypervisor: v2.8
|
|||||||||||||||||
|
|||||||||||||||||
Re: Booting to ACRN (Yocto) image is getting struck at WARNING: no console will be available to OS
HALLUR, SHRIKANT
Hi Fuzhong,
Thanks for your response. This issue is hitting with yocto and issue https://github.com/projectacrn/acrn-hypervisor/issues/7342 with linux. Is root-case same for boot? Please help, how to collect console log? Regards, Shrikant U H
|
|||||||||||||||||
|
|||||||||||||||||
Re: Booting to ACRN (Yocto) image is getting struck at WARNING: no console will be available to OS
Liu, Fuzhong
Hi Shrikant This issue is tracked with following github issue. https://github.com/projectacrn/acrn-hypervisor/issues/7342
It is hard to debug boot issue without console log. Any chance catch the console log? Thanks!
BR. Fuzhong From: acrn-users@... <acrn-users@...>
On Behalf Of HALLUR, SHRIKANT
Hi Team,
I am trying to boot to ACRN (Yocto) image and Service OS on Intel Tiger Lake Dell Laptop.
I started with https://github.com/intel/meta-acrn/blob/master/docs/getting-started.md and able to Build ACRN image with “bitbake acrn-image-base”.
On boot of ACRN image able to see boot options, 'boot' and 'ACRN (Yocto)'. Select 'ACRN (Yocto)' is getting struck at “WARNING: no console will be available to OS”.
Please help with above issue.
Regards, Shrikant U H
|
|||||||||||||||||
|
|||||||||||||||||
Booting to ACRN (Yocto) image is getting struck at WARNING: no console will be available to OS
HALLUR, SHRIKANT
Hi Team,
I am trying to boot to ACRN (Yocto) image and Service OS on Intel Tiger Lake Dell Laptop.
I started with https://github.com/intel/meta-acrn/blob/master/docs/getting-started.md and able to Build ACRN image with “bitbake acrn-image-base”.
On boot of ACRN image able to see boot options, 'boot' and 'ACRN (Yocto)'. Select 'ACRN (Yocto)' is getting struck at “WARNING: no console will be available to OS”.
Please help with above issue.
Regards, Shrikant U H
|
|||||||||||||||||
|
|||||||||||||||||
Re: Run ACRN Service VM is getting struck at WARNING: no console will be available to OS
HALLUR, SHRIKANT
Hi Fuzhong,
Thank you for the response. I raised git issue https://github.com/projectacrn/acrn-hypervisor/issues/7342 and uploaded required files. Please let me know if any other logs or files to help rootcausing this issue. Regards, Shrikant U H
|
|||||||||||||||||
|