[PATCH 0/3] KVM: x86/mmu: small locking cleanups

Paolo Bonzini posted 3 patches 2 years, 2 months ago
There is a newer version of this series
Documentation/virt/kvm/locking.rst |  6 +-
arch/x86/kvm/mmu/mmu.c             |  2 +-
arch/x86/kvm/mmu/tdp_mmu.c         | 93 +++++++++++++++---------------
arch/x86/kvm/mmu/tdp_mmu.h         |  3 +-
4 files changed, 52 insertions(+), 52 deletions(-)
[PATCH 0/3] KVM: x86/mmu: small locking cleanups
Posted by Paolo Bonzini 2 years, 2 months ago
Remove "bool shared" argument from functions and iterators that need
not know if the lock is taken for read or write.  This is common because
protection is achieved via RCU and tdp_mmu_pages_lock or because the
argument is only used for assertions that can be written by hand.

Also always take tdp_mmu_pages_lock even if mmu_lock is currently taken
for write.

Paolo Bonzini (3):
  KVM: x86/mmu: remove unnecessary "bool shared" argument from functions
  KVM: x86/mmu: remove unnecessary "bool shared" argument from iterators
  KVM: x86/mmu: always take tdp_mmu_pages_lock

 Documentation/virt/kvm/locking.rst |  6 +-
 arch/x86/kvm/mmu/mmu.c             |  2 +-
 arch/x86/kvm/mmu/tdp_mmu.c         | 93 +++++++++++++++---------------
 arch/x86/kvm/mmu/tdp_mmu.h         |  3 +-
 4 files changed, 52 insertions(+), 52 deletions(-)

-- 
2.39.1