KVM: Add instruction-set-specific exit qualifications to kvm_exit trace
authorAvi Kivity <avi@redhat.com>
Thu, 18 Nov 2010 11:09:54 +0000 (13:09 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:29:41 +0000 (11:29 +0200)
commit586f9607962cd982293759a4e95ff06e75be5225
treeefce3a218f0268e4a066d1621d594951d6ac569e
parentaa17911e3c21b63e3bf94c580ed029d6dad816b4
KVM: Add instruction-set-specific exit qualifications to kvm_exit trace

The exit reason alone is insufficient to understand exactly why an exit
occured; add ISA-specific trace parameters for additional information.

Because fetching these parameters is expensive on vmx, and because these
parameters are fetched even if tracing is disabled, we fetch the
parameters via a callback instead of as traditional trace arguments.

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/svm.c
arch/x86/kvm/trace.h
arch/x86/kvm/vmx.c