Re: [Qemu-devel] [PATCH] docs/atomics: update comparison with Linux

2016-05-25 Thread Paolo Bonzini
On 25/05/2016 17:15, Emilio G. Cota wrote: >> > + >> > + In QEMU, the second kind does not exist. Currently Linux has >> > + atomic_fetch_or only; QEMU provides all of inc, dec, and, sub, and, or. > Not clear whether the last 'and' is redundant or is being used as > a conjunction. Either way i

Re: [Qemu-devel] [PATCH] docs/atomics: update comparison with Linux

2016-05-25 Thread Emilio G. Cota
On Wed, May 25, 2016 at 14:26:06 +0200, Paolo Bonzini wrote: > Over time, some differences between QEMU and Linux atomics are getting > smoothed. In particular, Linux grew atomic_fetch_or (and in general > the differences regarding RMW operations were not described accurately) > and smp_load_acqui

[Qemu-devel] [PATCH] docs/atomics: update comparison with Linux

2016-05-25 Thread Paolo Bonzini
Over time, some differences between QEMU and Linux atomics are getting smoothed. In particular, Linux grew atomic_fetch_or (and in general the differences regarding RMW operations were not described accurately) and smp_load_acquire/smp_store_release. Also, set_mb was renamed to smp_store_mb(). I