[vfio-users] OVMF: Boots only first time after driver installation

Eddie Yen missile0407 at gmail.com
Mon Jan 4 02:53:36 UTC 2016


Hmm.... It seems like your R9 285 really got reset issue.
As I known there're few AMD cards can't reset correctly, and most issues is
about VBIOS (as I saw).

If you mean VM reboot, I guess the reason is that VFIO goes reset the
device when shutting down VM, but can't reset (shutdown) correctly in some
reasons.
And reboot works just because rebooting won't "shutdown" the device.
I met this issue long time ago when VFIO released at beginning. And I was
using GTX480 in that time.

I remember that you can compile VFIO as debug mode.
You can find in Archlinux forum [1], but I'm not sure that work or not, it
was 2 years ago message, maybe it no longer work already.

[1] https://bbs.archlinux.org/viewtopic.php?pid=1416318#p1416318

2016-01-04 9:58 GMT+08:00 S B <sb9sb0 at gmail.com>:

> Reboot is working fine in Windows with Crimson driver. So I tried adding
> -no-reboot and shut down the VM with a reboot, but after starting the VM
> again, it is not coming up.
> Any ideas why reboot is working?
>
> 2016-01-01 21:29 GMT+01:00 S B <sb9sb0 at gmail.com>:
>
>> Good morning,
>>
>> I installed Win 8.1 as guest and it is working fine. It starts fine after
>> guest reboot and guest poweroff, but when I install the AMD Crimson driver
>> in the guest, the VM is only booting the first time after host boot. The
>> second time I start the VM my monitor stays black/off no matter what I boot
>> (with or without driver).
>>
>> I have a MSI Z77G45 with an Intel i7-2600 and a AMD R9 285. I use the IGD
>> for the host and the AMD card for the guest.
>> As host I use Arch Linux and as Guest Windows 8.1. I blacklisted amdgpu
>> and radeon, I load vfio-pci with options vfio-pci ids=1002:6939,1002:aad8.
>> I tried it with 4.3.3-2-ARCH and 4.1.15-1-ARCH kernels, but both have the
>> same behavior.
>>
>> I installed Windows 8.1 in UEFI/OVMF mode. I got the uefi files from
>> https://www.kraxel.org/repos/jenkins/edk2/
>>
>> I use this qemu command:
>> /usr/bin/qemu-system-x86_64
>>     -enable-kvm -M q35 -cpu host,kvm=off -smp
>> 3,sockets=1,cores=3,threads=1 -m 4096
>>     -serial none -parallel none -name Wingame -rtc base=localtime -vga
>> none -nographic -display none
>>     -device ich9-intel-hda,bus=pcie.0,addr=1b.0,id=sound0
>>     -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0
>>     -device
>> ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1
>>     -device
>> vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,romfile=/root/qemu/rom/amd285.rom
>>
>>     -device vfio-pci,host=01:00.1,bus=root.1,addr=00.1
>>     -drive
>> if=pflash,format=raw,readonly,file=/root/qemu/win10/OVMF_CODE-pure-efi.fd
>>     -drive if=pflash,format=raw,file=/root/qemu/win10/my_vars.fd
>>     -readconfig /root/qemu/config/ich9-ehci-uhci.cfg
>>     -device usb-host,vendorid=0x0079,productid=0x0006
>>     -device usb-host,vendorid=0x045e,productid=0x028e
>>     -device usb-host,vendorid=0x062a,productid=0x0252
>>     -device usb-host,vendorid=0x04f3,productid=0x0103
>>     -drive file=/root/qemu/win10/win10.qcow2,id=win,format=qcow2,if=none
>>     -device ide-hd,bus=ide.0,drive=win
>>     -boot c
>>
>>
>> What am I doing wrong? I thought, this would only appear with VGA, not
>> OVMF.
>> Are there any information missing?
>>
>> Regards
>>
>>
>> lspci:
>> 00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor
>> Family DRAM Controller (rev 09)
>> 00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core
>> Processor Family PCI Express Root Port (rev 09)
>> 00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core
>> Processor Family Integrated Graphics Controller (rev 09)
>> 00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset
>> Family USB xHCI Host Controller (rev 04)
>> 00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series
>> Chipset Family MEI Controller #1 (rev 04)
>> 00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset
>> Family USB Enhanced Host Controller #2 (rev 04)
>> 00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset
>> Family High Definition Audio Controller (rev 04)
>> 00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family
>> PCI Express Root Port 1 (rev c4)
>> 00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family
>> PCI Express Root Port 2 (rev c4)
>> 00:1c.2 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family
>> PCI Express Root Port 3 (rev c4)
>> 00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset
>> Family USB Enhanced Host Controller #1 (rev 04)
>> 00:1f.0 ISA bridge: Intel Corporation Z77 Express Chipset LPC Controller
>> (rev 04)
>> 00:1f.2 SATA controller: Intel Corporation 7 Series/C210 Series Chipset
>> Family 6-port SATA Controller [AHCI mode] (rev 04)
>> 00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family
>> SMBus Controller (rev 04)
>> 01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI]
>> Tonga PRO [Radeon R9 285/380]
>> 01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device aad8
>> 03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
>> RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
>> 04:00.0 Audio device: Creative Labs EMU20k2 [X-Fi Titanium Series] (rev
>> 03)
>>
>>
>>
>> find /sys/kernel/iommu_groups/ -type l
>> /sys/kernel/iommu_groups/0/devices/0000:00:00.0
>> /sys/kernel/iommu_groups/1/devices/0000:00:01.0
>> /sys/kernel/iommu_groups/1/devices/0000:01:00.0
>> /sys/kernel/iommu_groups/1/devices/0000:01:00.1
>> /sys/kernel/iommu_groups/2/devices/0000:00:02.0
>> /sys/kernel/iommu_groups/3/devices/0000:00:14.0
>> /sys/kernel/iommu_groups/4/devices/0000:00:16.0
>> /sys/kernel/iommu_groups/5/devices/0000:00:1a.0
>> /sys/kernel/iommu_groups/6/devices/0000:00:1b.0
>> /sys/kernel/iommu_groups/7/devices/0000:00:1c.0
>> /sys/kernel/iommu_groups/8/devices/0000:00:1c.1
>> /sys/kernel/iommu_groups/9/devices/0000:00:1c.2
>> /sys/kernel/iommu_groups/10/devices/0000:00:1d.0
>> /sys/kernel/iommu_groups/11/devices/0000:00:1f.0
>> /sys/kernel/iommu_groups/11/devices/0000:00:1f.2
>> /sys/kernel/iommu_groups/11/devices/0000:00:1f.3
>> /sys/kernel/iommu_groups/12/devices/0000:03:00.0
>> /sys/kernel/iommu_groups/13/devices/0000:04:00.0
>>
>
>
> _______________________________________________
> vfio-users mailing list
> vfio-users at redhat.com
> https://www.redhat.com/mailman/listinfo/vfio-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/vfio-users/attachments/20160104/66b7d8f3/attachment.htm>


More information about the vfio-users mailing list