summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kvm/powerpc.c
diff options
context:
space:
mode:
authorPaul Mackerras2018-10-09 07:13:20 +0200
committerPaul Mackerras2018-10-09 07:13:20 +0200
commit9d67121a4fce20e0f7f127d40cd824fbbf5297dc (patch)
treeefa49480305a12813bc37f06f233656da127d7cd /arch/powerpc/kvm/powerpc.c
parentKVM: PPC: Book3S HV: Provide mode where all vCPUs on a core must be the same VM (diff)
parentKVM: PPC: Book3S HV: Add nested shadow page tables to debugfs (diff)
downloadkernel-qcow2-linux-9d67121a4fce20e0f7f127d40cd824fbbf5297dc.tar.gz
kernel-qcow2-linux-9d67121a4fce20e0f7f127d40cd824fbbf5297dc.tar.xz
kernel-qcow2-linux-9d67121a4fce20e0f7f127d40cd824fbbf5297dc.zip
Merge remote-tracking branch 'remotes/powerpc/topic/ppc-kvm' into kvm-ppc-next
This merges in the "ppc-kvm" topic branch of the powerpc tree to get a series of commits that touch both general arch/powerpc code and KVM code. These commits will be merged both via the KVM tree and the powerpc tree. Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to 'arch/powerpc/kvm/powerpc.c')
-rw-r--r--arch/powerpc/kvm/powerpc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c
index eba5756d5b41..1f4b128894a0 100644
--- a/arch/powerpc/kvm/powerpc.c
+++ b/arch/powerpc/kvm/powerpc.c
@@ -594,7 +594,8 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext)
r = !!(hv_enabled && radix_enabled());
break;
case KVM_CAP_PPC_MMU_HASH_V3:
- r = !!(hv_enabled && cpu_has_feature(CPU_FTR_ARCH_300));
+ r = !!(hv_enabled && cpu_has_feature(CPU_FTR_ARCH_300) &&
+ cpu_has_feature(CPU_FTR_HVMODE));
break;
#endif
case KVM_CAP_SYNC_MMU: