aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/svm.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2010-11-17 11:44:19 -0500
committerAvi Kivity <avi@redhat.com>2011-01-12 04:29:40 -0500
commitaa17911e3c21b63e3bf94c580ed029d6dad816b4 (patch)
treedc87c69b50b65d91cb85ef85def526365a6fdc59 /arch/x86/kvm/svm.c
parentbd2b53b20fcd0d6c4c815b54e6d464e34429d3a4 (diff)
KVM: Record instruction set in kvm_exit tracepoint
exit_reason's meaning depend on the instruction set; record it so a trace taken on one machine can be interpreted on another. Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/svm.c')
-rw-r--r--arch/x86/kvm/svm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index 7c7f03b5f39a..78a23086e16d 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -2980,7 +2980,7 @@ static int handle_exit(struct kvm_vcpu *vcpu)
2980 struct kvm_run *kvm_run = vcpu->run; 2980 struct kvm_run *kvm_run = vcpu->run;
2981 u32 exit_code = svm->vmcb->control.exit_code; 2981 u32 exit_code = svm->vmcb->control.exit_code;
2982 2982
2983 trace_kvm_exit(exit_code, vcpu); 2983 trace_kvm_exit(exit_code, vcpu, KVM_ISA_SVM);
2984 2984
2985 if (!(svm->vmcb->control.intercept_cr_write & INTERCEPT_CR0_MASK)) 2985 if (!(svm->vmcb->control.intercept_cr_write & INTERCEPT_CR0_MASK))
2986 vcpu->arch.cr0 = svm->vmcb->save.cr0; 2986 vcpu->arch.cr0 = svm->vmcb->save.cr0;