diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2012-12-07 18:35:41 +0000 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2013-06-07 14:03:31 +0100 |
commit | 363116073a26dbc2903d8417047597eebcc05273 (patch) | |
tree | df8be503ab9aa08786206b9a5b930ef7a54bf7a4 /arch/arm64/include/asm/memory.h | |
parent | d683b96b072dc4680fc74964eca77e6a23d1fa6e (diff) | |
download | blackbird-op-linux-363116073a26dbc2903d8417047597eebcc05273.tar.gz blackbird-op-linux-363116073a26dbc2903d8417047597eebcc05273.zip |
arm64: KVM: define HYP and Stage-2 translation page flags
Add HYP and S2 page flags, for both normal and device memory.
Reviewed-by: Christopher Covington <cov@codeaurora.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/memory.h')
-rw-r--r-- | arch/arm64/include/asm/memory.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/memory.h b/arch/arm64/include/asm/memory.h index 381f556b664e..20925bcf4e2a 100644 --- a/arch/arm64/include/asm/memory.h +++ b/arch/arm64/include/asm/memory.h @@ -90,6 +90,12 @@ #define MT_NORMAL_NC 3 #define MT_NORMAL 4 +/* + * Memory types for Stage-2 translation + */ +#define MT_S2_NORMAL 0xf +#define MT_S2_DEVICE_nGnRE 0x1 + #ifndef __ASSEMBLY__ extern phys_addr_t memstart_addr; |