aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/svm.c
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2010-02-24 12:59:14 -0500
committerAvi Kivity <avi@redhat.com>2010-04-25 06:53:10 -0400
commit2e554e8d67926024b01e97d2fe652810165354e2 (patch)
treea0ace1e673875471425235b482c2fb645c9caa88 /arch/x86/kvm/svm.c
parentecf1405df235da3efea213427ac7da7f816e9d06 (diff)
KVM: SVM: Add kvm_nested_intercepts tracepoint
This patch adds a tracepoint to get information about the most important intercept bitmasks from the nested vmcb. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/svm.c')
-rw-r--r--arch/x86/kvm/svm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index 2e4e089646a7..cac761c6d1dc 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -1845,6 +1845,11 @@ static bool nested_svm_vmrun(struct vcpu_svm *svm)
1845 nested_vmcb->control.event_inj, 1845 nested_vmcb->control.event_inj,
1846 nested_vmcb->control.nested_ctl); 1846 nested_vmcb->control.nested_ctl);
1847 1847
1848 trace_kvm_nested_intercepts(nested_vmcb->control.intercept_cr_read,
1849 nested_vmcb->control.intercept_cr_write,
1850 nested_vmcb->control.intercept_exceptions,
1851 nested_vmcb->control.intercept);
1852
1848 /* Clear internal status */ 1853 /* Clear internal status */
1849 kvm_clear_exception_queue(&svm->vcpu); 1854 kvm_clear_exception_queue(&svm->vcpu);
1850 kvm_clear_interrupt_queue(&svm->vcpu); 1855 kvm_clear_interrupt_queue(&svm->vcpu);