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: Eric Blake
Subject: Re: [Qemu-devel] [PATCH 1/5] atomic: introduce smp_mb_acquire and smp_mb_release
Date: Mon, 10 Oct 2016 10:29:17 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0

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'?

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


-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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