[PATCH v2 3/5] KVM: arm64: Add context-switch of ACCDATA_EL1
Catalin Marinas
catalin.marinas at arm.com
Thu Oct 29 14:15:18 PDT 2026
On Sun, Oct 25, 2026 at 07:51:36AM +0000, Fuad Tabba wrote:
> From: Marc Zyngier <maz at kernel.org>
>
> Add ACCDATA_EL1 save/restore as part of the EL0 context. This is
> conditioned on the guest's view of ID_AA64ISAR1_EL1.LS64 reporting
> that this register is supported.
>
> Signed-off-by: Marc Zyngier <maz at kernel.org>
> Fixes: 58ce78667a641 ("arm64: Add support for FEAT_{LS64, LS64_V}")
> Link: https://lore.kernel.org/r/20240815125959.2097734-5-maz@kernel.org
> Cc: stable at vger.kernel.org
> [Fuad: rebased; switch ACCDATA_EL1 for guests only, as the host never
> uses it; gate it on a new ARM64_HAS_LS64_ACCDATA capability, since
> in pKVM the host controls a non-protected guest's ID registers, and
> an EL2 access to ACCDATA_EL1 on a CPU without the feature is UNDEFINED]
> Signed-off-by: Fuad Tabba <fuad.tabba at linux.dev>
Acked-by: Catalin Marinas <catalin.marinas at arm.com>
More information about the linux-arm-kernel
mailing list