[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/5] atomic: introduce smp_mb_acquire and smp_mb
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH 1/5] atomic: introduce smp_mb_acquire and smp_mb_release |
Date: |
Mon, 10 Oct 2016 18:38:37 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 |
On 10/10/2016 17:29, Eric Blake wrote:
> On 10/10/2016 08:59 AM, Paolo Bonzini wrote:
>> Signed-off-by: Paolo Bonzini <address@hidden>
>> ---
>> docs/atomics.txt | 79
>> ++++++++++++++++++++++++++++++---------------------
>> include/qemu/atomic.h | 50 +++++++++++++++++++-------------
>> 2 files changed, 77 insertions(+), 52 deletions(-)
>>
>
>>
>> +- smp_mb_acquire() guarantees that all the LOAD operations specified before
>> + the barrier will appear to happen before all the LOAD or STORE operations
>> + specified after the barrier with respect to the other components of
>> + the system.
>> +
>> +- smp_mb_release() guarantees that all the STORE operations specified
>> *after*
>> + the barrier will appear to happen before all the LOAD or STORE operations
>
> Sounds impossible. Should this be 'will appear to happen after all'?
Yes, of course. Damn copy and paste...
Paolo
>> + specified *before* the barrier with respect to the other components of
>> + the system.
>> +
>> - smp_mb() guarantees that all the LOAD and STORE operations specified
>> before the barrier will appear to happen before all the LOAD and
>> STORE operations specified after the barrier with respect to the other
>> @@ -149,8 +160,9 @@ They come in four kinds:
>
>
- [Qemu-devel] [PATCH 0/5] More thread sanitizer fixes and atomic.h improvements, Paolo Bonzini, 2016/10/10
- [Qemu-devel] [PATCH 2/5] cpus: use atomic_read to read seqlock-protected variables, Paolo Bonzini, 2016/10/10
- [Qemu-devel] [PATCH 3/5] qemu-thread: use acquire/release to clarify semantics of QemuEvent, Paolo Bonzini, 2016/10/10
- [Qemu-devel] [PATCH 1/5] atomic: introduce smp_mb_acquire and smp_mb_release, Paolo Bonzini, 2016/10/10
- [Qemu-devel] [PATCH 4/5] rcu: simplify memory barriers, Paolo Bonzini, 2016/10/10
- [Qemu-devel] [PATCH 5/5] atomic: base mb_read/mb_set on load-acquire and store-release, Paolo Bonzini, 2016/10/10
- Re: [Qemu-devel] [PATCH 0/5] More thread sanitizer fixes and atomic.h improvements, no-reply, 2016/10/10
- Re: [Qemu-devel] [PATCH 0/5] More thread sanitizer fixes and atomic.h improvements, no-reply, 2016/10/11
- Re: [Qemu-devel] [PATCH 0/5] More thread sanitizer fixes and atomic.h improvements, Alex Bennée, 2016/10/12
- Re: [Qemu-devel] [PATCH 0/5] More thread sanitizer fixes and atomic.h improvements, Emilio G. Cota, 2016/10/12