On 12/20/2017 09:40 PM, Rogue S.T wrote:
Hello,my system info:
virsh verison
Compiled against library: libvirt 3.9.0
Using library: libvirt 3.9.0
Using API: QEMU 3.9.0
Running hypervisor: QEMU 2.10.90
And i want to pass through my gpu to my window 7 guest with <hostdev>,
next line is comand i use:
<hostdev mode='subsystem' type='pci' managed='yes'
xvga='yes'>
I'm not sure where you got the idea that libvirt's <hostdev> element had
an attribute called "xvga", but it doesn't.
If your GPU needs to have QEMU's xvga setting turned on, this posting
from ALex's blog explains how to do it using libvirt's QEMU commandline
passthrough:
http://vfio.blogspot.com/2016/09/passing-qemu-command-line-options.html
I would recommend reading all the other postings in his blog as well, as
they are very informative.
<source>
<address domain='0x0000' bus='0x01' slot='0x00'
function='0x0'/>
</source>
<rom bar='on' file='/root/gpu.dump'/>
<address type='pci' domain='0x0000' bus='0x00'
slot='0x07'
function='0x0'/>
</hostdev>
But i get this error:
XML document failed to validate against schema: Unable to
validate doc against /ocl/share/libvirt/schemas/domain.rng
Extra element devices in interleave
Element domain failed to validate content
If i delete xvga='yes',it's ok, but i get a other question, my display
is not light.
_______________________________________________
libvirt-users mailing list
libvirt-users(a)redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users