arm/arm64: KVM: Make default HYP mappings non-excutable
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 13 Jun 2016 14:00:49 +0000 (15:00 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Wed, 29 Jun 2016 12:01:34 +0000 (14:01 +0200)
commit0996353f8ec6c6dba4a1f916bf6d9ace6f7d2b49
tree9fd6fce8a984beb595b3289100bfdd70d54525d7
parent5900270550cbb8a272bfc248b69531cd44dcf0d5
arm/arm64: KVM: Make default HYP mappings non-excutable

Structures that can be generally written to don't have any requirement
to be executable (quite the opposite). This includes the kvm and vcpu
structures, as well as the stacks.

Let's change the default to incorporate the XN flag.

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