KVM: arm64: Add tracepoint for MMIO accesses where ISV==0
authorOliver Upton <oliver.upton@linux.dev>
Thu, 26 Oct 2023 20:53:06 +0000 (20:53 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Mon, 30 Oct 2023 20:17:22 +0000 (20:17 +0000)
commitd11974dc5f208ae1c0fe62a9bcb47c0cdcd7b081
tree04c86b9135e06c5901f49947690115ba33ef215c
parent06899aa5dd3d76e888b28d7e8d7304c0a7ec6262
KVM: arm64: Add tracepoint for MMIO accesses where ISV==0

It is a pretty well known fact that KVM does not support MMIO emulation
without valid instruction syndrome information (ESR_EL2.ISV == 0). The
current kvm_pr_unimpl() is pretty useless, as it contains zero context
to relate the event to a vCPU.

Replace it with a precise tracepoint that dumps the relevant context
so the user can make sense of what the guest is doing.

Acked-by: Zenghui Yu <yuzenghui@huawei.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20231026205306.3045075-1-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/mmio.c
arch/arm64/kvm/trace_arm.h