]> git.baikalelectronics.ru Git - kernel.git/commit
kvm-arm: arm32: Introduce stage2 page table helpers
authorSuzuki K Poulose <suzuki.poulose@arm.com>
Tue, 22 Mar 2016 14:08:17 +0000 (14:08 +0000)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 21 Apr 2016 12:57:26 +0000 (14:57 +0200)
commite6e325688723ea99b935dbc33d51fca031b24e7c
tree1cf77fde3dc2597e0e9eb8e5f7321bc402a31774
parentc68d8f18664bc635df3c2b8eda00c9825edd88e7
kvm-arm: arm32: Introduce stage2 page table helpers

Define the page table helpers for walking the stage2 pagetable
for arm. Since both hyp and stage2 have the same number of levels,
as that of the host we reuse the host helpers.

The exceptions are the p.d_addr_end routines which have to deal
with IPA > 32bit, hence we use the open coded version of their host helpers
which supports 64bit.

Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/include/asm/kvm_mmu.h
arch/arm/include/asm/stage2_pgtable.h [new file with mode: 0644]