]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: x86/mmu: Support zapping SPTEs in the TDP MMU
authorBen Gardon <bgardon@google.com>
Wed, 14 Oct 2020 18:26:47 +0000 (11:26 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 21 Oct 2020 22:17:02 +0000 (18:17 -0400)
commit56d8cae20031e6c6dc15821c25616537c274efb6
tree6054d3a1c0128da3113bb8b7250fed3b17385909
parent565e0e97fa7ca11797fde6ab8c0295ec9d998d82
kvm: x86/mmu: Support zapping SPTEs in the TDP MMU

Add functions to zap SPTEs to the TDP MMU. These are needed to tear down
TDP MMU roots properly and implement other MMU functions which require
tearing down mappings. Future patches will add functions to populate the
page tables, but as for this patch there will not be any work for these
functions to do.

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-8-bgardon@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/tdp_iter.c
arch/x86/kvm/mmu/tdp_iter.h
arch/x86/kvm/mmu/tdp_mmu.c
arch/x86/kvm/mmu/tdp_mmu.h