[PATCH v5 4/7] KVM: arm64: Fix missing traps of guest accesses to the MPAM registers
Marc Zyngier
maz at kernel.org
Thu Oct 17 06:43:17 PDT 2024
On Tue, 15 Oct 2024 14:39:20 +0100,
Joey Gouly <joey.gouly at arm.com> wrote:
>
> diff --git a/arch/arm64/kvm/sys_regs.c b/arch/arm64/kvm/sys_regs.c
> index dad88e31f953..c21840042785 100644
> --- a/arch/arm64/kvm/sys_regs.c
> +++ b/arch/arm64/kvm/sys_regs.c
> @@ -2517,8 +2517,11 @@ static const struct sys_reg_desc sys_reg_descs[] = {
> { SYS_DESC(SYS_LOREA_EL1), trap_loregion },
> { SYS_DESC(SYS_LORN_EL1), trap_loregion },
> { SYS_DESC(SYS_LORC_EL1), trap_loregion },
> + { SYS_DESC(SYS_MPAMIDR_EL1), undef_access },
> { SYS_DESC(SYS_LORID_EL1), trap_loregion },
>
> + { SYS_DESC(SYS_MPAM1_EL1), undef_access },
> + { SYS_DESC(SYS_MPAM0_EL1), undef_access },
> { SYS_DESC(SYS_VBAR_EL1), access_rw, reset_val, VBAR_EL1, 0 },
> { SYS_DESC(SYS_DISR_EL1), NULL, reset_val, DISR_EL1, 0 },
For completeness, can you please add the EL2 MPAM registers to that
list, making them equally UNDEF?
Thanks,
M.
--
Without deviation from the norm, progress is not possible.
More information about the linux-arm-kernel
mailing list