@@ -26,6 +26,8 @@ typedef struct VhostUserChardevProps {
bool is_socket;
bool is_unix;
bool is_server;
+ bool is_nowait;
+ bool is_reconnect;
} VhostUserChardevProps;
VHostNetState *vhost_user_get_vhost_net(NetClientState *nc)
@@ -178,6 +180,10 @@ static int net_vhost_chardev_opts(const char *name, const char *value,
props->is_unix = true;
} else if (strcmp(name, "server") == 0) {
props->is_server = true;
+ } else if ((strcmp(name, "wait") == 0) && (strcmp(value, "off")) == 0) {
+ props->is_nowait = true;
+ } else if (strcmp(name, "reconnect") == 0) {
+ props->is_reconnect = true;
} else {
error_report("vhost-user does not support a chardev"
" with the following option:\n %s = %s",
The patch enables 'nowait' option for server mode, and 'reconnect' option for client mode. Signed-off-by: Tetsuya Mukawa <mukawa@igel.co.jp> --- net/vhost-user.c | 6 ++++++ 1 file changed, 6 insertions(+)