KVM: arm64: selftests: Add FEAT_RAS EL2 registers to get-reg-list
PATCH 1/1 KVM: arm64: selftests: Add FEAT_RAS EL2 registers to get-reg-list
VDISR_EL2 and VSESR_EL2 are now visible to userspace for nested VMs. Add them to get-reg-list.
Signed-off-by Oliver Upton <[email protected]>
--- tools/testing/selftests/kvm/arm64/get-reg-list.c | 4 ++++ 1 file changed, 4 insertions(+)
tools/testing/selftests/kvm/arm64/get-reg-list.c +4 -0
@@ -63,6 +63,8 @@ static struct feature_id_reg feat_id_regs[] = {REG_FEAT (HDFGWTR2_EL2 ,ID_AA64MMFR0_EL1 ,FGT ,FGT2 ),REG_FEAT (ZCR_EL2 ,ID_AA64PFR0_EL1 ,SVE ,IMP ),REG_FEAT (SCTLR2_EL1 ,ID_AA64MMFR3_EL1 ,SCTLRX ,IMP ), +REG_FEAT (VDISR_EL2 ,ID_AA64PFR0_EL1 ,RAS ,IMP ), + REG_FEAT(VSESR_EL2, ID_AA64PFR0_EL1, RAS, IMP), };bool filter_reg (__u64 reg)
@@ -749,6 +751,8 @@ static __u64 el2_regs[] = {SYS_REG (CNTHV_CTL_EL2 ),SYS_REG (CNTHV_CVAL_EL2 ),SYS_REG (SP_EL2 ), +SYS_REG (VDISR_EL2 ), + SYS_REG(VSESR_EL2), };#define BASE_SUBLIST \
Signature · 1 line
2.39.5
Quoted 5 lines · Oliver Upton
VDISR_EL2andVSESR_EL2are now visible to userspace for nested VMs. Add them to get-reg-list.Signed-off-by Oliver Upton <[email protected]>
Acked-by Marc Zyngier <[email protected]>
M.
Signature · 1 line
Without deviation from the norm, progress is not possible.
Oliver Upton
AppliedQuoted 4 lines · Oliver Upton
VDISR_EL2andVSESR_EL2are now visible to userspace for nested VMs. Add them to get-reg-list.
Applied to next, thanks!
[1/1] KVM: arm64: selftests: Add FEAT_RAS EL2 registers to get-reg-list
https://git.kernel.org/kvmarm/kvmarm/c/18ec25dd0e97
--
Best,
Oliver