]> git.ipfire.org Git - thirdparty/qemu.git/commit
atomics: update documentation
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 6 Apr 2020 09:34:12 +0000 (11:34 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 13 Apr 2020 06:56:03 +0000 (02:56 -0400)
commitde99dab06f7917095586517f1ab0e6dab7a03322
tree554bcadec1af01b568d205b2ed90463811199215
parent15e8699f009f7feeab7d9ab406bf62882958e4d9
atomics: update documentation

Some of the constraints on operand sizes have been relaxed, so adjust the
documentation.

Deprecate atomic_mb_read and atomic_mb_set; it is not really possible to
use them correctly because they do not interoperate with sequentially-consistent
RMW operations.

Finally, extend the memory barrier pairing section to cover acquire and
release semantics in general, roughly based on the KVM Forum 2016 talk,
"<atomic.h> weapons".

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
docs/devel/atomics.rst