diff options
author | Max Reitz <mreitz@redhat.com> | 2015-10-19 17:53:24 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2015-10-23 18:18:23 +0200 |
commit | 281d22d86ca26bf356284719e44c4bc66b716415 (patch) | |
tree | 804c3d13614ca3e46180c440e872024c1fc9f437 /include/sysemu | |
parent | 973f2ddf7b48c27aa8642047796cca3bec0b48d8 (diff) | |
download | qemu-281d22d86ca26bf356284719e44c4bc66b716415.zip qemu-281d22d86ca26bf356284719e44c4bc66b716415.tar.gz qemu-281d22d86ca26bf356284719e44c4bc66b716415.tar.bz2 |
block: Add BlockBackendRootState
This structure will store some of the state of the root BDS if the BDS
tree is removed, so that state can be restored once a new BDS tree is
inserted.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/sysemu')
-rw-r--r-- | include/sysemu/block-backend.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sysemu/block-backend.h b/include/sysemu/block-backend.h index eafcef0..52e35a1 100644 --- a/include/sysemu/block-backend.h +++ b/include/sysemu/block-backend.h @@ -163,6 +163,8 @@ void blk_add_close_notifier(BlockBackend *blk, Notifier *notify); void blk_io_plug(BlockBackend *blk); void blk_io_unplug(BlockBackend *blk); BlockAcctStats *blk_get_stats(BlockBackend *blk); +BlockBackendRootState *blk_get_root_state(BlockBackend *blk); +void blk_update_root_state(BlockBackend *blk); void *blk_aio_get(const AIOCBInfo *aiocb_info, BlockBackend *blk, BlockCompletionFunc *cb, void *opaque); |