diff options
author | Paul Mackerras <paulus@ozlabs.org> | 2017-01-30 21:21:44 +1100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-01-31 19:11:48 +1100 |
commit | 9e04ba69beec372ddf857c700ff922e95f50b0d0 (patch) | |
tree | a2e50cc6724c65cc1113382c0ac9dee6729c2113 /arch/powerpc/include/asm/kvm_host.h | |
parent | ef8c640cb9cc865a461827b698fcc55b0ecaa600 (diff) | |
download | op-kernel-dev-9e04ba69beec372ddf857c700ff922e95f50b0d0.zip op-kernel-dev-9e04ba69beec372ddf857c700ff922e95f50b0d0.tar.gz |
KVM: PPC: Book3S HV: Add basic infrastructure for radix guests
This adds a field in struct kvm_arch and an inline helper to
indicate whether a guest is a radix guest or not, plus a new file
to contain the radix MMU code, which currently contains just a
translate function which knows how to traverse the guest page
tables to translate an address.
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/kvm_host.h')
-rw-r--r-- | arch/powerpc/include/asm/kvm_host.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/kvm_host.h b/arch/powerpc/include/asm/kvm_host.h index 944532d..fb73518 100644 --- a/arch/powerpc/include/asm/kvm_host.h +++ b/arch/powerpc/include/asm/kvm_host.h @@ -264,6 +264,8 @@ struct kvm_arch { atomic_t hpte_mod_interest; cpumask_t need_tlb_flush; int hpt_cma_alloc; + u8 radix; + pgd_t *pgtable; u64 process_table; struct dentry *debugfs_dir; struct dentry *htab_dentry; |