]> git.baikalelectronics.ru Git - kernel.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)
commite736aa5dd5ca5e1d03688fcca304bb76da384b82
tree92739fb94210ffda53d22d4d607be6bf53405b9a
parent22ac45c65c227fe2cb52a5f9ec0bd2370e38be2e
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