vduse-blk: Add vduse-blk resize support
commit9e4dea67277fff54ccc9d83444c8fa392ad94c11
authorXie Yongji <xieyongji@bytedance.com>
Mon, 23 May 2022 08:46:10 +0000 (23 16:46 +0800)
committerKevin Wolf <kwolf@redhat.com>
Fri, 24 Jun 2022 15:07:06 +0000 (24 17:07 +0200)
treedb18e18b0af6af3d838d25c0b93eeb87968e4689
parent2a2359b84407b35fe978e98b7396f2ab8c5dd8b7
vduse-blk: Add vduse-blk resize support

To support block resize, this uses vduse_dev_update_config()
to update the capacity field in configuration space and inject
config interrupt on the block resize callback.

Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20220523084611.91-8-xieyongji@bytedance.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/export/vduse-blk.c