boot speedup optimization with kvm.modules BZ#785291
This commit is contained in:
parent
261b9ddbcd
commit
e7a45f871f
15
kvm.modules
15
kvm.modules
@ -1,11 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if [ $(grep -c vmx /proc/cpuinfo) -ne 0 ]; then
|
case "$(</proc/cpuinfo)" in
|
||||||
modprobe -b kvm-intel >/dev/null 2>&1
|
*vmx*) vmx=1 ;;
|
||||||
modprobe -b vhost-net >/dev/null 2>&1
|
*svm*) svm=1 ;;
|
||||||
fi
|
esac
|
||||||
|
|
||||||
if [ $(grep -c svm /proc/cpuinfo) -ne 0 ]; then
|
[ "$vmx" ] && modprobe -b kvm-intel >/dev/null 2>&1
|
||||||
modprobe -b kvm-amd >/dev/null 2>&1
|
[ "$svm" ] && modprobe -b kvm-amd >/dev/null 2>&1
|
||||||
modprobe -b vhost-net >/dev/null 2>&1
|
[ "$vmx" -o "$svm" ] && modprobe -b vhost-net >/dev/null 2>&1
|
||||||
fi
|
|
||||||
|
Loading…
Reference in New Issue
Block a user