]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: Fix hyp_trace clock disabling
authorVincent Donnefort <vdonnefort@google.com>
Wed, 15 Jul 2026 10:51:00 +0000 (11:51 +0100)
committerMarc Zyngier <maz@kernel.org>
Thu, 23 Jul 2026 08:56:57 +0000 (09:56 +0100)
commitbbece712cfc7f286b2908ac120dcf700279d87eb
tree690d840be48c7022eda5ecc6f60779af84042aed
parent21f12496fdd357ad4e1fcdd07dc80ab7378f7d24
KVM: arm64: Fix hyp_trace clock disabling

Fix the disable path in hyp_trace_clock_enable(), which fell through to
re-initialize and reschedule the clock after cancelling the work. Return
early instead.

While at it, cleanup hyp_trace_clock::lock which is unused and
hyp_trace_clock::running which is redundant: the trace_remote framework
already serializes calls to the callback enable_tracing.

Fixes: b22888917fa4 ("KVM: arm64: Sync boot clock with the nVHE/pKVM hyp")
Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
Reviewed-by: Fuad Tabba <fuad.tabba@linux.dev> (✓ DKIM/linux.dev)
Link: https://patch.msgid.link/20260715105100.3178255-1-vdonnefort@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/hyp_trace.c