diff options
author | Avi Kivity <avi@redhat.com> | 2010-11-18 06:09:54 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-01-12 04:29:41 -0500 |
commit | 586f9607962cd982293759a4e95ff06e75be5225 (patch) | |
tree | efce3a218f0268e4a066d1621d594951d6ac569e /arch/x86/include/asm | |
parent | aa17911e3c21b63e3bf94c580ed029d6dad816b4 (diff) |
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>
Diffstat (limited to 'arch/x86/include/asm')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index f1e8d5b99f5d..3cc80c478003 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h | |||
@@ -594,6 +594,7 @@ struct kvm_x86_ops { | |||
594 | 594 | ||
595 | void (*write_tsc_offset)(struct kvm_vcpu *vcpu, u64 offset); | 595 | void (*write_tsc_offset)(struct kvm_vcpu *vcpu, u64 offset); |
596 | 596 | ||
597 | void (*get_exit_info)(struct kvm_vcpu *vcpu, u64 *info1, u64 *info2); | ||
597 | const struct trace_print_flags *exit_reasons_str; | 598 | const struct trace_print_flags *exit_reasons_str; |
598 | }; | 599 | }; |
599 | 600 | ||