[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC PATCH 3/4] vhost-user: Enable 'nowait' and 'reconnect'
From: |
Tetsuya Mukawa |
Subject: |
[Qemu-devel] [RFC PATCH 3/4] vhost-user: Enable 'nowait' and 'reconnect' option |
Date: |
Mon, 25 May 2015 16:28:27 +0900 |
The patch enables 'nowait' option for server mode, and 'reconnect'
option for client mode.
Signed-off-by: Tetsuya Mukawa <address@hidden>
---
net/vhost-user.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/net/vhost-user.c b/net/vhost-user.c
index 55c05a5..d31fc41 100644
--- a/net/vhost-user.c
+++ b/net/vhost-user.c
@@ -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",
--
2.1.4
- [Qemu-devel] [RFC PATCH 0/4] Add feature to start QEMU without vhost-user backend, Tetsuya Mukawa, 2015/05/25
- [Qemu-devel] [RFC PATCH 1/4] vhost-user: Add ability to know vhost-user backend disconnection, Tetsuya Mukawa, 2015/05/25
- [Qemu-devel] [RFC PATCH 2/4] vhost-user: Shutdown vhost-user connection when wrong messages are passed, Tetsuya Mukawa, 2015/05/25
- [Qemu-devel] [RFC PATCH 3/4] vhost-user: Enable 'nowait' and 'reconnect' option,
Tetsuya Mukawa <=
- [Qemu-devel] [RFC PATCH 4/4] vhost-user: Add new option to specify vhost-user backend supports, Tetsuya Mukawa, 2015/05/25
- Re: [Qemu-devel] [RFC PATCH 4/4] vhost-user: Add new option to specify vhost-user backend supports, Eric Blake, 2015/05/25
- Re: [Qemu-devel] [RFC PATCH 4/4] vhost-user: Add new option to specify vhost-user backend supports, Tetsuya Mukawa, 2015/05/25
- Re: [Qemu-devel] [RFC PATCH 4/4] vhost-user: Add new option to specify vhost-user backend supports, Tetsuya Mukawa, 2015/05/26
- Re: [Qemu-devel] [RFC PATCH 4/4] vhost-user: Add new option to specify vhost-user backend supports, Eric Blake, 2015/05/26
- Re: [Qemu-devel] [RFC PATCH 4/4] vhost-user: Add new option to specify vhost-user backend supports, Tetsuya Mukawa, 2015/05/27
- Re: [Qemu-devel] [RFC PATCH 4/4] vhost-user: Add new option to specify vhost-user backend supports, Tetsuya Mukawa, 2015/05/29
[Qemu-devel] [PATCH v1 0/4] Add feature to start QEMU without vhost-user backend, Tetsuya Mukawa, 2015/05/29