commit | 452a68d0ef341c4d544757e02154788227b2a08b | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Mon May 07 19:24:34 2018 +0200 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Fri May 11 11:21:11 2018 +0200 |
tree | cd20a5942452373352c9861437b13f0eb58f94fe | |
parent | 6356ee0c9602004e0a3b4b2dad68ee2ee9385b17 [diff] |
KVM: hyperv: idr_find needs RCU protection Even though the eventfd is released after the KVM SRCU grace period elapses, the conn_to_evt data structure itself is not; it uses RCU internally, instead. Fix the read-side critical section to happen under rcu_read_lock/unlock; the result is still protected by vcpu->kvm->srcu. Reviewed-by: Roman Kagan <rkagan@virtuozzo.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>