peterdelevoryas / rpms / qemu

Forked from rpms/qemu 2 years ago
Clone
Blob Blame History Raw
#!/bin/sh

case $(uname -m) in
    ppc64)
        grep OPAL  /proc/cpuinfo >/dev/null 2>&1 && opal=1

        modprobe -b kvm >/dev/null 2>&1
        modprobe -b kvm-pr >/dev/null 2>&1 && kvm=1
        if [ "$opal" ]; then
            modprobe -b kvm-hv >/dev/null 2>&1
        fi
        ;;
    s390x)
        modprobe -b kvm >/dev/null 2>&1 && kvm=1
        ;;
esac

exit 0