title: qemu from xml to native assign PCI device
body: <p>I'm stuck between two worlds here. I have part of a VM in virsh/XML and part in qemu native commands and I'm trying to unify them so my last bit is to transform this XML part into qemu native:</p>
  
  <pre><code>&lt;hostdev mode='subsystem' type='pci' managed='yes'&gt;
    &lt;source&gt;
      &lt;address domain='0x0000' bus='0x0d' slot='0x00' function='0x3'/&gt;
    &lt;/source&gt;
    &lt;address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/&gt;
  &lt;/hostdev&gt;
  </code></pre>
  
  <p>It's a USB controller/port/whatever. I found some code on the internet which suggests using <code>-device pci-assign,host=0d:00.3</code> but that doesn't work any more: <code>qemu-system-x86_64: -device pci-assign,host=0d:00.3: 'pci-assign' is not a valid device model name</code> so I'm lost here.</p>