34104a5fe7
Resolves rhbz #814932.
15 lines
382 B
Bash
Executable File
15 lines
382 B
Bash
Executable File
#!/bin/sh
|
|
|
|
grep vmx /proc/cpuinfo >/dev/null 2>&1 && vmx=1
|
|
grep svm /proc/cpuinfo >/dev/null 2>&1 && svm=1
|
|
|
|
if [ "$vmx" ] || [ "$svm" ]; then
|
|
[ "$vmx" ] && modprobe -b kvm-intel >/dev/null 2>&1
|
|
[ "$svm" ] && modprobe -b kvm-amd >/dev/null 2>&1
|
|
|
|
# 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
|