From 77f44a0780d72a3d62adaaa3fed64dfe04b5bd0b Mon Sep 17 00:00:00 2001 From: Nikolaos Karaolidis Date: Mon, 8 May 2023 10:57:52 +0100 Subject: [PATCH] Update vfio config Signed-off-by: Nikolaos Karaolidis --- .../hooks/win10-igpu/prepare/begin/start.sh | 6 ++---- .../hooks/win10-igpu/release/end/revert.sh | 6 ++---- xml/win10-igpu.xml | 19 ++++++++++--------- xml/win10.xml | 15 ++++++++------- 4 files changed, 22 insertions(+), 24 deletions(-) diff --git a/scripts/hooks/win10-igpu/prepare/begin/start.sh b/scripts/hooks/win10-igpu/prepare/begin/start.sh index 69f1e4d..bef33f4 100644 --- a/scripts/hooks/win10-igpu/prepare/begin/start.sh +++ b/scripts/hooks/win10-igpu/prepare/begin/start.sh @@ -46,10 +46,8 @@ modprobe -r nvidia virsh nodedev-detach $VIRSH_GPU_VIDEO virsh nodedev-detach $VIRSH_GPU_AUDIO -# Load VFIO kernel modules -modprobe vfio -modprobe vfio_pci -modprobe vfio_iommu_type1 +# Load VFIO kernel module +modprobe vfio-pci # Create looking glass shm systemd-tmpfiles --create /etc/tmpfiles.d/10-looking-glass.conf diff --git a/scripts/hooks/win10-igpu/release/end/revert.sh b/scripts/hooks/win10-igpu/release/end/revert.sh index 70e9f4a..1af67f9 100644 --- a/scripts/hooks/win10-igpu/release/end/revert.sh +++ b/scripts/hooks/win10-igpu/release/end/revert.sh @@ -18,10 +18,8 @@ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor # Delete looking glass shm rm /dev/shm/looking-glass -# Unload VFIO kernel modules -modprobe -r vfio_pci -modprobe -r vfio_iommu_type1 -modprobe -r vfio +# Unload VFIO kernel module +modprobe -r vfio-pci # Rebind the GPU to display driver virsh nodedev-reattach $VIRSH_GPU_VIDEO diff --git a/xml/win10-igpu.xml b/xml/win10-igpu.xml index 21af61c..9075622 100644 --- a/xml/win10-igpu.xml +++ b/xml/win10-igpu.xml @@ -1,14 +1,14 @@ - win10-igpu + win11-igpu fcac9afe-ee92-4803-a744-62b940e23e18 - Windows 10 - Passthrough (Hybrid Mode) + Windows 11 - Passthrough (Hybrid Mode) @@ -37,9 +37,10 @@ or other application using the libvirt API. hvm /usr/share/edk2-ovmf/x64/OVMF_CODE.fd - /var/lib/libvirt/qemu/nvram/win10-igpu_VARS.fd + /var/lib/libvirt/qemu/nvram/win11-igpu_VARS.fd + @@ -88,7 +89,7 @@ or other application using the libvirt API. - +
@@ -186,6 +187,7 @@ or other application using the libvirt API. +
@@ -206,11 +208,9 @@ or other application using the libvirt API. - -