<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Apr 10, 2016 at 8:04 AM, Stefan Seil <span dir="ltr"><<a href="mailto:Stefan.seil@gmx.net" target="_blank">Stefan.seil@gmx.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:Verdana;font-size:12.0px"><div>Hello there!</div>

<div> </div>

<div>I am trying to set up a PCI passthrough for my graphics card. I followed the instructions on <a href="http://vfio.blogspot.com" target="_blank">vfio.blogspot.com</a> and used vfio-pci and OVMF, and so far everything seemed to work fine. When I now try to start the VM with my graphics card passed through, though, it shows the TianoCore boot splash (with the successfull memory test notice on the bottom) on the monitor connected to the card and stops there. I tried waiting for quite a while, but it is stuck at this boot splash. If I remove the PCI devices from the VM, the OS boots without problems.</div>

<div> </div>

<div>I don't see any error messages in any of the relevant logs I can think of (libvirt log, dmesg, virt-manager itself). The only line showing up in the libvirt log (/var/log/libvirt/qemu/...) is the following:</div>

<div> </div>

<div>2016-04-10 10:45:08.461+0000: starting up libvirt version: 1.3.2, package: 0~15.10~ppa0 (Jacob Zimmermann <<a href="mailto:ppa@jzimm.net" target="_blank">ppa@jzimm.net</a>> Fri, 04 Mar LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin QEMU_AUDIO_DRV=spice /usr/bin/kvm-spice -name xubuntu2 -S -char device redirected to /dev/pts/9 (label charserial0)</div>

<div> </div>

<div>I don't really have an idea what the problem could be, especially since there are no errors showing up. I am using an Intel Core i5-3470, a Sapphire HD 7850 (AMD) and Xubuntu 15.10 on the host. I installed all the relevant tools from a PPA by Jacob Zimmermann in order to get more recent versions of qemu, virt-manager and the likes.</div>

<div> </div>

<div>One thing I should note is that the ROM of my graphics card does not support UEFI out of the box. As it is, the passthrough did not work at all; there was nothing showing up on the monitor connected to the card. I found a ROM from a similar model by Gigabyte that supports UEFI, though, and passed it to the VM. Now the monitor shows the TianoCore boot splash, but stops there. Could this be the problem? I would think that it should work this way, though, as the boot splash is already passed to the card; otherwise there would be nothing showing up on the monitor, right?</div></div></div>

</blockquote></div><br></div><div class="gmail_extra">My guess is the old kernel/OVMF MTRR issues, what kernel version are you running?  What OVMF version are you running.  Upgrade both ;)  But of course a "close enough" ROM may not really be close enough.  I find that my HD7850 works pretty well w/  OVMF even w/o a UEFI compatible ROM.  AMD cards also have the option of running as secondary graphics devices in many cases, at least old ones like this where reset works.  Thanks,</div><div class="gmail_extra"><br></div><div class="gmail_extra">Alex</div></div>