KVM: PPC: Book3S: Take the kvm->srcu lock in kvmppc_h_logical_ci_load/store()
authorThomas Huth <thuth@redhat.com>
Fri, 18 Sep 2015 06:57:28 +0000 (08:57 +0200)
committerPaul Mackerras <paulus@samba.org>
Sun, 20 Sep 2015 23:05:15 +0000 (09:05 +1000)
commit3eb4ee68254235e4f47bc0410538fcdaede39589
tree062222b787a8af59323b12c9dd928d12da111ad8
parent7e022e717f54897e396504306d0c9b61452adf4e
KVM: PPC: Book3S: Take the kvm->srcu lock in kvmppc_h_logical_ci_load/store()

Access to the kvm->buses (like with the kvm_io_bus_read() and -write()
functions) has to be protected via the kvm->srcu lock.
The kvmppc_h_logical_ci_load() and -store() functions are missing
this lock so far, so let's add it there, too.
This fixes the problem that the kernel reports "suspicious RCU usage"
when lock debugging is enabled.

Cc: stable@vger.kernel.org # v4.1+
Fixes: 99342cf8044420eebdf9297ca03a14cb6a7085a1
Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kvm/book3s.c