dcavalca / rpms / qemu

Forked from rpms/qemu a year ago
Clone

Blame kvm.modules

Glauber Costa b8bea8
#!/bin/sh
Glauber Costa b8bea8
Paolo Bonzini 2803fc
case $(uname -m) in
Paolo Bonzini 2803fc
    ppc64)
Paolo Bonzini 2803fc
        grep OPAL  /proc/cpuinfo >/dev/null 2>&1 && opal=1
Paolo Bonzini 2803fc
Alexey Kardashevskiy d92cc5
        modprobe -b kvm >/dev/null 2>&1
Alexey Kardashevskiy d92cc5
        modprobe -b kvm-pr >/dev/null 2>&1 && kvm=1
Paolo Bonzini 2803fc
        if [ "$opal" ]; then
Alexey Kardashevskiy d92cc5
            modprobe -b kvm-hv >/dev/null 2>&1
Paolo Bonzini 2803fc
        fi
Paolo Bonzini 2803fc
        ;;
Paolo Bonzini 31c633
    s390x)
Paolo Bonzini 31c633
        modprobe -b kvm >/dev/null 2>&1 && kvm=1
Paolo Bonzini 31c633
        ;;
Paolo Bonzini 2803fc
esac
Paolo Bonzini 2803fc
Paolo Bonzini d8d9ba
exit 0