Re: [PATCH v3 13/47] KVM: arm64: Use kernel-space partid configuration for hypercalls

From: Jonathan Cameron

Date: Tue Jan 13 2026 - 09:21:09 EST


On Mon, 12 Jan 2026 16:58:40 +0000
Ben Horgan <ben.horgan@xxxxxxx> wrote:

> On nVHE systems whether or not MPAM is enabled, EL2 continues to use
> partid-0 for hypercalls, even when the host may have configured its kernel
> threads to use a different partid. 0 may have been assigned to another
> task. Copy the EL1 MPAM register to EL2. This ensures hypercalls use the
> same partid as the kernel thread does on the host.
>
> Signed-off-by: Ben Horgan <ben.horgan@xxxxxxx>
Reviewed-by: Jonathan Cameron <jonathan.cameron@xxxxxxxxxx>
> ---
> Changes since v2:
> Use mask
> Use read_sysreg_el1 to cope with hvhe

nvhe