]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2f0f8f6124220ce895cf58584e5a67898e6293d2
tree3e4252f8636b34db7d141cca564b2cb234d85fed
parent7646ac62a59a1f1b459d114dfc77f68a5936b81d
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