mirror of https://github.com/Chizi123/Scripts.git

Joel Grunbaum
2020-03-21 5008b013dbc1368677026e864b613fce2d947c71
Create VGPU with GVT-g for vm
1 files added
17 ■■■■■ changed files
win_igpu.sh 17 ●●●●● patch | view | raw | blame | history
win_igpu.sh
New file
@@ -0,0 +1,17 @@
if [ $EUID != 0 ]; then
    sudo "$0" "$@"
    exit $?
fi
case $1 in
    start)
        echo "fd798828-3180-4c19-a634-b88ddea27abe" > "/sys/devices/pci0000:00/0000:00:02.0/mdev_supported_types/i915-GVTg_V5_4/create"
        ;;
    stop)
        echo 1 > "/sys/devices/pci0000:00/0000:00:02.0/fd798828-3180-4c19-a634-b88ddea27abe/remove"
        ;;
    *)
        echo "Usage $0 start|stop"
        ;;
esac