]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: Clarify the check for reset callback in check_sysreg_table()
authorMarc Zyngier <maz@kernel.org>
Fri, 18 Jul 2025 11:11:52 +0000 (12:11 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Sat, 26 Jul 2025 15:36:57 +0000 (08:36 -0700)
commitf5e6ebf285e1c84687c33b22fb1c4b992b640832
tree128b792381a19c3d7b7f44954835a1ed69f22cf0
parent0f3046c8f68c00a2e4db31e21a7f14aa20913524
KVM: arm64: Clarify the check for reset callback in check_sysreg_table()

check_sysreg_table() has a wonky 'is_32" parameter, which is really
an indication that we should enforce the presence of a reset helper.

Clean this up by naming the variable accordingly and inverting the
condition. Contrary to popular belief, system instructions don't
have a reset value (duh!), and therefore do not need to be checked
for reset (they escaped the check through luck...).

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Sebastian Ott <sebott@redhat.com>
Link: https://lore.kernel.org/r/20250718111154.104029-3-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/sys_regs.c