render / rpms / qemu

Forked from rpms/qemu 9 months ago
Clone
Glauber Costa b8bea8
#!/bin/sh
Glauber Costa b8bea8
Justin M. Forbes e7a45f
case "$(
Justin M. Forbes e7a45f
    *vmx*) vmx=1 ;;
Justin M. Forbes e7a45f
    *svm*) svm=1 ;;
Justin M. Forbes e7a45f
esac
Glauber Costa b8bea8
Justin M. Forbes e7a45f
[ "$vmx" ] && modprobe -b kvm-intel >/dev/null 2>&1
Justin M. Forbes e7a45f
[ "$svm" ] && modprobe -b kvm-amd >/dev/null 2>&1
Justin M. Forbes e7a45f
[ "$vmx" -o "$svm" ] && modprobe -b vhost-net >/dev/null 2>&1