summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/mmu.c
diff options
context:
space:
mode:
authorXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>2012-06-20 15:59:41 +0800
committerAvi Kivity <avi@redhat.com>2012-07-11 16:51:21 +0300
commita72faf2504dfc12ff9bfb486a42f2761296666ff (patch)
treebc8d0c376d90f06d146cb8831ef44cc0b43f66b5 /arch/x86/kvm/mmu.c
parentc7ba5b48cc8ddc015a9e0463813ca1e60bc42c59 (diff)
downloadlinux-a72faf2504dfc12ff9bfb486a42f2761296666ff.tar.bz2
KVM: MMU: trace fast page fault
To see what happen on this path and help us to optimize it Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/mmu.c')
-rw-r--r--arch/x86/kvm/mmu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index 8637bffbdb4a..28c8fbcc6763 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -2776,6 +2776,8 @@ static bool fast_page_fault(struct kvm_vcpu *vcpu, gva_t gva, int level,
*/
ret = fast_pf_fix_direct_spte(vcpu, iterator.sptep, spte);
exit:
+ trace_fast_page_fault(vcpu, gva, error_code, iterator.sptep,
+ spte, ret);
walk_shadow_page_lockless_end(vcpu);
return ret;