summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDor Laor <dor@qumranet.com>2006-11-29 10:47:10 +0000
committerDor Laor <dor@qumranet.com>2006-11-29 10:47:10 +0000
commitb02146fcb47a2eb45a50b90de491c728d3ae228a (patch)
tree807cd2d43d65dc655762f7be4a1eba11d4234e36 /scripts
parentd4a973c9f546f13ff19d1566b83c7f4d1061142a (diff)
Add removal of platform specific modules.
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
}