Re: [PATCH kernel] KVM: PPC: Protect kvm_vcpu_read_guest with srcu locks

2020-07-23 Thread Paul Mackerras
On Tue, Jun 09, 2020 at 12:12:29PM +1000, Alexey Kardashevskiy wrote: > The kvm_vcpu_read_guest/kvm_vcpu_write_guest used for nested guests > eventually call srcu_dereference_check to dereference a memslot and > lockdep produces a warning as neither kvm->slots_lock nor > kvm->srcu lock is held and

[PATCH kernel] KVM: PPC: Protect kvm_vcpu_read_guest with srcu locks

2020-06-08 Thread Alexey Kardashevskiy
The kvm_vcpu_read_guest/kvm_vcpu_write_guest used for nested guests eventually call srcu_dereference_check to dereference a memslot and lockdep produces a warning as neither kvm->slots_lock nor kvm->srcu lock is held and kvm->users_count is above zero (>100 in fact). This wraps mentioned VCPU