arm/arm64: KVM: Add a protection parameter to create_hyp_mappings
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 13 Jun 2016 14:00:45 +0000 (15:00 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Wed, 29 Jun 2016 11:59:14 +0000 (13:59 +0200)
commitc8dddecdeb2ae95a6535855ce8a26b7197471b16
tree4e247c7ae10eba4d4db980dae7113bbf43dc33d5
parent8ff7b956471faadb0f874a49e8603d43cb1e55d5
arm/arm64: KVM: Add a protection parameter to create_hyp_mappings

Currently, create_hyp_mappings applies a "one size fits all" page
protection (PAGE_HYP). As we're heading towards separate protections
for different sections, let's make this protection a parameter, and
let the callers pass their prefered protection (PAGE_HYP for everyone
for the time being).

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