<p dir="ltr"><a href="http://people.redhat.com/~lersek/ovmf-whitepaper-c770f8c.txt">people.redhat.com/~lersek/ovmf-whitepaper-c770f8c.txt</a></p>
<p dir="ltr">Windows 7 won't output anything with ovmf until you install the drivers.<br>
I'd recommend either using VGA or using a more modern OS.</p>
<div class="gmail_quote">On Sep 23, 2015 7:46 AM, "Okky Hendriansyah" <<a href="mailto:okky@nostratech.com">okky@nostratech.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div style="color:rgb(0,0,0);margin:0px"><span style="font-family:Helvetica,Arial;font-size:13px">Hmm, I once successful passing through to a Windows 7 guest but with using VGA mode, thus I used the Seabios instead of OVMF, install </span><font face="Courier">linux-vfio</font><span style="font-family:Helvetica,Arial;font-size:13px"> from AUR to have the kernel patched with necessary Intel VGA Arbitration patches, and enable the </span><font face="Courier">i915.enable_hd_vgaarb=1</font> kernel parameter.</div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">Here’s my script when I use Windows 7: </div><a href="http://pastebin.com/5U2VjuEy" target="_blank"> http://pastebin.com/5U2VjuEy</a><div><br> <div><font face="helvetica, arial">-- </font><br><span style="color:rgb(2,1,3)"><font face="Calibri"><b>Okky Hendriansyah</b></font></span></div><p style="color:#000">On September 23, 2015 at 11:30:47, Francisco Menendez (<a href="mailto:aterfelis@gmail.com" target="_blank">aterfelis@gmail.com</a>) wrote:</p> <blockquote type="cite"><span><div><div></div><div>Hello, Okky.
<br>Thanks for your reply.
<br>
<br>I removed the x-vga=on option but there isn't any discernible change.
<br>Boots normally, but only displays up until "Starting Windows"
<br>
<br>On Wed, Sep 23, 2015 at 1:10 PM, Okky Hendriansyah <<a href="mailto:okky@nostratech.com" target="_blank">okky@nostratech.com</a>> wrote:
<br>> Hi Francisco,
<br>>
<br>> It seems that you passthrough in VGA mode (x-vga=on) but you are using OVMF
<br>> also. Have you tried omiting the x-vga=on switch?
<br>>
<br>> Best regards,
<br>> --
<br>> Okky Hendriansyah
<br>>
<br>> On September 23, 2015 at 11:05:44, Francisco Menendez (<a href="mailto:aterfelis@gmail.com" target="_blank">aterfelis@gmail.com</a>)
<br>> wrote:
<br>>
<br>> I'm having a bit of an odd issue and would greatly appreciate it if
<br>> someone has any clue as of what might be happening.
<br>>
<br>> The system:
<br>> * Intel CPU with VTx and VTd enabled in BIOS
<br>> * NVidia GTX 980 - isolated (vfio), to be used by the guest
<br>> * Intel graphics for the host (Arch Linux x64)
<br>>
<br>> What I've done:
<br>>
<br>> * Added "iommu_intel=on" to the kernel boot command line
<br>> * Blacklisted the nouveau driver
<br>> * Added the vfio-pci driver and assigned the necessary ids (GPU +
<br>> attached HDMI sound)
<br>> * Confirmed IOMMU groups ( /sys/kernel/iommu_groups/ -type l output is OK)
<br>> * Confirmed vfio-pci capture with dmesg
<br>>
<br>> What happens:
<br>>
<br>> After booting windows, I get the GPU displaying the "Starting Windows"
<br>> splash screen, with animation and everything. Thus far, I think the
<br>> GPU passthrough is successful. However, after that, the screen gets
<br>> stuck there while the system keeps booting. I even hear the windows
<br>> chime as it starts, but the screen is still showing "Starting Windows"
<br>>
<br>> If I use emulated VGA, the NVidia card shows "Code 12", but I hear
<br>> this is expected if the emulated VGA is turned on.
<br>>
<br>> The above is also reproducible with the windows installer ( The GPU
<br>> output displays: "Windows is loading files" -> "Starting windows" ->
<br>> no more screen updates )
<br>>
<br>> QEMU commandline:
<br>>
<br>> --------------
<br>> qemu-system-x86_64 \
<br>> -name windows7 \
<br>> -cpu host,kvm=off \
<br>> -smp 8,sockets=1,cores=4,threads=2 \
<br>> -enable-kvm \
<br>> -machine type=pc,accel=kvm,iommu=on \
<br>> -m 16G -mem-prealloc -balloon none \
<br>> -rtc clock=host,base=utc \
<br>> -soundhw hda \
<br>> -device
<br>> ioh3420,bus=pci.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1
<br>> \
<br>> -device vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on
<br>> \
<br>> -device vfio-pci,host=01:00.1,bus=root.1,addr=00.1 \
<br>> -drive
<br>> if=pflash,format=raw,readonly,file=/usr/share/edk2.git/ovmf-x64/OVMF_CODE-pure-efi.fd
<br>> \
<br>> -drive
<br>> if=pflash,format=raw,file=/usr/share/edk2.git/ovmf-x64/OVMF_VARS-pure-efi.fd
<br>> \
<br>> -drive file=win7.img,if=ide,format=raw,media=disk \
<br>> -monitor stdio \
<br>> -device piix3-usb-uhci -device usb-tablet \
<br>> -vga none -serial null -parallel null -nodefaults -nodefconfig
<br>> ----------------
<br>>
<br>> Let me know if you need any other information about the setup.
<br>> Thank you in advance!
<br>>
<br>> _______________________________________________
<br>> vfio-users mailing list
<br>> <a href="mailto:vfio-users@redhat.com" target="_blank">vfio-users@redhat.com</a>
<br>> <a href="https://www.redhat.com/mailman/listinfo/vfio-users" target="_blank">https://www.redhat.com/mailman/listinfo/vfio-users</a>
<br></div></div></span></blockquote></div></div><br>_______________________________________________<br>
vfio-users mailing list<br>
<a href="mailto:vfio-users@redhat.com">vfio-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/vfio-users" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/vfio-users</a><br>
<br></blockquote></div>