kvm: x86/mmu: Support dirty logging for the TDP MMU
Dirty logging is a key feature of the KVM MMU and must be supported by the TDP MMU. Add support for both the write protection and PML dirty logging modes. 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-16-bgardon@google.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
Showing
- arch/x86/kvm/mmu/mmu.c 14 additions, 0 deletionsarch/x86/kvm/mmu/mmu.c
- arch/x86/kvm/mmu/tdp_iter.h 5 additions, 2 deletionsarch/x86/kvm/mmu/tdp_iter.h
- arch/x86/kvm/mmu/tdp_mmu.c 296 additions, 3 deletionsarch/x86/kvm/mmu/tdp_mmu.c
- arch/x86/kvm/mmu/tdp_mmu.h 10 additions, 0 deletionsarch/x86/kvm/mmu/tdp_mmu.h
- include/linux/kvm_host.h 1 addition, 0 deletionsinclude/linux/kvm_host.h
- virt/kvm/kvm_main.c 2 additions, 4 deletionsvirt/kvm/kvm_main.c
Please register or sign in to comment