aboutsummaryrefslogtreecommitdiff
path: root/hmp-commands.hx
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>2020-05-20 17:49:01 +0300
committerStefan Hajnoczi <stefanha@redhat.com>2020-06-05 09:54:48 +0100
commit7d2410cea154bf915fb30179ebda3b17ac36e70e (patch)
treec305b58c3a342dfdfcf86d3c103b0fb0c24a9767 /hmp-commands.hx
parentab7e41e6679224e5ad8da6d70ed7e645a5a482ab (diff)
downloadqemu-7d2410cea154bf915fb30179ebda3b17ac36e70e.zip
qemu-7d2410cea154bf915fb30179ebda3b17ac36e70e.tar.gz
qemu-7d2410cea154bf915fb30179ebda3b17ac36e70e.tar.bz2
block: Factor out bdrv_run_co()
We have a few bdrv_*() functions that can either spawn a new coroutine and wait for it with BDRV_POLL_WHILE() or use a fastpath if they are alreeady running in a coroutine. All of them duplicate basically the same code. Factor the common code into a new function bdrv_run_co(). Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Message-id: 20200520144901.16589-1-vsementsov@virtuozzo.com [Factor out bdrv_run_co_entry too] Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hmp-commands.hx')
0 files changed, 0 insertions, 0 deletions