qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] qmp: cleanup QMP dispatcher coroutine
@ 2023-05-18 10:18 Paolo Bonzini
  2023-05-18 10:18 ` [PATCH 1/5] monitor: cleanup detection of qmp_dispatcher_co shutting down Paolo Bonzini
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Paolo Bonzini @ 2023-05-18 10:18 UTC (permalink / raw)
  To: qemu-devel; +Cc: armbru, kwolf

The QMP dispatcher coroutine is a bit messy.  Clean it up by creating
small and understandable functions, and once the wakeup logic is clear
change it to remove the qatomic_mb_read()/qatomic_mb_set() pair.

With this change and the other HMP series posted, the last use of
qatomic_mb_read() is removed.

Paolo

Paolo Bonzini (5):
  monitor: cleanup detection of qmp_dispatcher_co shutting down
  monitor: cleanup fetching of QMP requests
  monitor: introduce qmp_dispatcher_co_wake
  monitor: extract request dequeuing to a new function
  monitor: do not use mb_read/mb_set

 monitor/monitor-internal.h |   2 +-
 monitor/monitor.c          |  33 +++--------
 monitor/qmp.c              | 110 ++++++++++++++++++++++++-------------
 3 files changed, 80 insertions(+), 65 deletions(-)

-- 
2.40.1



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-05-18 10:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-18 10:18 [PATCH 0/5] qmp: cleanup QMP dispatcher coroutine Paolo Bonzini
2023-05-18 10:18 ` [PATCH 1/5] monitor: cleanup detection of qmp_dispatcher_co shutting down Paolo Bonzini
2023-05-18 10:18 ` [PATCH 2/5] monitor: cleanup fetching of QMP requests Paolo Bonzini
2023-05-18 10:18 ` [PATCH 3/5] monitor: introduce qmp_dispatcher_co_wake Paolo Bonzini
2023-05-18 10:18 ` [PATCH 4/5] monitor: extract request dequeuing to a new function Paolo Bonzini
2023-05-18 10:18 ` [PATCH 5/5] monitor: do not use mb_read/mb_set Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).