2009-03-04 00:11:57 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2012-10-11 16:01:59 +00:00
|
|
|
case $(uname -m) in
|
|
|
|
ppc64)
|
|
|
|
grep OPAL /proc/cpuinfo >/dev/null 2>&1 && opal=1
|
|
|
|
|
2014-08-27 04:47:50 +00:00
|
|
|
modprobe -b kvm >/dev/null 2>&1
|
|
|
|
modprobe -b kvm-pr >/dev/null 2>&1 && kvm=1
|
2012-10-11 16:01:59 +00:00
|
|
|
if [ "$opal" ]; then
|
2014-08-27 04:47:50 +00:00
|
|
|
modprobe -b kvm-hv >/dev/null 2>&1
|
2012-10-11 16:01:59 +00:00
|
|
|
fi
|
|
|
|
;;
|
2012-10-19 08:15:31 +00:00
|
|
|
s390x)
|
|
|
|
modprobe -b kvm >/dev/null 2>&1 && kvm=1
|
|
|
|
;;
|
2012-10-11 16:01:59 +00:00
|
|
|
esac
|
|
|
|
|
2013-05-16 09:46:34 +00:00
|
|
|
exit 0
|