[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v4 33/47] Postcopy: Postcopy startup in migratio
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH v4 33/47] Postcopy: Postcopy startup in migration thread |
Date: |
Fri, 21 Nov 2014 13:01:45 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 |
On 20/11/2014 12:45, Dr. David Alan Gilbert wrote:
> > For this case QEMU has atomic_read/atomic_set (corresponding to
> > __ATOMIC_RELAXED in C/C++1x), so you could use those as well.
>
> Ah, so those look like they just volatile cast anyway.
Yeah, but it explicitly shows that the assignment is a) for a
multi-threaded operation b) using relaxed semantics. It attaches the
information to the use instead of the variable; it just happens that
volatile is the pre-C11 way to express those.
Paolo