[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <z7v77vr34beigy6hy75mfsnssihc2gxzc4z4xioork343wki2n@gjv6kdxo6zxc>
Date: Mon, 24 Jun 2024 17:12:19 -0500
From: Maxwell Bland <mbland@...orola.com>
To: linux-mm@...ck.org
Cc: Catalin Marinas <catalin.marinas@....com>, Will Deacon <will@...nel.org>,
Jonathan Corbet <corbet@....net>,
Andrew Morton <akpm@...ux-foundation.org>,
Ard Biesheuvel <ardb@...nel.org>, Mark Rutland <mark.rutland@....com>,
Christophe Leroy <christophe.leroy@...roup.eu>,
Maxwell Bland <mbland@...orola.com>,
Alexandre Ghiti <alexghiti@...osinc.com>,
linux-arm-kernel@...ts.infradead.org, linux-doc@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH v5 2/6] arm64: add APTable encoding to pagetable defs
Add in the APTable permission bit encoding to describe table-level
hierarchical access control
Signed-off-by: Maxwell Bland <mbland@...orola.com>
---
arch/arm64/include/asm/pgtable-hwdef.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm64/include/asm/pgtable-hwdef.h b/arch/arm64/include/asm/pgtable-hwdef.h
index 9943ff0af4c9..8c229fc96c0a 100644
--- a/arch/arm64/include/asm/pgtable-hwdef.h
+++ b/arch/arm64/include/asm/pgtable-hwdef.h
@@ -146,6 +146,11 @@
#define PMD_SECT_UXN (_AT(pmdval_t, 1) << 54)
#define PMD_TABLE_PXN (_AT(pmdval_t, 1) << 59)
#define PMD_TABLE_UXN (_AT(pmdval_t, 1) << 60)
+/*
+ * APTable[1:0] encoding for hierarchical data access control
+ */
+#define PMD_TABLE_KERN (_AT(pmdval_t, 1) << 61)
+#define PMD_TABLE_PRDONLY (_AT(pmdval_t, 1) << 62)
/*
* AttrIndx[2:0] encoding (mapping attributes defined in the MAIR* registers).
--
2.43.0
Powered by blists - more mailing lists