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 | ||
* (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://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]] |