]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: x86/mmu: Add access tracking for tdp_mmu
authorBen Gardon <bgardon@google.com>
Wed, 14 Oct 2020 18:26:53 +0000 (11:26 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 23 Oct 2020 07:42:12 +0000 (03:42 -0400)
commit6f11a1cd24bb9127d38c1fa5360a1b94daa7c652
tree20146e504a64852a8f056a6bf6dd69d97e455334
parent1f448035b7b634c8bf016949d029a70b04c3127e
kvm: x86/mmu: Add access tracking for tdp_mmu

In order to interoperate correctly with the rest of KVM and other Linux
subsystems, the TDP MMU must correctly handle various MMU notifiers. The
main Linux MM uses the access tracking MMU notifiers for swap and other
features. Add hooks to handle the test/flush HVA (range) family of
MMU notifiers.

Tested by running kvm-unit-tests and KVM selftests on an Intel Haswell
machine. This series introduced no new failures.

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

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