<p dir="ltr">Simple way of converting:<br>
ps -ef | grep qemu<br>
It'll show what libvirt starts.</p>
<div class="gmail_quote">On Apr 11, 2016 6:18 PM, "Stefan Seil" <<a href="mailto:stefan.seil@gmx.net">stefan.seil@gmx.net</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <small>I have assigned two CPU cores to the VM and the performance
      graph in virt-manager shows a constant 50-51% usage.<br>
      I have created two simple virtual drives (both IDE, raw), one to
      use as a hard disk and one for a CDROM drive to boot the
      installation image. This was done in the setup wizard in
      virt-manager, so this is more or less the default configuration I
      guess. As I said before, </small><small>the VM boots this without
      problems if I remove the assigned graphics card from it.<br>
      I don't pass through anything but the two PCI devices for my
      graphics card (one for the GPU, one for the HDMI audio).<br>
      <br>
      I tried converting the XML configuration to qemu arguments with
      domxml-to-native, but I get this error every time:<br>
      <br>
      Error: Internal Error: invalid PCI passthrough type 'default'<br>
      <br>
      I have searched for an explanation and potential solution to this
      error, but the only thing I found was about a bug in libvirt from
      two years ago, so I am not sure what this error is supposed to
      mean. I will have to further investigate this.<br>
      For reference, here is the XML configuration:
      <a href="http://pastebin.com/RNDhgdK1" target="_blank">http://pastebin.com/RNDhgdK1</a><br>
      <br>
      <br>
    </small>
    <div>Am 10.04.2016 um 16:46 schrieb Blank
      Field:<br>
    </div>
    <blockquote type="cite">
      <p dir="ltr">100% one core CPU?<br>
        What kind of disk device you have?<br>
        Are you passing through a physical disk?</p>
      <p dir="ltr">What you can do - convert libvirt xml into a usual
        qemu command line, and add an ISA debug console and check OVMF
        debug output in it.</p>
      <div class="gmail_quote">On Apr 10, 2016 5:04 PM, "Stefan Seil"
        <<a href="mailto:Stefan.seil@gmx.net" target="_blank">Stefan.seil@gmx.net</a>>
        wrote:<br type="attribution">
        <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>
          <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" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/vfio-users</a><br>
          <br>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </div>

</blockquote></div>