KVM: x86/mmu: fast_page_fault support for the TDP MMU
authorDavid Matlack <dmatlack@google.com>
Tue, 13 Jul 2021 22:09:55 +0000 (22:09 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 2 Aug 2021 15:01:47 +0000 (11:01 -0400)
commit6e8eb2060cc7fbc4d388d0ab70502e265aec98c6
tree4fc2f7b1c24d67326f40bccf4e7715d9846b5236
parentc5c8c7c53004cb70715320018c3b4287071c1cfd
KVM: x86/mmu: fast_page_fault support for the TDP MMU

Make fast_page_fault interoperate with the TDP MMU by leveraging
walk_shadow_page_lockless_{begin,end} to acquire the RCU read lock and
introducing a new helper function kvm_tdp_mmu_fast_pf_get_last_sptep to
grab the lowest level sptep.

Suggested-by: Ben Gardon <bgardon@google.com>
Signed-off-by: David Matlack <dmatlack@google.com>
Message-Id: <20210713220957.3493520-5-dmatlack@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