Skip to content

qemu-thread: support --enable-debug-mutex

Peter Xu qemu-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest4 patches 1 replyIn review
  2. v54 patches 2 repliesSuperseded
  3. v44 patches 4 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v33 patches2 repliesSuperseded

Changes in v6 from the cover letter

- rename __QEMU_THREAD_COMMON_H__ to QEMU_THREAD_COMMON_H
- collect r-bs for Emilio

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4tests/atomic_add-bench: add -m option to use mutexestests/atomic_add-bench.c+17 -20 replies
2/4qemu-thread: introduce qemu-thread-common.hutil/qemu-thread-common.h util/qemu-thread-posix.c util/qemu-thread-win32.c+59 -200 replies
3/4QemuMutex: support --enable-debug-mutexconfigure include/qemu/thread-posix.h include/qemu/thread-win32.h +1 more+30 -00 replies
4/4configure: enable debug-mutex if debug enabledconfigure+1 -00 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchEmilio G. Cota
1/4
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [Qemu-devel] [PATCH v6 0/4] qemu-thread: support --enable-debug-mutex

v6:
- rename __QEMU_THREAD_COMMON_H__ to QEMU_THREAD_COMMON_H
- collect r-bs for Emilio

v5:
- init file/line [Emilio]

v4:
- cherrypick Emilio's patch to add "-m" parameter to atomic_add-bench tool.
- use inline functions [Emilio]

Micro benchmark result on "taskset -c 0 atomic_add-bench -m":

|--------+---------------------+------------------------|
|        | with --enable-debug | without --enable-debug |
|--------+---------------------+------------------------|
| Before | 20 Mops/s           | 34 Mops/s              |
| After  | 18 Mops/s           | 34 Mops/s              |
|--------+---------------------+------------------------|

Please review. Thanks.

Emilio G. Cota (1):
tests/atomic_add-bench: add -m option to use mutexes

Peter Xu (3):
qemu-thread: introduce qemu-thread-common.h
QemuMutex: support --enable-debug-mutex
configure: enable debug-mutex if debug enabled

 configure                   | 11 +++++++++
 include/qemu/thread-posix.h |  4 ++++
 include/qemu/thread-win32.h |  4 ++++
 util/qemu-thread-common.h   | 55 +++++++++++++++++++++++++++++++++++++++++++++
 tests/atomic_add-bench.c    | 19 ++++++++++++++--
 util/qemu-thread-posix.c    | 19 +++++++---------
 util/qemu-thread-win32.c    | 17 +++++++-------
 7 files changed, 107 insertions(+), 22 deletions(-)
 create mode 100644 util/qemu-thread-common.h
Signature · 1 line
2.14.3