diff options
author | Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com> | 2012-06-20 15:59:41 +0800 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-07-11 16:51:21 +0300 |
commit | a72faf2504dfc12ff9bfb486a42f2761296666ff (patch) | |
tree | bc8d0c376d90f06d146cb8831ef44cc0b43f66b5 /arch/x86/kvm/mmu.c | |
parent | c7ba5b48cc8ddc015a9e0463813ca1e60bc42c59 (diff) | |
download | op-kernel-dev-a72faf2504dfc12ff9bfb486a42f2761296666ff.zip op-kernel-dev-a72faf2504dfc12ff9bfb486a42f2761296666ff.tar.gz |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 8637bff..28c8fbc 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; |