Re: [PATCH] KVM: hyperv: idr_find needs RCU protection

2018-05-08 Thread Roman Kagan
On Mon, May 07, 2018 at 07:25:00PM +0200, Paolo Bonzini wrote: > 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

Re: [PATCH] KVM: hyperv: idr_find needs RCU protection

2018-05-08 Thread Roman Kagan
On Mon, May 07, 2018 at 07:25:00PM +0200, Paolo Bonzini wrote: > 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

[PATCH] KVM: hyperv: idr_find needs RCU protection

2018-05-07 Thread Paolo Bonzini
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. Signed-off-by:

[PATCH] KVM: hyperv: idr_find needs RCU protection

2018-05-07 Thread Paolo Bonzini
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. Signed-off-by: