summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/kvm2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/kvm b/scripts/kvm
index 671e72ea..37552aba 100755
--- a/scripts/kvm
+++ b/scripts/kvm
@@ -171,6 +171,8 @@ stop () {
ip link set ${switch} down
brctl delbr ${switch}
+ grep -q GenuineIntel /proc/cpuinfo && /sbin/modprobe -r kvm-intel
+ grep -q AuthenticAMD /proc/cpuinfo && /sbin/modprobe -r kvm-amd
/sbin/modprobe -r kvm
}