Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

KVM: arm64: Fix writeable mask for ID_AA64PFR2_EL1

The writeable mask for fields in ID_AA64PFR2_EL1 has been accidentally
inverted, which isn't a very good idea.

Restore the expected polarity.

Reviewed-by: Sascha Bischoff <sascha.bischoff@arm.com>
Fixes: a258a383b9177 ("KVM: arm64: gic-v5: Sanitize ID_AA64PFR2_EL1.GCIE")
Link: https://sashiko.dev/#/patchset/20260319154937.3619520-1-sascha.bischoff%40arm.com
Link: https://patch.msgid.link/20260401103611.357092-5-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>

+4 -4
+4 -4
arch/arm64/kvm/sys_regs.c
··· 3304 3304 ID_AA64PFR1_EL1_MPAM_frac | 3305 3305 ID_AA64PFR1_EL1_MTE)), 3306 3306 ID_FILTERED(ID_AA64PFR2_EL1, id_aa64pfr2_el1, 3307 - ~(ID_AA64PFR2_EL1_FPMR | 3308 - ID_AA64PFR2_EL1_MTEFAR | 3309 - ID_AA64PFR2_EL1_MTESTOREONLY | 3310 - ID_AA64PFR2_EL1_GCIE)), 3307 + (ID_AA64PFR2_EL1_FPMR | 3308 + ID_AA64PFR2_EL1_MTEFAR | 3309 + ID_AA64PFR2_EL1_MTESTOREONLY | 3310 + ID_AA64PFR2_EL1_GCIE)), 3311 3311 ID_UNALLOCATED(4,3), 3312 3312 ID_WRITABLE(ID_AA64ZFR0_EL1, ~ID_AA64ZFR0_EL1_RES0), 3313 3313 ID_HIDDEN(ID_AA64SMFR0_EL1),