KVM: x86: add tracepoints around __direct_map and FNAME(fetch)
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 1 Jul 2019 10:22:57 +0000 (06:22 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 16 Nov 2019 09:29:53 +0000 (10:29 +0100)
commit52644d80850a3fe965ee964e903acef7be61a62c
tree9a9d1f776ad0e92a3d8e5ded162c1e240f1cd676
parent9dc6bc3f22f08099a27c38c68983fbc419e879f3
KVM: x86: add tracepoints around __direct_map and FNAME(fetch)

commit 335e192a3fa415e1202c8b9ecdaaecd643f823cc upstream.

These are useful in debugging shadow paging.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
[bwh: Backported to 4.9:
 - Keep using PT_PRESENT_MASK to test page write permission
 - Adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/mmu.c
arch/x86/kvm/mmutrace.h
arch/x86/kvm/paging_tmpl.h