Re: [PATCH v3] KVM: arm64: Trap guest MPAM accesses whenever MPAM is implemented

From: Fuad Tabba

Date: Thu Sep 24 2026 - 06:44:49 EST


Hi Will,

On Thu, 24 Sept 2026 at 11:21, Will Deacon <will@xxxxxxxxxx> wrote:
[...]
> > I'll probe MPAMIDR_EL1.HAS_HCR once in cpu_hyp_init_context(), next to
> > HAS_MPAM, and test the flag in both trap functions instead.
> >
> > I'll hold off on v4 until Will has had a chance to comment as well.
>
> I'm planning to generalise the logic you added recently in
> gmid_el1_accessible() so that __cpuinfo_store_cpu() stores the values
> in 'struct cpuinfo_arm64' with the overrides already applied. I don't
> think that directly impacts this patch, but it should make the general
> shape of things easier to reason about. I also need it for the parallel
> hotplug work.

In that case, I'll respin this as Marc suggested.

> If you fancy helping with that, please let me know.

Sure! Just let me know how I could help.

Cheers,
/fuad

> Will