I passed a nvidia graphic card to a virtual machine with KVM.I seted '-vga none' because vga in qemu will conflict with the gpu that I passed to VM in windows 7. I will get code 12 with graphic card in Device Manager when I set '-vga cirrus' or '-vga qxl'.I could not connect to VM by spice because I had set '-vga none'.The '-vga cirrus' will not conflict with the gpu in Windows 10, but spice will connect to vga instead of the graphic card that I passed to VM.How can I connet to the graphic card and controll the vm by spice?
Currently is not possible. The problem is that the card is fully controlled by the guest
so the host cannot see the content of the screen. We are doing some experimentation
in order to get the content with the help of the guest. Possibly with Intel the host
can read the screen content so won't require any guest collaboration.
Frediano
Here my qemu command:/root/qemu25/qemu/x86_64-softmmu/qemu-system-x86_64 \-name i-gputest \-machine pc \-m 2048 \-boot strict=on \-smp 2,sockets=1,cores=2,threads=1 \-hda /root/gputest/windows7.raw \-k en-us \-drive if=pflash,format=raw,readonly,file=/usr/share/edk2.git/ovmf-x64/OVMF_CODE-pure-efi.fd \-drive if=pflash,format=raw,file=/root/gputest/OVMF_VARS-pure-efi.fd \-device vfio-pci,host=44:00.0,multifunction=on,x-vga=on \-device vfio-pci,host=44:00.1 \-spice port=5944,disable-ticketing \-vga noneRegards,John
_______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel