diff options
author | Paul Mackerras <paulus@ozlabs.org> | 2018-05-30 15:47:17 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@ozlabs.org> | 2018-05-31 09:21:50 +1000 |
commit | 9617a0b33569e79567300765d659c88c1f556c5d (patch) | |
tree | ab9c621371d9e6e98302c5ce40aec7fe039cb1a4 /kernel/ksysfs.c | |
parent | acc9eb9305fecd958e2877c4e6cd3284d01c2e82 (diff) | |
download | linux-9617a0b33569e79567300765d659c88c1f556c5d.tar.gz linux-9617a0b33569e79567300765d659c88c1f556c5d.tar.bz2 linux-9617a0b33569e79567300765d659c88c1f556c5d.zip |
KVM: PPC: Book3S PR: Allow KVM_PPC_CONFIGURE_V3_MMU to succeed
Currently, PR KVM does not implement the configure_mmu operation, and
so the KVM_PPC_CONFIGURE_V3_MMU ioctl always fails with an EINVAL
error. This causes recent kernels to fail to boot as a PR KVM guest
on POWER9, since recent kernels booted in HPT mode do the
H_REGISTER_PROC_TBL hypercall, which causes userspace (QEMU) to do
KVM_PPC_CONFIGURE_V3_MMU, which fails.
This implements a minimal configure_mmu operation for PR KVM. It
succeeds only if the MMU is being configured for HPT mode and no
process table is being registered. This is enough to get recent
kernels to boot as a PR KVM guest.
Reviewed-by: Greg Kurz <groug@kaod.org>
Tested-by: Greg Kurz <groug@kaod.org>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to 'kernel/ksysfs.c')
0 files changed, 0 insertions, 0 deletions