@samitouri / QOSamiQemu / commits / 8c57370d18

monitor: annotate monitor_qmp_dispatcher_pop_any() as coroutine

The function calls qemu_coroutine_yield(), and is called from monitor_qmp_dispatcher_co(). Fixes: 60f4f62efeb ("monitor: extract request dequeuing to a new function") Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>

Marc-André Lureau committed Jul 19, 2026 at 23:28 UTC 8c57370d189f06e766804704e470252d76cbe30b
1 file changed +2 -1
monitor/qmp.c
+2 -1
@@ -342,7 +342,8 @@ static QMPRequest *monitor_qmp_requests_pop_any_with_lock(void)
342 return req_obj;
343 }
344
345 -static QMPRequest *monitor_qmp_dispatcher_pop_any(void)
345 +static QMPRequest * coroutine_fn
346 +monitor_qmp_dispatcher_pop_any(void)
347 {
348 while (true) {
349 /*