added vfio-verify script and updated the last script page with more info

This commit is contained in:
HikariKnight 2022-02-28 21:37:09 +01:00
parent a4946979b3
commit 0db62afe65
No known key found for this signature in database
GPG key ID: E8B239063B022F5A
2 changed files with 20 additions and 0 deletions

17
vfio-verify Executable file
View file

@ -0,0 +1,17 @@
#!/bin/bash
# Get the scripts directory
SCRIPTDIR=$(dirname `which $0`)
cd $SCRIPTDIR
if [ -f $SCRIPTDIR/config/kernel_args ];
then
DEVID=$(cat $SCRIPTDIR/config/kernel_args | cut -d " " -f 3 | cut -d "=" -f 2 | perl -pe "s/^([0-9a-f]{4}:).*/\1/")
echo "#------------------------------------------#"
lspci -d $DEVID -v | grep -iP "kernel driver|amd|radeon|nvidia|nouveau" | grep -vi "kernel modules"
echo "#------------------------------------------#"
printf "
If the \"Kernel driver in use\" for these devices are \"vfio-pci\", then VFIO has been successfully enabled!
"
fi