]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita00c196319d237fa22c6c611cdfe4d055a11736e
treeb03f1246a444c076d9f10e6e983715aa2c7ec690
parent6d209e97e3f88e67538a1dc315a8f50376d9be8f
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