kvm_stat: Add kvm_exit reasons for aarch64
commitedecf5eced082cb45e213cb4e791b2fcf9f867c1
authorWei Huang <wei@redhat.com>
Fri, 30 Jan 2015 18:17:08 +0000 (30 13:17 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 11 Feb 2015 20:47:51 +0000 (11 21:47 +0100)
tree4b29c2caf500dfc9400384280e483b5a5561ce00
parentbc5baffa3554e4c0d20c1dbe879aec931866bd69
kvm_stat: Add kvm_exit reasons for aarch64

This patch defines the list of kvm_exit reasons for aarch64. This list is
based on the Exception Class (EC) field of HSR register. With this patch
users can trace the execution of guest VMs better. A sample output from
command "kvm_stat -1 -t" is shown as the following:
<...>
kvm_exit(WATCHPT_HYP)          0         0
kvm_exit(WFI)               9422      9361

NOTE: This patch requires TRACE_EVENT(kvm_exit) to include exit_reason
field in TP_ARGS. A patch to upstream kernel has been submitted.

Signed-off-by: Wei Huang <wei@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
scripts/kvm/kvm_stat