KVM: x86/mmu: remove unnecessary "bool shared" argument from functions
authorPaolo Bonzini <pbonzini@redhat.com>
Sat, 25 Nov 2023 08:33:57 +0000 (03:33 -0500)
committerSean Christopherson <seanjc@google.com>
Fri, 1 Dec 2023 15:52:07 +0000 (07:52 -0800)
commit5f3c8c9187b6fa8675951f9fad5b99b11fed21f6
tree32fde6540152481339e9bfcdd32da88071cc7b26
parent45a61ebb221117748d3567a86908618f431ac824
KVM: x86/mmu: remove unnecessary "bool shared" argument from functions

Neither tdp_mmu_next_root nor kvm_tdp_mmu_put_root need to know
if the lock is taken for read or write.  Either way, protection
is achieved via RCU and tdp_mmu_pages_lock.  Remove the argument
and just assert that the lock is taken.

Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Link: https://lore.kernel.org/r/20231125083400.1399197-2-pbonzini@redhat.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/tdp_mmu.c
arch/x86/kvm/mmu/tdp_mmu.h