KVM: x86/mmu: Allow zap gfn range to operate under the mmu read lock
authorBen Gardon <bgardon@google.com>
Thu, 1 Apr 2021 23:37:32 +0000 (16:37 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 19 Apr 2021 13:06:04 +0000 (09:06 -0400)
commit6103bc074048876794fa6d21fd8989331690ccbd
tree3a54f5ec8e134850966f65da895271da5df94455
parentc0e64238ac53e8226e3fe72279e5e76253e85f88
KVM: x86/mmu: Allow zap gfn range to operate under the mmu read lock

To reduce lock contention and interference with page fault handlers,
allow the TDP MMU function to zap a GFN range to operate under the MMU
read lock.

Signed-off-by: Ben Gardon <bgardon@google.com>
Message-Id: <20210401233736.638171-10-bgardon@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