Why libvirt cant support xvga directly

qemu:

   <qemu:commandline>
     <qemu:arg value='-device'/>
     <qemu:arg value='vfio-pci,host=01:00.0,multifunction=on,x-vga=on'/>
   </qemu:commandline>

libvirt:

<hostdev mode='subsystem' type='pci' managed='yes' xvga='yes'>
  <driver name='vfio'/>
  <source>
    <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
  </source>
  <address type='pci' domain='0x0000' bus='0x02' slot='0x07' function='0x0'/>
</hostdev>

then libvirt will say :

error: XML document failed to validate against schema: Unable to validate doc against /usr/share/libvirt/schemas/domain.rng
Extra element devices in interleave
Element domain failed to validate content

so in libvirt ,it can only be:

<hostdev mode='subsystem' type='pci' managed='yes'>
  <driver name='vfio'/>
  <source>
    <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
  </source>
  <address type='pci' domain='0x0000' bus='0x02' slot='0x07' function='0x0'/>
</hostdev>

then the VM will be black screen (seabios).

“can dokuwiki use this editor plugin?”