kvm: x86/mmu: Support changed pte notifier in tdp MMU
authorBen Gardon <bgardon@google.com>
Wed, 14 Oct 2020 18:26:54 +0000 (11:26 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 23 Oct 2020 07:42:12 +0000 (03:42 -0400)
commit1d8dd6b3f12b03f617820a9ebc19cc2fabf59ce9
tree3ef06af72f4d5e6a8d331b631f73eba4c5ef0144
parentf8e144971c6834fa1e171be4cd8026f8bc537bca
kvm: x86/mmu: Support changed pte notifier in 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. Add
a hook and handle the change_pte MMU notifier.

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-15-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