]> git.baikalelectronics.ru Git - kernel.git/commit
arm/arm64: KVM: Add exit reaons to kvm_exit event tracing
authorWei Huang <wei@redhat.com>
Fri, 30 Jan 2015 18:09:26 +0000 (13:09 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 23 Feb 2015 21:28:48 +0000 (22:28 +0100)
commit3b7def4e0ac3d16b56c66dfc1c5de2d81650d9c8
tree45abedcea81e4f5201c32c2db6df2f0bc3133ef2
parent66d5ce1b9ea8b0e6d5fc537a2c53cdc9e9b39f60
arm/arm64: KVM: Add exit reaons to kvm_exit event tracing

This patch extends trace_kvm_exit() to include KVM exit reasons
(i.e. EC of HSR). The tracing function then dumps both exit reason
and PC of vCPU, shown as the following. Tracing tools can use this
new exit_reason field to better understand the behavior of guest VMs.

886.301252: kvm_exit:             HSR_EC: 0x0024, PC: 0xfffffe0000506b28

Signed-off-by: Wei Huang <wei@redhat.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/kvm/arm.c
arch/arm/kvm/trace.h