Re: [PATCH] KVM: arm64: Deduplicate ASID retrieval code

Jonathan Cameron
2026-02-25T11:24:41Z

On Wed, 25 Feb 2026 10:47:18 +0000
Marc Zyngier <maz@kernel.org> wrote:

> We currently have three versions of the ASID retrieval code, one
> in the S1 walker, and two in the VNCR handling (although the last
> two are limited to the EL2&0 transltion regime).
>
> Make this code common, and take this opportunity to also simplify
> the code a bit while switching over to the TTBRx_EL1_ASID macro.
>
> Signed-off-by: Marc Zyngier <maz@kernel.org>

Does what it says on the tin.

Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>