mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
block: generate coroutine-wrapper code
Use code generation implemented in previous commit to generated coroutine wrappers in block.c and block/io.c Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Message-Id: <20200924185414.28642-6-vsementsov@virtuozzo.com>
This commit is contained in:
parent
aaaa20b69b
commit
9bb4b066cc
4 changed files with 13 additions and 294 deletions
|
@ -34,7 +34,7 @@ int coroutine_fn bdrv_co_invalidate_cache(BlockDriverState *bs, Error **errp);
|
|||
int coroutine_fn
|
||||
bdrv_co_prwv(BdrvChild *child, int64_t offset, QEMUIOVector *qiov,
|
||||
bool is_write, BdrvRequestFlags flags);
|
||||
int
|
||||
int generated_co_wrapper
|
||||
bdrv_prwv(BdrvChild *child, int64_t offset, QEMUIOVector *qiov,
|
||||
bool is_write, BdrvRequestFlags flags);
|
||||
|
||||
|
@ -47,7 +47,7 @@ bdrv_co_common_block_status_above(BlockDriverState *bs,
|
|||
int64_t *pnum,
|
||||
int64_t *map,
|
||||
BlockDriverState **file);
|
||||
int
|
||||
int generated_co_wrapper
|
||||
bdrv_common_block_status_above(BlockDriverState *bs,
|
||||
BlockDriverState *base,
|
||||
bool want_zero,
|
||||
|
@ -60,7 +60,7 @@ bdrv_common_block_status_above(BlockDriverState *bs,
|
|||
int coroutine_fn
|
||||
bdrv_co_rw_vmstate(BlockDriverState *bs, QEMUIOVector *qiov, int64_t pos,
|
||||
bool is_read);
|
||||
int
|
||||
int generated_co_wrapper
|
||||
bdrv_rw_vmstate(BlockDriverState *bs, QEMUIOVector *qiov, int64_t pos,
|
||||
bool is_read);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue