[PATCH 17/28] KVM: arm64: Add NV3 control bits to HCRX_EL2 sanitisation
Joey Gouly
joey.gouly at arm.com
Fri Jul 10 08:17:28 PDT 2026
On Thu, Jul 02, 2026 at 05:02:37PM +0100, Marc Zyngier wrote:
> 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 at kernel.org>
Reviewed-by: Joey Gouly <joey.gouly at arm.com>
> ---
> arch/arm64/kvm/config.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/arch/arm64/kvm/config.c b/arch/arm64/kvm/config.c
> index 8d5e4aacf49c4..b9a9d65b973e6 100644
> --- a/arch/arm64/kvm/config.c
> +++ b/arch/arm64/kvm/config.c
> @@ -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),
> --
> 2.47.3
>
More information about the linux-arm-kernel
mailing list