[PATCH] KVM: arm64: Deduplicate ASID retrieval code

Jonathan Cameron jonathan.cameron at huawei.com
Wed Feb 25 03:24:31 PST 2026


On Wed, 25 Feb 2026 10:47:18 +0000
Marc Zyngier <maz at 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 at kernel.org>

Does what it says on the tin.

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



More information about the linux-arm-kernel mailing list