Re: [PATCH 0/4] qmp: Optionally run handlers in coroutines

2020-01-12 Thread Marc-André Lureau
Hi On Thu, Jan 9, 2020 at 10:36 PM Kevin Wolf wrote: > > Some QMP command handlers can block the main loop for a relatively long > time, for example because they perform some I/O. This is quite nasty. > Allowing such handlers to run in a coroutine where they can yield (and > therefore release the

[PATCH 0/4] qmp: Optionally run handlers in coroutines

2020-01-09 Thread Kevin Wolf
Some QMP command handlers can block the main loop for a relatively long time, for example because they perform some I/O. This is quite nasty. Allowing such handlers to run in a coroutine where they can yield (and therefore release the BQL) while waiting for an event such as I/O completion solves th