mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 17:42:03 +02:00
KVM: arm64: Add NV3 control bits to HCRX_EL2 sanitisation
Expose the FEAT_NV3 control bits to the sanitisation code so that KVM stops moaning about the unattributed bits. Signed-off-by: Marc Zyngier <maz@kernel.org> Reviewed-by: Joey Gouly <joey.gouly@arm.com> Link: https://patch.msgid.link/20260730071022.296811-18-maz@kernel.org Signed-off-by: Oliver Upton <oupton@kernel.org>
This commit is contained in:
parent
dbb45adfcd
commit
6ec15c963e
|
|
@ -225,6 +225,7 @@ struct reg_feat_map_desc {
|
|||
#define FEAT_HCX ID_AA64MMFR1_EL1, HCX, IMP
|
||||
#define FEAT_S2PIE ID_AA64MMFR3_EL1, S2PIE, IMP
|
||||
#define FEAT_GCIE ID_AA64PFR2_EL1, GCIE, IMP
|
||||
#define FEAT_NV3 ID_AA64MMFR4_EL1, NV_frac, NV3
|
||||
|
||||
static bool not_feat_aa64el3(struct kvm *kvm)
|
||||
{
|
||||
|
|
@ -904,6 +905,11 @@ static const DECLARE_FEAT_MAP_FGT(hdfgwtr2_desc, hdfgwtr2_masks,
|
|||
|
||||
|
||||
static const struct reg_bits_to_feat_map hcrx_feat_map[] = {
|
||||
NEEDS_FEAT(HCRX_EL2_NVTGE |
|
||||
HCRX_EL2_NVnTTLB |
|
||||
HCRX_EL2_NVnTTLBIS |
|
||||
HCRX_EL2_NVnTTLBOS,
|
||||
FEAT_NV3),
|
||||
NEEDS_FEAT(HCRX_EL2_SRMASKEn, FEAT_SRMASK),
|
||||
NEEDS_FEAT(HCRX_EL2_PACMEn, feat_pauth_lr),
|
||||
NEEDS_FEAT(HCRX_EL2_EnFPM, FEAT_FPMR),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user