From bd65a069832bc69bb1bd5edd8a2b1ee817a8fe38 Mon Sep 17 00:00:00 2001 From: Jakub Filo Date: Fri, 14 Jan 2022 01:14:54 +0000 Subject: [PATCH] Added framebuffer unbinding for single GPU passthrough --- roles/libvirthost/files/usr/local/bin/kvm-tuning.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/libvirthost/files/usr/local/bin/kvm-tuning.sh b/roles/libvirthost/files/usr/local/bin/kvm-tuning.sh index 918ed66..8ceeb52 100755 --- a/roles/libvirthost/files/usr/local/bin/kvm-tuning.sh +++ b/roles/libvirthost/files/usr/local/bin/kvm-tuning.sh @@ -26,4 +26,10 @@ echo 0 > /sys/bus/workqueue/devices/writeback/numa echo 0 > /proc/sys/kernel/watchdog echo 300 > /proc/sys/vm/stat_interval +# For single GPU passthrough +# Unbind VTconsoles +echo 0 > /sys/class/vtconsole/vtcon0/bind +echo 0 > /sys/class/vtconsole/vtcon1/bind +# Unbind EFI-Framebuffer +echo efi-framebuffer.0 > /sys/bus/platform/drivers/efi-framebuffer/unbind