projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ce008c
)
KVM: PPC: Book3S HV P9: Allow all P9 processors to enable nested HV
author
Nicholas Piggin
<npiggin@gmail.com>
Fri, 28 May 2021 09:07:46 +0000
(19:07 +1000)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Thu, 10 Jun 2021 12:12:15 +0000
(22:12 +1000)
All radix guests go via the P9 path now, so there is no need to limit
nested HV to processors that support "mixed mode" MMU. Remove the
restriction.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link:
https://lore.kernel.org/r/20210528090752.3542186-27-npiggin@gmail.com
arch/powerpc/kvm/book3s_hv.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/kvm/book3s_hv.c
b/arch/powerpc/kvm/book3s_hv.c
index acb0c72ea9007586e425f5a46c28e2bc5b88195e..cf403280b199d5a0ff3f8f71f7ee001ec96ad4df 100644
(file)
--- a/
arch/powerpc/kvm/book3s_hv.c
+++ b/
arch/powerpc/kvm/book3s_hv.c
@@
-5451,7
+5451,7
@@
static int kvmhv_enable_nested(struct kvm *kvm)
{
if (!nested)
return -EPERM;
- if (!cpu_has_feature(CPU_FTR_ARCH_300)
|| no_mixing_hpt_and_radix
)
+ if (!cpu_has_feature(CPU_FTR_ARCH_300))
return -ENODEV;
/* kvm == NULL means the caller is testing if the capability exists */