]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite460df71647fac911ab4e8d7308f808a17668048
tree9e831cd0d246bff6c042d9adb8ff48865e195b1c
parentcc73d244b2370086d34b32dbc393ecf4bc03a2d6
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