[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 12/18] vhost-user: disconnect on start failure
From: |
marcandre . lureau |
Subject: |
[Qemu-devel] [PATCH 12/18] vhost-user: disconnect on start failure |
Date: |
Fri, 1 Apr 2016 13:16:22 +0200 |
From: Marc-André Lureau <address@hidden>
If the backend failed to start (for example feature negociation failed),
do not exit, but disconnect the char device instead.
Signed-off-by: Marc-André Lureau <address@hidden>
---
net/vhost-user.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/net/vhost-user.c b/net/vhost-user.c
index 3dae53c..54849e9 100644
--- a/net/vhost-user.c
+++ b/net/vhost-user.c
@@ -204,7 +204,8 @@ static void net_vhost_user_event(void *opaque, int event)
s->watch = qemu_chr_fe_add_watch(s->chr, G_IO_HUP,
net_vhost_user_watch, s);
if (vhost_user_start(queues, ncs) < 0) {
- exit(1);
+ qemu_chr_disconnect(s->chr);
+ return;
}
qmp_set_link(name, true, &err);
break;
--
2.5.5
- Re: [Qemu-devel] [PATCH 10/18] vhost-user: add slave-fd support, (continued)
Re: [Qemu-devel] [PATCH 11/18] vhost-user: add shutdown support, Yuanhan Liu, 2016/04/28
[Qemu-devel] [PATCH 12/18] vhost-user: disconnect on start failure,
marcandre . lureau <=
[Qemu-devel] [PATCH 15/18] vhost-net: save & restore vring enable state, marcandre . lureau, 2016/04/01
[Qemu-devel] [PATCH 14/18] vhost-net: save & restore vhost-user acked features, marcandre . lureau, 2016/04/01
[Qemu-devel] [PATCH 13/18] vhost-net: do not crash if backend is not present, marcandre . lureau, 2016/04/01
[Qemu-devel] [PATCH 16/18] test: vubr check vring enable state, marcandre . lureau, 2016/04/01
[Qemu-devel] [PATCH 18/18] test: add shutdown support vubr test, marcandre . lureau, 2016/04/01
[Qemu-devel] [PATCH 17/18] test: start vhost-user reconnect test, marcandre . lureau, 2016/04/01