Skip to content

Commit b02a2c0

Browse files
broonieMarc Zyngier
authored andcommitted
KVM: arm64: selftests: Cover ID_AA64ISAR3_EL1 in set_id_regs
We have a couple of writable bitfields in ID_AA64ISAR3_EL1 but the set_id_regs selftest does not cover this register at all, add coverage. Signed-off-by: Mark Brown <broonie@kernel.org> Reviewed-by: Oliver Upton <oliver.upton@linux.dev> Signed-off-by: Marc Zyngier <maz@kernel.org>
1 parent 5a070fc commit b02a2c0

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

tools/testing/selftests/kvm/arm64/set_id_regs.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,13 @@ static const struct reg_ftr_bits ftr_id_aa64isar2_el1[] = {
123123
REG_FTR_END,
124124
};
125125

126+
static const struct reg_ftr_bits ftr_id_aa64isar3_el1[] = {
127+
REG_FTR_BITS(FTR_LOWER_SAFE, ID_AA64ISAR3_EL1, FPRCVT, 0),
128+
REG_FTR_BITS(FTR_LOWER_SAFE, ID_AA64ISAR3_EL1, LSFE, 0),
129+
REG_FTR_BITS(FTR_LOWER_SAFE, ID_AA64ISAR3_EL1, FAMINMAX, 0),
130+
REG_FTR_END,
131+
};
132+
126133
static const struct reg_ftr_bits ftr_id_aa64pfr0_el1[] = {
127134
REG_FTR_BITS(FTR_LOWER_SAFE, ID_AA64PFR0_EL1, CSV3, 0),
128135
REG_FTR_BITS(FTR_LOWER_SAFE, ID_AA64PFR0_EL1, CSV2, 0),
@@ -219,6 +226,7 @@ static struct test_feature_reg test_regs[] = {
219226
TEST_REG(SYS_ID_AA64ISAR0_EL1, ftr_id_aa64isar0_el1),
220227
TEST_REG(SYS_ID_AA64ISAR1_EL1, ftr_id_aa64isar1_el1),
221228
TEST_REG(SYS_ID_AA64ISAR2_EL1, ftr_id_aa64isar2_el1),
229+
TEST_REG(SYS_ID_AA64ISAR3_EL1, ftr_id_aa64isar3_el1),
222230
TEST_REG(SYS_ID_AA64PFR0_EL1, ftr_id_aa64pfr0_el1),
223231
TEST_REG(SYS_ID_AA64PFR1_EL1, ftr_id_aa64pfr1_el1),
224232
TEST_REG(SYS_ID_AA64MMFR0_EL1, ftr_id_aa64mmfr0_el1),
@@ -237,6 +245,7 @@ static void guest_code(void)
237245
GUEST_REG_SYNC(SYS_ID_AA64ISAR0_EL1);
238246
GUEST_REG_SYNC(SYS_ID_AA64ISAR1_EL1);
239247
GUEST_REG_SYNC(SYS_ID_AA64ISAR2_EL1);
248+
GUEST_REG_SYNC(SYS_ID_AA64ISAR3_EL1);
240249
GUEST_REG_SYNC(SYS_ID_AA64PFR0_EL1);
241250
GUEST_REG_SYNC(SYS_ID_AA64MMFR0_EL1);
242251
GUEST_REG_SYNC(SYS_ID_AA64MMFR1_EL1);

0 commit comments

Comments
 (0)