]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: KVM: introduce kvm_p*d_addr_end
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 18 Feb 2014 14:29:03 +0000 (14:29 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 3 Mar 2014 01:15:22 +0000 (01:15 +0000)
commitcdd8250861395b9b33676697e75f5fd15e3ae8a2
tree55b4d57d442e32271bab31615b28e089e616e12e
parent15d8fa60c086f91ce23468e4b3e74c7242033b9b
ARM: KVM: introduce kvm_p*d_addr_end

The use of p*d_addr_end with stage-2 translation is slightly dodgy,
as the IPA is 40bits, while all the p*d_addr_end helpers are
taking an unsigned long (arm64 is fine with that as unligned long
is 64bit).

The fix is to introduce 64bit clean versions of the same helpers,
and use them in the stage-2 page table code.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/include/asm/kvm_mmu.h
arch/arm/kvm/mmu.c
arch/arm64/include/asm/kvm_mmu.h