block/export: vhost-user block device backend server
By making use of libvhost-user, block device drive can be shared to the connected vhost-user client. Only one client can connect to the server one time. Since vhost-user-server needs a block drive to be created first, delay the creation of this object. Suggested-by:Kevin Wolf <kwolf@redhat.com> Signed-off-by:
Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by:
Coiby Xu <coiby.xu@gmail.com> Reviewed-by:
Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by:
Marc-André Lureau <marcandre.lureau@redhat.com> Message-id: 20200918080912.321299-6-coiby.xu@gmail.com [Shorten "vhost_user_blk_server" string to "vhost_user_blk" to avoid the following compiler warning: ../block/export/vhost-user-blk-server.c:178:50: error: ‘%s’ directive output truncated writing 21 bytes into a region of size 20 [-Werror=format-truncation=] and fix "Invalid size %ld ..." ssize_t format string arguments for 32-bit hosts. --Stefan] Signed-off-by:
Stefan Hajnoczi <stefanha@redhat.com>
Showing
- block/export/vhost-user-blk-server.c 661 additions, 0 deletionsblock/export/vhost-user-blk-server.c
- block/export/vhost-user-blk-server.h 36 additions, 0 deletionsblock/export/vhost-user-blk-server.h
- block/meson.build 1 addition, 0 deletionsblock/meson.build
- softmmu/vl.c 4 additions, 0 deletionssoftmmu/vl.c
block/export/vhost-user-blk-server.c
0 → 100644
block/export/vhost-user-blk-server.h
0 → 100644
Please register or sign in to comment