OSDN Git Service

KVM: x86/mmu: Allow zapping collapsible SPTEs to use MMU read lock
authorBen Gardon <bgardon@google.com>
Thu, 1 Apr 2021 23:37:33 +0000 (16:37 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 19 Apr 2021 13:06:04 +0000 (09:06 -0400)
commit2db6f772b530eedcf69069e63dd7c4fdf05305fc
tree3e4252f8636b34db7d141cca564b2cb234d85fed
parent6103bc074048876794fa6d21fd8989331690ccbd
KVM: x86/mmu: Allow zapping collapsible SPTEs to use MMU read lock

To reduce the impact of disabling dirty logging, change the TDP MMU
function which zaps collapsible SPTEs to run under the MMU read lock.
This way, page faults on zapped SPTEs can proceed in parallel with
kvm_mmu_zap_collapsible_sptes.

Signed-off-by: Ben Gardon <bgardon@google.com>
Message-Id: <20210401233736.638171-11-bgardon@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/tdp_mmu.c