KVM: arm/arm64: Fixup the kvm_exit tracepoint
authorChristoffer Dall <christoffer.dall@arm.com>
Mon, 3 Dec 2018 20:31:24 +0000 (21:31 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Wed, 19 Dec 2018 17:47:06 +0000 (17:47 +0000)
commit71a7e47f39a2fb971ef9934e98ba089581eff641
treeb03f1246a444c076d9f10e6e983715aa2c7ec690
parent9009782a4937ad0f4a4be6945080d7fa77fa4092
KVM: arm/arm64: Fixup the kvm_exit tracepoint

The kvm_exit tracepoint strangely always reported exits as being IRQs.
This seems to be because either the __print_symbolic or the tracepoint
macros use a variable named idx.

Take this chance to update the fields in the tracepoint to reflect the
concepts in the arm64 architecture that we pass to the tracepoint and
move the exception type table to the same location and header files as
the exits code.

We also clear out the exception code to 0 for IRQ exits (which
translates to UNKNOWN in text) to make it slighyly less confusing to
parse the trace output.

Signed-off-by: Christoffer Dall <christoffer.dall@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/include/asm/kvm_arm.h
arch/arm64/include/asm/kvm_asm.h
virt/kvm/arm/trace.h