diff options
author | Coiby Xu | 2020-09-18 10:09:10 +0200 |
---|---|---|
committer | Stefan Hajnoczi | 2020-10-23 14:42:16 +0200 |
commit | 3578389bcf76c824a5d82e6586a6f0c71e56f2aa (patch) | |
tree | 5e6a6aa384e02162dba0b44b500a2c38df848f0c /softmmu | |
parent | block: move logical block size check function to a common utility function (diff) | |
download | qemu-3578389bcf76c824a5d82e6586a6f0c71e56f2aa.tar.gz qemu-3578389bcf76c824a5d82e6586a6f0c71e56f2aa.tar.xz qemu-3578389bcf76c824a5d82e6586a6f0c71e56f2aa.zip |
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>
Diffstat (limited to 'softmmu')
-rw-r--r-- | softmmu/vl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/softmmu/vl.c b/softmmu/vl.c index 14fc527fc6..e86d20334b 100644 --- a/softmmu/vl.c +++ b/softmmu/vl.c @@ -2540,6 +2540,10 @@ static bool object_create_initial(const char *type, QemuOpts *opts) } #endif + /* Reason: vhost-user-blk-server property "node-name" */ + if (g_str_equal(type, "vhost-user-blk-server")) { + return false; + } /* * Reason: filter-* property "netdev" etc. */ |