qemu-devel
[Top][All Lists]
Advanced

[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:
> 
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]