5 grep vmx /proc/cpuinfo >/dev/null 2>&1 && vmx=1
6 grep svm /proc/cpuinfo >/dev/null 2>&1 && svm=1
8 if [ "$vmx" ] || [ "$svm" ]; then
9 [ "$vmx" ] && modprobe -b kvm-intel >/dev/null 2>&1 && kvm=1
10 [ "$svm" ] && modprobe -b kvm-amd >/dev/null 2>&1 && kvm=1
14 grep OPAL /proc/cpuinfo >/dev/null 2>&1 && opal=1
17 modprobe -b kvm >/dev/null 2>&1 && kvm=1
21 modprobe -b kvm >/dev/null 2>&1 && kvm=1
26 # no reason why vhost should not work with TCG, but currently it does not
27 modprobe -b vhost-net >/dev/null 2>&1