]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Support trace filtering for guests
authorJames Clark <james.clark@linaro.org>
Mon, 6 Jan 2025 14:24:41 +0000 (14:24 +0000)
committerMarc Zyngier <maz@kernel.org>
Sun, 12 Jan 2025 12:50:11 +0000 (12:50 +0000)
commit054b88391bbe2e470c5484cb91622238314344fb
treee20bb0095b1bbcf44f165b403d5fcd972dc03e30
parenta665e3bc88081dd65642d83fc22a1abdb6a901bc
KVM: arm64: Support trace filtering for guests

For nVHE, switch the filter value in and out if the Coresight driver
asks for it. This will support filters for guests when sinks other than
TRBE are used.

For VHE, just write the filter directly to TRFCR_EL1 where trace can be
used even with TRBE sinks.

Signed-off-by: James Clark <james.clark@linaro.org>
Link: https://lore.kernel.org/r/20250106142446.628923-7-james.clark@linaro.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/debug.c