[vfio-users] OVMF: Boots only first time after driver installation
Volker Rümelin
vr_qemu at t-online.de
Mon Jan 4 22:20:31 UTC 2016
Hi,
I use a AMD R9 270X and with a configuration like yours my win 8.1 guest
also does not boot. My guest works fine if I don't pass through my gpu
as a multifunction device. Perhaps something like this will work for you:
-device ioh3420,bus=pcie.0,addr=1c.0,port=1,chassis=1,id=root.1
-device
vfio-pci,host=01:00.0,bus=root.1,addr=00.0,romfile=/root/qemu/rom/amd285.rom
-device vfio-pci,host=01:00.1,bus=pcie.0,addr=10.0
I haven't tested these lines above because I use libvirt.
Regards
Volker
> 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
>
More information about the vfio-users
mailing list