KVM: PPC: Book3S HV: Handle 1GB pages in radix page fault handler
authorPaul Mackerras <paulus@ozlabs.org>
Sat, 24 Feb 2018 09:14:37 +0000 (20:14 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Sun, 18 Mar 2018 23:08:53 +0000 (10:08 +1100)
commit58c5c276b4c2ceb2b02ecd959ad9784b997d4332
tree134ba311edd6d84fc2fc83b827a61f7d2a64ae10
parentf7caf712d885713986baeac86b1b64bcbd9dcd91
KVM: PPC: Book3S HV: Handle 1GB pages in radix page fault handler

This adds code to the radix hypervisor page fault handler to handle the
case where the guest memory is backed by 1GB hugepages, and put them
into the partition-scoped radix tree at the PUD level.  The code is
essentially analogous to the code for 2MB pages.  This also rearranges
kvmppc_create_pte() to make it easier to follow.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/kvm/book3s_64_mmu_radix.c