This repository was archived by the owner on Oct 3, 2024. It is now read-only.
Description With GVT-g set up, I am now capable of creating a vGPU using my Intel UHD Graphics 620, passing it through a Windows 11 VM, and getting much better improved graphics for 3D-related applications, such as Shadertoy & Minecraft.
However, the actual speed of UIs doesn't seem to change, as mouse movement is a bit choppy as well as UI movement (i.e laggy Google Chrome UI, laggy windows UI, etc)
I currently use this XML file for my VM, however cannot find out why the UI acceleration isn't working:
<domain xmlns : qemu =" http://libvirt.org/schemas/domain/qemu/1.0" type =" kvm" >
<name >virtify0</name >
<uuid >be218d97-c35f-46dc-90fd-77d5fe5fb347</uuid >
<memory unit =" KiB" >8388608</memory >
<currentMemory unit =" KiB" >8388608</currentMemory >
<vcpu placement =" static" >4</vcpu >
<os >
<type arch =" x86_64" machine =" pc-i440fx-7.2" >hvm</type >
</os >
<features >
<acpi />
<apic />
<vmport state =" off" />
</features >
<cpu mode =" host-passthrough" check =" none" migratable =" on" />
<clock offset =" utc" >
<timer name =" rtc" tickpolicy =" catchup" />
<timer name =" pit" tickpolicy =" delay" />
<timer name =" hpet" present =" no" />
</clock >
<on_poweroff >destroy</on_poweroff >
<on_reboot >restart</on_reboot >
<on_crash >destroy</on_crash >
<pm >
<suspend-to-mem enabled =" no" />
<suspend-to-disk enabled =" no" />
</pm >
<devices >
<emulator >/usr/bin/qemu-system-x86_64</emulator >
<disk type =" file" device =" disk" >
<driver name =" qemu" type =" qcow2" discard =" unmap" />
<source file =" /var/lib/libvirt/images/virtify0.qcow2" />
<target dev =" vda" bus =" virtio" />
<boot order =" 1" />
<address type =" pci" domain =" 0x0000" bus =" 0x00" slot =" 0x07" function =" 0x0" />
</disk >
<disk type =" file" device =" cdrom" >
<driver name =" qemu" type =" raw" />
<source file =" /home/matthewmajf/Downloads/Win11_23H2_EnglishInternational_x64v2.iso" />
<target dev =" hdb" bus =" ide" />
<readonly />
<address type =" drive" controller =" 0" bus =" 0" target =" 0" unit =" 1" />
</disk >
<disk type =" file" device =" cdrom" >
<driver name =" qemu" type =" raw" />
<source file =" /home/matthewmajf/Downloads/virtio-win-0.1.240.iso" />
<target dev =" hdc" bus =" ide" />
<readonly />
<address type =" drive" controller =" 0" bus =" 1" target =" 0" unit =" 0" />
</disk >
<controller type =" usb" index =" 0" model =" ich9-ehci1" >
<address type =" pci" domain =" 0x0000" bus =" 0x00" slot =" 0x05" function =" 0x7" />
</controller >
<controller type =" usb" index =" 0" model =" ich9-uhci1" >
<master startport =" 0" />
<address type =" pci" domain =" 0x0000" bus =" 0x00" slot =" 0x05" function =" 0x0" multifunction =" on" />
</controller >
<controller type =" usb" index =" 0" model =" ich9-uhci2" >
<master startport =" 2" />
<address type =" pci" domain =" 0x0000" bus =" 0x00" slot =" 0x05" function =" 0x1" />
</controller >
<controller type =" usb" index =" 0" model =" ich9-uhci3" >
<master startport =" 4" />
<address type =" pci" domain =" 0x0000" bus =" 0x00" slot =" 0x05" function =" 0x2" />
</controller >
<controller type =" pci" index =" 0" model =" pci-root" />
<controller type =" pci" index =" 1" model =" pci-bridge" >
<model name =" pci-bridge" />
<target chassisNr =" 1" />
<address type =" pci" domain =" 0x0000" bus =" 0x00" slot =" 0x02" function =" 0x0" />
</controller >
<controller type =" pci" index =" 2" model =" pci-bridge" >
<model name =" pci-bridge" />
<target chassisNr =" 2" />
<address type =" pci" domain =" 0x0000" bus =" 0x00" slot =" 0x09" function =" 0x0" />
</controller >
<controller type =" pci" index =" 3" model =" pci-bridge" >
<model name =" pci-bridge" />
<target chassisNr =" 3" />
<address type =" pci" domain =" 0x0000" bus =" 0x00" slot =" 0x0a" function =" 0x0" />
</controller >
<controller type =" pci" index =" 4" model =" pci-bridge" >
<model name =" pci-bridge" />
<target chassisNr =" 4" />
<address type =" pci" domain =" 0x0000" bus =" 0x00" slot =" 0x0b" function =" 0x0" />
</controller >
<controller type =" pci" index =" 5" model =" pci-bridge" >
<model name =" pci-bridge" />
<target chassisNr =" 5" />
<address type =" pci" domain =" 0x0000" bus =" 0x00" slot =" 0x0c" function =" 0x0" />
</controller >
<controller type =" pci" index =" 6" model =" pci-bridge" >
<model name =" pci-bridge" />
<target chassisNr =" 6" />
<address type =" pci" domain =" 0x0000" bus =" 0x00" slot =" 0x0d" function =" 0x0" />
</controller >
<controller type =" ide" index =" 0" >
<address type =" pci" domain =" 0x0000" bus =" 0x00" slot =" 0x01" function =" 0x1" />
</controller >
<controller type =" virtio-serial" index =" 0" >
<address type =" pci" domain =" 0x0000" bus =" 0x00" slot =" 0x06" function =" 0x0" />
</controller >
<interface type =" network" >
<mac address =" 52:54:00:34:4f:bf" />
<source network =" default" />
<model type =" virtio" />
<link state =" up" />
<address type =" pci" domain =" 0x0000" bus =" 0x00" slot =" 0x03" function =" 0x0" />
</interface >
<serial type =" pty" >
<target type =" isa-serial" port =" 0" >
<model name =" isa-serial" />
</target >
</serial >
<console type =" pty" >
<target type =" serial" port =" 0" />
</console >
<channel type =" spicevmc" >
<target type =" virtio" name =" com.redhat.spice.0" />
<address type =" virtio-serial" controller =" 0" bus =" 0" port =" 1" />
</channel >
<input type =" mouse" bus =" virtio" >
<address type =" pci" domain =" 0x0000" bus =" 0x00" slot =" 0x0e" function =" 0x0" />
</input >
<input type =" keyboard" bus =" virtio" >
<address type =" pci" domain =" 0x0000" bus =" 0x00" slot =" 0x0f" function =" 0x0" />
</input >
<input type =" mouse" bus =" ps2" />
<input type =" keyboard" bus =" ps2" />
<graphics type =" spice" >
<listen type =" none" />
<gl enable =" yes" rendernode =" /dev/dri/by-path/pci-0000:00:02.0-render" />
</graphics >
<sound model =" ich6" >
<address type =" pci" domain =" 0x0000" bus =" 0x00" slot =" 0x04" function =" 0x0" />
</sound >
<audio id =" 1" type =" spice" />
<video >
<model type =" none" />
</video >
<hostdev mode =" subsystem" type =" mdev" managed =" no" model =" vfio-pci" display =" on" >
<source >
<address uuid =" cb33ec6d-ad44-4702-b80f-c176f56afea1" />
</source >
<address type =" pci" domain =" 0x0000" bus =" 0x06" slot =" 0x01" function =" 0x0" />
</hostdev >
<redirdev bus =" usb" type =" spicevmc" >
<address type =" usb" bus =" 0" port =" 2" />
</redirdev >
<redirdev bus =" usb" type =" spicevmc" >
<address type =" usb" bus =" 0" port =" 3" />
</redirdev >
<memballoon model =" virtio" >
<address type =" pci" domain =" 0x0000" bus =" 0x00" slot =" 0x08" function =" 0x0" />
</memballoon >
</devices >
<qemu : override >
<qemu : device alias =" hostdev0" >
<qemu : frontend >
<qemu : property name =" x-igd-opregion" type =" bool" value =" true" />
<qemu : property name =" ramfb" type =" bool" value =" true" />
<qemu : property name =" driver" type =" string" value =" vfio-pci-nohotplug" />
</qemu : frontend >
</qemu : device >
</qemu : override >
</domain > Reactions are currently unavailable
With GVT-g set up, I am now capable of creating a vGPU using my Intel UHD Graphics 620, passing it through a Windows 11 VM, and getting much better improved graphics for 3D-related applications, such as Shadertoy & Minecraft.
However, the actual speed of UIs doesn't seem to change, as mouse movement is a bit choppy as well as UI movement (i.e laggy Google Chrome UI, laggy windows UI, etc)
I currently use this XML file for my VM, however cannot find out why the UI acceleration isn't working: