diff options
author | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2011-07-22 07:46:52 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-09-25 12:17:58 -0400 |
commit | e097e5ffd69cbd7be61466e2d54c145468d48073 (patch) | |
tree | 975497ba43f1970ca73f114248a722807a89cc95 /arch/x86/kvm/svm.c | |
parent | d1613ad5d0018a009bd4865b0fa5930abb5ed259 (diff) |
KVM: Record instruction set in all vmexit tracepoints
The kvm_exit tracepoint recently added the isa argument to aid decoding
exit_reason. The semantics of exit_reason depend on the instruction set
(vmx or svm) and the isa argument allows traces to be analyzed on other
machines.
Add the isa argument to kvm_nested_vmexit and kvm_nested_vmexit_inject
so these tracepoints can also be self-describing.
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/svm.c')
-rw-r--r-- | arch/x86/kvm/svm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 475d1c948501..6adb7ba13a4a 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c | |||
@@ -2182,7 +2182,8 @@ static int nested_svm_vmexit(struct vcpu_svm *svm) | |||
2182 | vmcb->control.exit_info_1, | 2182 | vmcb->control.exit_info_1, |
2183 | vmcb->control.exit_info_2, | 2183 | vmcb->control.exit_info_2, |
2184 | vmcb->control.exit_int_info, | 2184 | vmcb->control.exit_int_info, |
2185 | vmcb->control.exit_int_info_err); | 2185 | vmcb->control.exit_int_info_err, |
2186 | KVM_ISA_SVM); | ||
2186 | 2187 | ||
2187 | nested_vmcb = nested_svm_map(svm, svm->nested.vmcb, &page); | 2188 | nested_vmcb = nested_svm_map(svm, svm->nested.vmcb, &page); |
2188 | if (!nested_vmcb) | 2189 | if (!nested_vmcb) |
@@ -3335,7 +3336,8 @@ static int handle_exit(struct kvm_vcpu *vcpu) | |||
3335 | svm->vmcb->control.exit_info_1, | 3336 | svm->vmcb->control.exit_info_1, |
3336 | svm->vmcb->control.exit_info_2, | 3337 | svm->vmcb->control.exit_info_2, |
3337 | svm->vmcb->control.exit_int_info, | 3338 | svm->vmcb->control.exit_int_info, |
3338 | svm->vmcb->control.exit_int_info_err); | 3339 | svm->vmcb->control.exit_int_info_err, |
3340 | KVM_ISA_SVM); | ||
3339 | 3341 | ||
3340 | vmexit = nested_svm_exit_special(svm); | 3342 | vmexit = nested_svm_exit_special(svm); |
3341 | 3343 | ||