]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: Handle FEAT_IDST for sysregs without specific handlers
authorMarc Zyngier <maz@kernel.org>
Thu, 8 Jan 2026 17:32:28 +0000 (17:32 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 15 Jan 2026 11:58:57 +0000 (11:58 +0000)
commitd78a14decd494caf72ea0144624621e7e43ae451
tree19919e5518ff247d8a5474bdc0542dcbf945454d
parent19f75678238734ef383f9e10d8e1020873e97170
KVM: arm64: Handle FEAT_IDST for sysregs without specific handlers

Add a bit of infrastrtcture to triage_sysreg_trap() to handle the
case of registers falling into the Feature ID space that do not
have a local handler.

For these, we can directly apply the FEAT_IDST semantics and inject
an EC=0x18 exception. Otherwise, an UNDEF will do.

Reviewed-by: Joey Gouly <joey.gouly@arm.com>
Reviewed-by: Yuan Yao <yaoyuan@linux.alibaba.com>
Link: https://patch.msgid.link/20260108173233.2911955-5-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/emulate-nested.c
arch/arm64/kvm/sys_regs.h