kvm: x86/mmu: Add TDP MMU SPTE changed trace point
authorBen Gardon <bgardon@google.com>
Tue, 27 Oct 2020 17:59:44 +0000 (10:59 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 19 Nov 2020 15:57:16 +0000 (10:57 -0500)
commitb9a98c3437e353b269ebf3567acc5c3dc757c7a5
tree9e831cd0d246bff6c042d9adb8ff48865e195b1c
parent33dd3574f5fef57c2c6caccf98925d63aa2a8d09
kvm: x86/mmu: Add TDP MMU SPTE changed trace point

Add an extremely verbose trace point to the TDP MMU to log all SPTE
changes, regardless of callstack / motivation. This is useful when a
complete picture of the paging structure is needed or a change cannot be
explained with the other, existing trace points.

Tested: ran the demand paging selftest on an Intel Skylake machine with
all the trace points used by the TDP MMU enabled and observed
them firing with expected values.

This patch can be viewed in Gerrit at:
https://linux-review.googlesource.com/c/virt/kvm/kvm/+/3813

Signed-off-by: Ben Gardon <bgardon@google.com>
Message-Id: <20201027175944.1183301-2-bgardon@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmutrace.h
arch/x86/kvm/mmu/tdp_mmu.c