IGVT-g: Difference between revisions

imported>User
adjust bare qemu instruction to recent changes
imported>User
EDID support is landed
Line 32: Line 32:


{{file|/etc/nixos/configuration.nix|nix|<nowiki>
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
  boot.kernelPackages = pkgs.linuxPackages_5_2;
   virtualisation.kvmgt.enable = true;  
   virtualisation.kvmgt.enable = true;  
   virtualisation.kvmgt.vgpus = {
   virtualisation.kvmgt.vgpus = {
Line 55: Line 56:
     -nodefaults \
     -nodefaults \
     -display gtk,gl=on \
     -display gtk,gl=on \
     -device vfio-pci,sysfsdev=/sys/bus/mdev/devices/'''a297db4a-f4c2-11e6-90f6-d3b88d6c9525''',display=on,x-igd-opregion=on,driver=vfio-pci-nohotplug,ramfb=on
     -device vfio-pci,sysfsdev=/sys/bus/mdev/devices/'''a297db4a-f4c2-11e6-90f6-d3b88d6c9525''',display=on,x-igd-opregion=on,driver=vfio-pci-nohotplug,ramfb=on,xres=1920,yres=1080


=== libvirtd ===
=== libvirtd ===
Line 86: Line 87:
     <qemu:arg value='-set'/>
     <qemu:arg value='-set'/>
     <qemu:arg value='device.hostdev0.driver=vfio-pci-nohotplug'/>
     <qemu:arg value='device.hostdev0.driver=vfio-pci-nohotplug'/>
    <qemu:arg value='-set'/>
    <qemu:arg value='device.hostdev0.xres=1920'/>
    <qemu:arg value='-set'/>
    <qemu:arg value='device.hostdev0.yres=1080'/>
   </qemu:commandline>
   </qemu:commandline>
</domain>
</domain>
Line 113: Line 118:
   1
   1
also check dmesg output for gvt related error, most likely there is not enough VRAM
also check dmesg output for gvt related error, most likely there is not enough VRAM
* There is no VGPU device that has resolution of my screen
** Use this program in guest https://www.monitortests.com/forum/Thread-Custom-Resolution-Utility-CRU to set resolution you need


* (libvirtd) VM stops immediately with no error other than "internal error: process exited while connecting to monitor"
* (libvirtd) VM stops immediately with no error other than "internal error: process exited while connecting to monitor"
Line 131: Line 132:
== Useful sources ==
== Useful sources ==


* [https://www.kraxel.org/blog/2018/04/vgpu-display-support-finally-merged-upstream/ <em>vgpu display support</em> on a contributor (kraxel)'s blog] - this guide misses info that Windows guest requires x-igd-opregion=on parameter
* https://github.com/intel/gvt-linux/wiki/GVTg_Setup_Guide - obsoleted guide, but some parts are useful
* https://github.com/intel/gvt-linux/wiki/Dma_Buf_User_Guide - obsoleted guide, but some parts are useful
* https://blog.bepbep.co/posts/gvt/ - How to get 60fps!
* https://blog.bepbep.co/posts/gvt/ - How to get 60fps!
* https://www.kraxel.org/blog/2019/02/ramfb-display-in-qemu/ - Info about ramfb parameter
* https://www.kraxel.org/blog/2019/02/ramfb-display-in-qemu/ - Info about ramfb parameter
[[Category:Video]]
[[Category:Video]]
[[Category:Virtualization]]
[[Category:Virtualization]]