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

S B sb9sb0 at gmail.com
Mon Jan 4 01:58:01 UTC 2016


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/vfio-users/attachments/20160104/ea821a4f/attachment.htm>


More information about the vfio-users mailing list