From 2d35d8e272b4d5725c686be5d2b4436a55fe8141 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Sat, 11 Jan 2025 12:40:33 -0500 Subject: Update libvirt configs, laptop theme --- .../hooks/qemu.d/corpa/release/end/unbind_vfio.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 hosts/iroha/libvirt/hooks/qemu.d/corpa/release/end/unbind_vfio.sh (limited to 'hosts/iroha/libvirt/hooks/qemu.d/corpa/release') diff --git a/hosts/iroha/libvirt/hooks/qemu.d/corpa/release/end/unbind_vfio.sh b/hosts/iroha/libvirt/hooks/qemu.d/corpa/release/end/unbind_vfio.sh new file mode 100755 index 0000000..e3b1234 --- /dev/null +++ b/hosts/iroha/libvirt/hooks/qemu.d/corpa/release/end/unbind_vfio.sh @@ -0,0 +1,16 @@ +#! /usr/bin/env bash + +source "/etc/libvirt/hooks/arcade.conf" + +virsh nodedev-reattach $VIRSH_GPU_VIDEO +virsh nodedev-reattach $VIRSH_GPU_AUDIO +virsh nodedev-reattach $VIRSH_USB + +modprobe -r vfio_pci +modprobe -r vfio_iommu_type1 +modprobe -r vfio + +modprobe nvidia-drm +modprobe nvidia-modeset +modprobe nvidia-uvm +modprobe nvidia -- cgit v1.2.3-101-g0448