]> 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)
commit5954528db26c03244d97884d9bf720d0f4d5316e
tree3e4252f8636b34db7d141cca564b2cb234d85fed
parentb5115273ced117401b6845e685c56adf9fcc0ddb
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