af14887e96
Drop unneeded kvm.modules on x86 (bz #963198) Make ksmtuned handle set_progname usage (bz #955230) Enable gluster support
22 lines
442 B
Bash
Executable File
22 lines
442 B
Bash
Executable File
#!/bin/sh
|
|
|
|
case $(uname -m) in
|
|
ppc64)
|
|
grep OPAL /proc/cpuinfo >/dev/null 2>&1 && opal=1
|
|
|
|
if [ "$opal" ]; then
|
|
modprobe -b kvm >/dev/null 2>&1 && kvm=1
|
|
fi
|
|
;;
|
|
s390x)
|
|
modprobe -b kvm >/dev/null 2>&1 && kvm=1
|
|
;;
|
|
esac
|
|
|
|
if [ "$kvm" ]; then
|
|
# no reason why vhost should not work with TCG, but currently it does not
|
|
modprobe -b vhost-net >/dev/null 2>&1
|
|
else
|
|
exit 0
|
|
fi
|