From: ZhiPeng Lu
Date: Fri, 8 Sep 2017 09:12:09 +0000 (+0800)
Subject: vhost-user: add support reconnect for vhost-user ports
X-Git-Tag: v3.8.0-rc1~56
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edaf4ebe95a5995585c8ab7bc5b92887286d4431;p=thirdparty%2Flibvirt.git
vhost-user: add support reconnect for vhost-user ports
For vhost-user ports, Open vSwitch acts as the server and QEMU the client.
When OVS crashed or restart, QEMU shoule be reconnect to OVS.
Signed-off-by: ZhiPeng Lu
Signed-off-by: Michal Privoznik
---
diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in
index 9ce4620c65..1602ed3e95 100644
--- a/docs/formatdomain.html.in
+++ b/docs/formatdomain.html.in
@@ -5673,7 +5673,7 @@ qemu-kvm -net nic,model=? /dev/null
</interface>
<interface type='vhostuser'>
<mac address='52:54:00:3b:83:1b'/>
- <source type='unix' path='/tmp/vhost2.sock' mode='client'/>
+ <source type='unix' path='/tmp/vhost2.sock' mode='client' reconnect='10'/>
<model type='virtio'/>
<driver queues='5'/>
</interface>
@@ -5689,6 +5689,9 @@ qemu-kvm -net nic,model=? /dev/null
are supported.
vhost-user requires the virtio model type, thus the
<model> element is mandatory.
+ Since 3.7.0 the element has an optional
+ attribute reconnect which configures reconnect timeout
+ (in seconds) if the connection is lost.