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

2020-02-12 Thread Kevin Wolf
Am 05.02.2020 um 15:00 hat Kevin Wolf geschrieben: > Am 21.01.2020 um 19:11 hat Kevin Wolf geschrieben: > > 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

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

2020-02-05 Thread Kevin Wolf
Am 21.01.2020 um 19:11 hat Kevin Wolf geschrieben: > 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)

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

2020-01-21 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