[RFC PATCH v6 01/35] arm64/sysreg: Add new SPE fields

Alexandru Elisei
2025-11-14T16:07:37Z

Add the PMBSR_EL1.MSS2, PMBISR_EL1.MaxBuffSize, PMBLIMITR_EL1.nVM and
PMBIDR_EL1.AddrMode fields, which will be used by KVM.

Signed-off-by: Alexandru Elisei <alexandru.elisei@arm.com>
---
arch/arm64/tools/sysreg | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)

diff --git a/arch/arm64/tools/sysreg b/arch/arm64/tools/sysreg
index 1c6cdf9d54bb..1e7b69594f04 100644
--- a/arch/arm64/tools/sysreg
+++ b/arch/arm64/tools/sysreg
@@ -3070,7 +3070,9 @@ EndSysreg

Sysreg PMBLIMITR_EL1 3 0 9 10 0
Field 63:12 LIMIT
-Res0 11:6
+Res0 11:8
+Field 7 nVM
+Res0 6
Field 5 PMFZ
Res0 4:3
Enum 2:1 FM
@@ -3085,7 +3087,8 @@ Field 63:0 PTR
EndSysreg

Sysreg PMBSR_EL1 3 0 9 10 3
-Res0 63:32
+Res0 63:56
+Field 55:32 MSS2
Enum 31:26 EC
0b000000 BUF
0b100100 FAULT_S1
@@ -3112,13 +3115,20 @@ Field 7:0 Attr
EndSysreg

Sysreg PMBIDR_EL1 3 0 9 10 7
-Res0 63:12
+Res0 63:48
+Field 47:32 MaxBuffSize
+Res0 31:12
Enum 11:8 EA
0b0000 NotDescribed
0b0001 Ignored
0b0010 SError
EndEnum
-Res0 7:6
+Enum 7:6 AddrMode
+ 0b00 VM_ONLY
+ 0b01 BOTH
+ 0b10 RESERVED
+ 0b11 nVM_ONLY
+EndEnum
Field 5 F
Field 4 P
Field 3:0 ALIGN
--
2.51.2