Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1690506

[RFC PATCH v2 12/38] arm64: Add missing TCR hw defines

From Jintack Lim <jintack.lim@linaro.org>
Newsgroups linux.kernel
Subject [RFC PATCH v2 12/38] arm64: Add missing TCR hw defines
Date 2017-07-18 19:20 +0200
Message-ID <u4Ekb-5e8-35@gated-at.bofh.it> (permalink)
References <u4E0O-4S6-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Christoffer Dall <christoffer.dall@linaro.org>

Some bits of the TCR weren't defined and since we're about to use these
in KVM, add these defines.

Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
---
 arch/arm64/include/asm/pgtable-hwdef.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm64/include/asm/pgtable-hwdef.h b/arch/arm64/include/asm/pgtable-hwdef.h
index eb0c2bd..d26cab7 100644
--- a/arch/arm64/include/asm/pgtable-hwdef.h
+++ b/arch/arm64/include/asm/pgtable-hwdef.h
@@ -272,9 +272,15 @@
 #define TCR_TG1_4K		(UL(2) << TCR_TG1_SHIFT)
 #define TCR_TG1_64K		(UL(3) << TCR_TG1_SHIFT)
 
+#define TCR_IPS_SHIFT		32
+#define TCR_IPS_MASK		(UL(7) << TCR_IPS_SHIFT)
+
 #define TCR_ASID16		(UL(1) << 36)
 #define TCR_TBI0		(UL(1) << 37)
 #define TCR_HA			(UL(1) << 39)
 #define TCR_HD			(UL(1) << 40)
 
+#define TCR_EPD1		(UL(1) << 23)
+#define TCR_EPD0		(UL(1) << 7)
+
 #endif
-- 
1.9.1

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[RFC PATCH v2 00/38] Nested Virtualization on KVM/ARM Jintack Lim <jintack.lim@linaro.org> - 2017-07-18 19:20 +0200
  [RFC PATCH v2 12/38] arm64: Add missing TCR hw defines Jintack Lim <jintack.lim@linaro.org> - 2017-07-18 19:20 +0200
  Re: [RFC PATCH v2 00/38] Nested Virtualization on KVM/ARM Jintack Lim <jintack.lim@linaro.org> - 2017-07-19 04:30 +0200
    Re: [RFC PATCH v2 00/38] Nested Virtualization on KVM/ARM Christoffer Dall <cdall@linaro.org> - 2017-07-19 10:50 +0200
      Re: [RFC PATCH v2 00/38] Nested Virtualization on KVM/ARM Jintack Lim <jintack.lim@linaro.org> - 2017-07-19 16:50 +0200
    Re: [RFC PATCH v2 00/38] Nested Virtualization on KVM/ARM Bandan Das <bsd@redhat.com> - 2017-07-28 22:20 +0200
      Re: [RFC PATCH v2 00/38] Nested Virtualization on KVM/ARM Jintack Lim <jintack.lim@linaro.org> - 2017-07-28 23:50 +0200

csiph-web