]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: arm64: Simplify warning in kvm_arch_vcpu_load_fp()
authorMark Rutland <mark.rutland@arm.com>
Thu, 13 Feb 2025 09:15:31 +0000 (09:15 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 13 Feb 2025 17:55:13 +0000 (17:55 +0000)
commit332b7e6d62b7a3a988017f5184e547aa20e3a19a
tree0ab6038475abb599eebce85851ed45c1fa793d7e
parent59419f10045bc955d2229819c7cf7a8b0b9c5b59
KVM: arm64: Simplify warning in kvm_arch_vcpu_load_fp()

At the end of kvm_arch_vcpu_load_fp() we check that no bits are set in
SVCR. We only check this for protected mode despite this mattering
equally for non-protected mode, and the comment above this is confusing.

Remove the comment and simplify the check, moving from WARN_ON() to
WARN_ON_ONCE() to avoid spamming the log.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/fpsimd.c