summaryrefslogtreecommitdiff
path: root/tools/testing
diff options
context:
space:
mode:
authorVincent Donnefort <vdonnefort@google.com>2026-05-14 17:26:24 +0100
committerMarc Zyngier <maz@kernel.org>2026-05-20 08:08:37 +0100
commit1702da76e017ae0fbe1a92b07bc332972c293e89 (patch)
treea13a36048f57d8cb87f0bc2c2f177ce41055112c /tools/testing
parentf19c354dbd457759dfcf1195ab4bdba2bb568323 (diff)
KVM: arm64: Fix nVHE/pKVM hyp tracing error on invalid desc
pKVM must validate the host-provided tracing buffer descriptor. However, if an error is found, the hypervisor would just return 0 to the host. Fix the return value on validation failure. While at it, rename the function to hyp_trace_desc_is_valid() and skip validation for the nVHE mode as we trust host-provided data in that case. Signed-off-by: Vincent Donnefort <vdonnefort@google.com> Fixes: 680a04c333fa ("KVM: arm64: Add tracing capability for the nVHE/pKVM hyp") Link: https://lore.kernel.org/r/20260514162624.3477857-1-vdonnefort@google.com Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'tools/testing')
0 files changed, 0 insertions, 0 deletions