qemu/kvm.modules
2009-03-04 00:11:57 +00:00

10 lines
192 B
Bash
Executable File

#!/bin/sh
if [ $(grep -c vmx /proc/cpuinfo) -ne 0 ]; then
modprobe kvm-intel >/dev/null 2>&1
fi
if [ $(grep -c svm /proc/cpuinfo) -ne 0 ]; then
modprobe kvm-amd >/dev/null 2>&1
fi