Skip to content

monitor/hmp: cleanup monitor_event() and suspend_cnt

Paolo Bonzini qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4monitor: use QEMU_LOCK_GUARD a bit moremonitor/monitor.c+2 -42 replies
2/4monitor: allow calling monitor_resume under mon_lockmonitor/monitor.c+6 -61 reply
3/4monitor: add more *_locked() functionsinclude/monitor/monitor.h monitor/monitor.c+11 -62 replies
4/4monitor: do not use mb_read/mb_set for suspend_cntmonitor/hmp.c monitor/monitor-internal.h monitor/monitor.c +2 more+39 -380 replies

Reviews trailers per patch

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

PatchRichard HendersonMarkus Armbruster
1/4R-b R-b
2/4
3/4R-b R-b
4/4

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

Read the v1 thread

Cover letter [PATCH 0/4] monitor/hmp: cleanup monitor_event() and suspend_cnt

monitor_event() is not using monitor_suspend() and monitor_resume() even though that is the desired outcome of moving out of and back into the monitor with Ctrl-a c.

While cleaning this up, make the locking of several fields in struct Monitor less esoteric, i.e. protect them just with mon_lock. This gets rid of one of the last two cases where qatomic_mb_read()/qatomic_mb_set() pair is used to achieve a semblance of sequential consistency.

Paolo

Paolo Bonzini (4):
monitor: use QEMU_LOCK_GUARD a bit more
monitor: allow calling monitor_resume under mon_lock
monitor: add more *_locked() functions
monitor: do not use mb_read/mb_set for suspend_cnt

 include/monitor/monitor.h     |  3 +++
 monitor/hmp.c                 | 41 ++++++++++++++++-------------------
 monitor/monitor-internal.h    |  3 +--
 monitor/monitor.c             | 39 ++++++++++++++++++---------------
 tests/qemu-iotests/051.out    |  4 ++--
 tests/qemu-iotests/051.pc.out | 20 ++++++++---------
 6 files changed, 57 insertions(+), 53 deletions(-)
Signature · 1 line
2.40.1