[qemu] ppc64: Enable HV and PR KVM
Richard W.M. Jones
rjones at fedoraproject.org
Wed Aug 27 09:58:01 UTC 2014
commit d92cc55200feb1d341fc9583d62c15ab8b73fda0
Author: Alexey Kardashevskiy <aik at ozlabs.ru>
Date: Wed Aug 27 14:47:50 2014 +1000
ppc64: Enable HV and PR KVM
Unlike other platforms, PPC64 supports 2 types of KVM:
1. PR KVM emulated in user space - works on every PPC64 platform, even on
old POWERMAC; does not require hypervisor-enabled host CPU (POWER5+ and
newer); does not require OPAL;
2. HV KVM - this requires hypervisor-enabled CPU and OPAL - i.e. recent
POWER7/8 CPUs running as a "powernv" platform only.
So PPC64 KVM is split into 3 kernel modules - kvm_pr, kvm_hv and kvm,
the latter contains bits of code common for both types of KVM.
Recent QEMU supports a "kvm-type" machine option and can instantiate
the requested type of KVM.
Signed-off-by: Alexey Kardashevskiy <aik at ozlabs.ru>
kvm.modules | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/kvm.modules b/kvm.modules
index 9808105..b9d9646 100755
--- a/kvm.modules
+++ b/kvm.modules
@@ -4,8 +4,10 @@ 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 >/dev/null 2>&1 && kvm=1
+ modprobe -b kvm-hv >/dev/null 2>&1
fi
;;
s390x)
More information about the scm-commits
mailing list