Re: [PATCH 4/6] x86,kvm: Fix apf_task_wake_one() serialization

2017-10-12 Thread Peter Zijlstra
On Sun, Sep 10, 2017 at 11:24:00AM +0200, Paolo Bonzini wrote: > ... doh, I missed PeterZ's remark that the early test is gone in tip. > Then the series makes total sense. Peter, if you ack patch 1 I can push > it through the KVM tree. I see its in already, but Ack ;-)

Re: [PATCH 4/6] x86,kvm: Fix apf_task_wake_one() serialization

2017-09-10 Thread Paolo Bonzini
On 10/09/2017 11:20, Paolo Bonzini wrote: > On 05/09/2017 21:00, Davidlohr Bueso wrote: >> During code inspection, the following potential race was seen: >> >> CPU0 CPU1 >> kvm_async_pf_task_wait apf_task_wake_one >> [S] prepare_to_swa

Re: [PATCH 4/6] x86,kvm: Fix apf_task_wake_one() serialization

2017-09-10 Thread Paolo Bonzini
On 05/09/2017 21:00, Davidlohr Bueso wrote: > During code inspection, the following potential race was seen: > > CPU0 CPU1 > kvm_async_pf_task_waitapf_task_wake_one > [S] prepare_to_swait(&n.wq) >