[PATCH RFC v3 26/27] KVM: arm64: selftests: Add SME system registers to get-reg-list
Mark Brown
broonie at kernel.org
Fri Dec 20 08:46:51 PST 2024
SME adds a number of new system registers, update get-reg-list to check for
them based on the visibility of SME.
Signed-off-by: Mark Brown <broonie at kernel.org>
---
tools/testing/selftests/kvm/aarch64/get-reg-list.c | 32 +++++++++++++++++++++-
1 file changed, 31 insertions(+), 1 deletion(-)
diff --git a/tools/testing/selftests/kvm/aarch64/get-reg-list.c b/tools/testing/selftests/kvm/aarch64/get-reg-list.c
index d43fb3f49050ba3de950d19d56b45beefec9dbeb..3e9c19c4a0d658f349a7d476a90b877882815709 100644
--- a/tools/testing/selftests/kvm/aarch64/get-reg-list.c
+++ b/tools/testing/selftests/kvm/aarch64/get-reg-list.c
@@ -23,6 +23,18 @@ struct feature_id_reg {
};
static struct feature_id_reg feat_id_regs[] = {
+ {
+ ARM64_SYS_REG(3, 0, 1, 2, 4), /* SMPRI_EL1 */
+ ARM64_SYS_REG(3, 0, 0, 4, 1), /* ID_AA64PFR1_EL1 */
+ 24,
+ 1
+ },
+ {
+ ARM64_SYS_REG(3, 0, 1, 2, 6), /* SMCR_EL1 */
+ ARM64_SYS_REG(3, 0, 0, 4, 1), /* ID_AA64PFR1_EL1 */
+ 24,
+ 1
+ },
{
ARM64_SYS_REG(3, 0, 2, 0, 3), /* TCR2_EL1 */
ARM64_SYS_REG(3, 0, 0, 7, 3), /* ID_AA64MMFR3_EL1 */
@@ -52,7 +64,25 @@ static struct feature_id_reg feat_id_regs[] = {
ARM64_SYS_REG(3, 0, 0, 7, 3), /* ID_AA64MMFR3_EL1 */
16,
1
- }
+ },
+ {
+ ARM64_SYS_REG(3, 1, 0, 0, 6), /* SMIDR_EL1 */
+ ARM64_SYS_REG(3, 0, 0, 4, 1), /* ID_AA64PFR1_EL1 */
+ 24,
+ 1
+ },
+ {
+ ARM64_SYS_REG(3, 3, 4, 2, 2), /* SVCR */
+ ARM64_SYS_REG(3, 0, 0, 4, 1), /* ID_AA64PFR1_EL1 */
+ 24,
+ 1
+ },
+ {
+ ARM64_SYS_REG(3, 3, 13, 0, 5), /* TPIDR2_EL0 */
+ ARM64_SYS_REG(3, 0, 0, 4, 1), /* ID_AA64PFR1_EL1 */
+ 24,
+ 1
+ },
};
bool filter_reg(__u64 reg)
--
2.39.5
More information about the linux-arm-kernel
mailing list