KVM: PPC: Book3S HV: Rename hpte_setup_done to mmu_ready
authorPaul Mackerras <paulus@ozlabs.org>
Wed, 13 Sep 2017 05:53:48 +0000 (15:53 +1000)
committerPaul Mackerras <paulus@ozlabs.org>
Wed, 1 Nov 2017 04:36:12 +0000 (15:36 +1100)
commit1b151ce466175746b1b1a87d42ba5f5a050a5aba
tree0f6f6fca20b46ce442153961fbfa60c979fe33b9
parent8dc6cca556e4126f77b71cf8e0c45ccc78d1d213
KVM: PPC: Book3S HV: Rename hpte_setup_done to mmu_ready

This renames the kvm->arch.hpte_setup_done field to mmu_ready because
we will want to use it for radix guests too -- both for setting things
up before vcpu execution, and for excluding vcpus from executing while
MMU-related things get changed, such as in future switching the MMU
from radix to HPT mode or vice-versa.

This also moves the call to kvmppc_setup_partition_table() that was
done in kvmppc_hv_setup_htab_rma() for HPT guests, and the setting
of mmu_ready, into the caller in kvmppc_vcpu_run_hv().

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/include/asm/kvm_host.h
arch/powerpc/kvm/book3s_64_mmu_hv.c
arch/powerpc/kvm/book3s_hv.c