summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy2020-09-24 20:54:14 +0200
committerStefan Hajnoczi2020-10-05 11:59:42 +0200
commitb33b354f3a27e8860a6a7aca465e01c727211ee4 (patch)
treecea4fe403abc85e3b898b7e59a16b582c857bcc8 /include
parentblock: drop bdrv_prwv (diff)
downloadqemu-b33b354f3a27e8860a6a7aca465e01c727211ee4.tar.gz
qemu-b33b354f3a27e8860a6a7aca465e01c727211ee4.tar.xz
qemu-b33b354f3a27e8860a6a7aca465e01c727211ee4.zip
block/io: refactor save/load vmstate
Like for read/write in a previous commit, drop extra indirection layer, generate directly bdrv_readv_vmstate() and bdrv_writev_vmstate(). 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-8-vsementsov@virtuozzo.com>
Diffstat (limited to 'include')
-rw-r--r--include/block/block.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/block/block.h b/include/block/block.h
index eef4cceaf0..8b87df69a1 100644
--- a/include/block/block.h
+++ b/include/block/block.h
@@ -572,8 +572,10 @@ int path_has_protocol(const char *path);
int path_is_absolute(const char *path);
char *path_combine(const char *base_path, const char *filename);
-int bdrv_readv_vmstate(BlockDriverState *bs, QEMUIOVector *qiov, int64_t pos);
-int bdrv_writev_vmstate(BlockDriverState *bs, QEMUIOVector *qiov, int64_t pos);
+int generated_co_wrapper
+bdrv_readv_vmstate(BlockDriverState *bs, QEMUIOVector *qiov, int64_t pos);
+int generated_co_wrapper
+bdrv_writev_vmstate(BlockDriverState *bs, QEMUIOVector *qiov, int64_t pos);
int bdrv_save_vmstate(BlockDriverState *bs, const uint8_t *buf,
int64_t pos, int size);