kvm: x86/mmu: Introduce tdp_iter
authorBen Gardon <bgardon@google.com>
Wed, 14 Oct 2020 18:26:42 +0000 (20:26 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 21 Oct 2020 22:17:00 +0000 (18:17 -0400)
commitc9180b7291cf13a746aaca907b9fdd499cce1e38
tree57db6c64271b7de89e376a8f35ce6affd9fdb4c0
parent5a9624affe7c7498fb395879d9bb613628e89e60
kvm: x86/mmu: Introduce tdp_iter

The TDP iterator implements a pre-order traversal of a TDP paging
structure. This iterator will be used in future patches to create
an efficient implementation of the KVM MMU for the TDP case.

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>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/Makefile
arch/x86/kvm/mmu/tdp_iter.c [new file with mode: 0644]
arch/x86/kvm/mmu/tdp_iter.h [new file with mode: 0644]