From: zhangkun
step for vhost-user hotplug:
1.hot add
chardev-add backend=socket,id=charnet0,path=/var/run/vhost-user/tap0
netdev_add type=vhost-user,id=hostnet0,chardev=charnet0
device_add virtio-net-pci,netdev=hostnet0,id=net0
2.hot del
device_del net0
netdev_del hostnet0
chardev
Yes, this patch is only reconnect socket.
The "Is_reconnect" field is used by next patch.
-Original Message-
From: Zhang Haoyu [mailto:zhhy.zhangha...@gmail.com]
Sent: Monday, December 22, 2014 3:20 PM
To: Zhangkun (K); qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATC
From: zhangkun
Signed-off-by: zhangkun
---
net/vhost-user.c | 10 +-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/net/vhost-user.c b/net/vhost-user.c
index 24e050c..957e78c 100644
--- a/net/vhost-user.c
+++ b/net/vhost-user.c
@@ -26,6 +26,7 @@ typedef struct
Hi, all
I used switch and vhost-user to receive packets from vm to host, or to send
packets to vm .
When switch process was restarted by any time, it was not communicated with
each other from vm to host.
How to deal with the problem about communicating from vm to host or vm to vm
when switch p