diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2019-07-01 12:22:57 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-07-05 13:48:48 +0200 |
commit | 335e192a3fa415e1202c8b9ecdaaecd643f823cc (patch) | |
tree | 206e669ddd3d413b19001d83f512c51a21259c07 /arch/x86/kvm/paging_tmpl.h | |
parent | KVM: x86: change kvm_mmu_page_get_gfn BUG_ON to WARN_ON (diff) | |
download | linux-335e192a3fa415e1202c8b9ecdaaecd643f823cc.tar.xz linux-335e192a3fa415e1202c8b9ecdaaecd643f823cc.zip |
KVM: x86: add tracepoints around __direct_map and FNAME(fetch)
These are useful in debugging shadow paging.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/paging_tmpl.h')
-rw-r--r-- | arch/x86/kvm/paging_tmpl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/paging_tmpl.h b/arch/x86/kvm/paging_tmpl.h index f39b381a8b88..e9d110fdcb8e 100644 --- a/arch/x86/kvm/paging_tmpl.h +++ b/arch/x86/kvm/paging_tmpl.h @@ -670,6 +670,8 @@ static int FNAME(fetch)(struct kvm_vcpu *vcpu, gva_t addr, base_gfn = gw->gfn; + trace_kvm_mmu_spte_requested(addr, gw->level, pfn); + for (; shadow_walk_okay(&it); shadow_walk_next(&it)) { clear_sp_write_flooding_count(it.sptep); base_gfn = gw->gfn & ~(KVM_PAGES_PER_HPAGE(it.level) - 1); |