render / rpms / qemu

Forked from rpms/qemu 10 months ago
Clone
Blob Blame History Raw
#!/bin/sh

case "$(</proc/cpuinfo)" in
    *vmx*) vmx=1 ;;
    *svm*) svm=1 ;;
esac

[ "$vmx" ] && modprobe -b kvm-intel >/dev/null 2>&1
[ "$svm" ] && modprobe -b kvm-amd >/dev/null 2>&1
[ "$vmx" -o "$svm" ] && modprobe -b vhost-net >/dev/null 2>&1