dcavalca / rpms / qemu

Forked from rpms/qemu a year ago
Clone
Blob Blame History Raw
#!/bin/sh

if [ $(grep -c vmx /proc/cpuinfo) -ne 0 ]; then 
    modprobe -b kvm-intel >/dev/null 2>&1
    modprobe -b vhost-net >/dev/null 2>&1
fi

if [ $(grep -c svm /proc/cpuinfo) -ne 0 ]; then 
    modprobe -b kvm-amd >/dev/null 2>&1
    modprobe -b vhost-net >/dev/null 2>&1
fi