diff options
| author | Fuad Tabba <fuad.tabba@linux.dev> | 2026-10-25 07:51:37 +0000 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2026-11-03 11:54:13 +0000 |
| commit | e2412d6a90a4b39e3fc464eeab8637a7f4eccc10 (patch) | |
| tree | 933b6d434955e900b218ca3c1af49c374d57fd32 /scripts/Makefile.thinlto | |
| parent | c122ea1564b41326d8c09c64005d38ec2fa6dd8f (diff) | |
KVM: arm64: Enable ST64BV0 for guests with FEAT_LS64_ACCDATA
Since commit 58ce78667a641 ("arm64: Add support for FEAT_{LS64,
LS64_V}"), a guest sees the host's ID_AA64ISAR1_EL1.LS64, but KVM only
enables the FEAT_LS64 and FEAT_LS64_V instructions in HCRX_EL2. On a
host with FEAT_LS64_ACCDATA, a guest's ST64BV0 therefore traps and hits
the WARN_ON_ONCE() in handle_other().
Set HCRX_EL2.EnAS0 when the guest has FEAT_LS64_ACCDATA, now that
ACCDATA_EL1 is context-switched.
Fixes: 58ce78667a641 ("arm64: Add support for FEAT_{LS64, LS64_V}")
Cc: stable@vger.kernel.org
Signed-off-by: Fuad Tabba <fuad.tabba@linux.dev>
Reviewed-by: Yuan Yao <yaoyuan@linux.alibaba.com>
Link: https://patch.msgid.link/20261025075138.2919734-5-fuad.tabba@linux.dev
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
