kvm: x86/mmu: Allocate struct kvm_mmu_pages for all pages in TDP MMU
authorBen Gardon <bgardon@google.com>
Wed, 14 Oct 2020 18:26:51 +0000 (11:26 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 23 Oct 2020 07:42:11 +0000 (03:42 -0400)
commit89c0fd494af3912d32ba5765b7147f36a34d1fa3
tree780b409777ac2cac861039b2e89913169bcf7e24
parentbb18842e21111a979e2e0e1c5d85c09646f18d51
kvm: x86/mmu: Allocate struct kvm_mmu_pages for all pages in TDP MMU

Attach struct kvm_mmu_pages to every page in the TDP MMU to track
metadata, facilitate NX reclaim, and enable inproved parallelism of MMU
operations in future patches.

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