ARM: KVM: simplify HYP mapping population
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 12 Apr 2013 18:12:01 +0000 (19:12 +0100)
committerChristoffer Dall <cdall@cs.columbia.edu>
Mon, 29 Apr 2013 05:23:07 +0000 (22:23 -0700)
commit6060df84cbe0d36b8e1415b68e3f67b77f27052a
tree4be162a9c983c9223fac27dc4824dd3666443245
parent372b7c1bc80510225ca91cba75bc0850a6e16c39
ARM: KVM: simplify HYP mapping population

The way we populate HYP mappings is a bit convoluted, to say the least.
Passing a pointer around to keep track of the current PFN is quite
odd, and we end-up having two different PTE accessors for no good
reason.

Simplify the whole thing by unifying the two PTE accessors, passing
a pgprot_t around, and moving the various validity checks to the
upper layers.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <cdall@cs.columbia.edu>
arch/arm/kvm/mmu.c