aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2008-04-30 11:56:04 -0400
committerAvi Kivity <avi@qumranet.com>2008-07-20 05:40:48 -0400
commitd2ebb4103ff349af6dac14955bf93e57487a6694 (patch)
tree5c205c2e36c4c4334855455336427d676e9535c0 /arch/x86/kvm
parentaf9ca2d703f4cefbf6441bfe127c4191092ad394 (diff)
KVM: SVM: add tracing support for TDP page faults
To distinguish between real page faults and nested page faults they should be traced as different events. This is implemented by this patch. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r--arch/x86/kvm/svm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index 8953292acfd9..218949cce1a0 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -1011,6 +1011,10 @@ static int pf_interception(struct vcpu_svm *svm, struct kvm_run *kvm_run)
1011 KVMTRACE_3D(PAGE_FAULT, &svm->vcpu, error_code, 1011 KVMTRACE_3D(PAGE_FAULT, &svm->vcpu, error_code,
1012 (u32)fault_address, (u32)(fault_address >> 32), 1012 (u32)fault_address, (u32)(fault_address >> 32),
1013 handler); 1013 handler);
1014 else
1015 KVMTRACE_3D(TDP_FAULT, &svm->vcpu, error_code,
1016 (u32)fault_address, (u32)(fault_address >> 32),
1017 handler);
1014 1018
1015 return kvm_mmu_page_fault(&svm->vcpu, fault_address, error_code); 1019 return kvm_mmu_page_fault(&svm->vcpu, fault_address, error_code);
1016} 1020}