[PULL 0/9] Fix missing memory barriers on ARM

Paolo Bonzini posted 9 patches 1 year, 1 month ago
There is a newer version of this series
docs/devel/atomics.rst     | 26 ++++++++++++---
hw/misc/edu.c              |  5 +++
include/block/aio-wait.h   |  2 +-
include/qemu/atomic.h      | 17 +++++++++-
softmmu/physmem.c          |  3 ++
util/async.c               | 43 +++++++++++++++---------
util/qemu-coroutine-lock.c |  9 ++++-
util/qemu-thread-posix.c   | 69 +++++++++++++++++++++++++++-----------
util/qemu-thread-win32.c   | 82 +++++++++++++++++++++++++++++++---------------
9 files changed, 186 insertions(+), 70 deletions(-)
[PULL 0/9] Fix missing memory barriers on ARM
Posted by Paolo Bonzini 1 year, 1 month ago
The following changes since commit c61d1a066cb6cf90662c82d0e35660fc0ccacbaf:

  Merge tag 'for-upstream' of https://gitlab.com/bonzini/qemu into staging (2023-03-02 16:13:45 +0000)

are available in the Git repository at:

  https://gitlab.com/bonzini/qemu.git tags/for-upstream-mb

for you to fetch changes up to 6229438cca037d42f44a96d38feb15cb102a444f:

  async: clarify usage of barriers in the polling case (2023-03-07 12:39:53 +0100)

----------------------------------------------------------------
* Fix missing memory barriers
* Fix comments about memory ordering

----------------------------------------------------------------
Paolo Bonzini (9):
      qatomic: add smp_mb__before/after_rmw()
      qemu-thread-posix: cleanup, fix, document QemuEvent
      qemu-thread-win32: cleanup, fix, document QemuEvent
      edu: add smp_mb__after_rmw()
      aio-wait: switch to smp_mb__after_rmw()
      qemu-coroutine-lock: add smp_mb__after_rmw()
      physmem: add missing memory barrier
      async: update documentation of the memory barriers
      async: clarify usage of barriers in the polling case

 docs/devel/atomics.rst     | 26 ++++++++++++---
 hw/misc/edu.c              |  5 +++
 include/block/aio-wait.h   |  2 +-
 include/qemu/atomic.h      | 17 +++++++++-
 softmmu/physmem.c          |  3 ++
 util/async.c               | 43 +++++++++++++++---------
 util/qemu-coroutine-lock.c |  9 ++++-
 util/qemu-thread-posix.c   | 69 +++++++++++++++++++++++++++-----------
 util/qemu-thread-win32.c   | 82 +++++++++++++++++++++++++++++++---------------
 9 files changed, 186 insertions(+), 70 deletions(-)
-- 
2.39.1
Re: [PULL 0/9] Fix missing memory barriers on ARM
Posted by Peter Maydell 1 year, 1 month ago
On Tue, 7 Mar 2023 at 11:43, Paolo Bonzini <pbonzini@redhat.com> wrote:
>
> The following changes since commit c61d1a066cb6cf90662c82d0e35660fc0ccacbaf:
>
>   Merge tag 'for-upstream' of https://gitlab.com/bonzini/qemu into staging (2023-03-02 16:13:45 +0000)
>
> are available in the Git repository at:
>
>   https://gitlab.com/bonzini/qemu.git tags/for-upstream-mb
>
> for you to fetch changes up to 6229438cca037d42f44a96d38feb15cb102a444f:
>
>   async: clarify usage of barriers in the polling case (2023-03-07 12:39:53 +0100)
>
> ----------------------------------------------------------------
> * Fix missing memory barriers
> * Fix comments about memory ordering
>


Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/8.0
for any user-visible changes.

-- PMM