]> asedeno.scripts.mit.edu Git - linux.git/commit
kvm: arm64: Prepare for dynamic stage2 page table layout
authorSuzuki K Poulose <suzuki.poulose@arm.com>
Wed, 26 Sep 2018 16:32:45 +0000 (17:32 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 1 Oct 2018 12:50:30 +0000 (13:50 +0100)
commit865b30cdd9b286820aef44393bafc4c0ccee53d0
tree92739fb94210ffda53d22d4d607be6bf53405b9a
parente55cac5bf2a9cc86b57a9533d6b9e5005bc19b5c
kvm: arm64: Prepare for dynamic stage2 page table layout

Our stage2 page table helpers are statically defined based
on the fixed IPA of 40bits and the host page size. As we are
about to add support for configurable IPA size for VMs, we
need to make the page table checks for each VM. This patch
prepares the stage2 helpers to make the transition to a VM
dependent table layout easier. Instead of statically defining
the table helpers based on the page table levels, we now
check the page table levels in the helpers to do the right
thing. In effect, it simply converts the macros to static
inline functions.

Cc: Eric Auger <eric.auger@redhat.com>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Christoffer Dall <cdall@kernel.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/include/asm/kvm_mmu.h
arch/arm64/include/asm/stage2_pgtable-nopmd.h [deleted file]
arch/arm64/include/asm/stage2_pgtable-nopud.h [deleted file]
arch/arm64/include/asm/stage2_pgtable.h