Update vfio config
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user