]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Fix comment in fpsimd_lazy_switch_to_host()
authorMark Rutland <mark.rutland@arm.com>
Tue, 6 Jan 2026 17:37:05 +0000 (17:37 +0000)
committerMarc Zyngier <maz@kernel.org>
Wed, 7 Jan 2026 11:56:30 +0000 (11:56 +0000)
commit334a1a1e1a5f8b4b172683e7507cfec566313a7c
tree18f640f8e375edcaf8e0adf196c03263e6fac769
parent9ace4753a5202b02191d54e9fdf7f9e3d02b85eb
KVM: arm64: Fix comment in fpsimd_lazy_switch_to_host()

The comment in fpsimd_lazy_switch_to_host() erroneously says guest traps
for FPSIMD/SVE/SME are disabled by fpsimd_lazy_switch_to_guest(). In
reality, the traps are disabled by __activate_cptr_traps(), and
fpsimd_lazy_switch_to_guest() only manipulates the SVE vector length.

This was mistake; I accidentally copy+pasted the wrong function name in
commit:

  59419f10045b ("KVM: arm64: Eagerly switch ZCR_EL{1,2}")

Fix the comment.

Fixes: 59419f10045b ("KVM: arm64: Eagerly switch ZCR_EL{1,2}")
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Fuad Tabba <tabba@google.com>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Mark Brown <broonie@kernel.org>
Cc: Oliver Upton <oliver.upton@linux.dev>
Cc: Will Deacon <will@kernel.org>
Tested-by: Fuad Tabba <tabba@google.com>
Reviewed-by: Fuad Tabba <tabba@google.com>
Link: https://patch.msgid.link/20260106173707.3292074-2-mark.rutland@arm.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/hyp/include/hyp/switch.h