summaryrefslogtreecommitdiffstats
path: root/include/net/vhost_net.h
diff options
context:
space:
mode:
authorMarc-André Lureau2016-06-06 18:45:05 +0200
committerMichael S. Tsirkin2016-06-17 02:28:03 +0200
commita463215b087c41d7ca94e51aa347cde523831873 (patch)
treebca18864edceaed45e3946a588e8ad1d1665b92e /include/net/vhost_net.h
parentvhost-net: do not crash if backend is not present (diff)
downloadqemu-a463215b087c41d7ca94e51aa347cde523831873.tar.gz
qemu-a463215b087c41d7ca94e51aa347cde523831873.tar.xz
qemu-a463215b087c41d7ca94e51aa347cde523831873.zip
vhost-net: save & restore vhost-user acked features
The initial vhost-user connection sets the features to be negotiated with the driver. Renegotiation isn't possible without device reset. To handle reconnection of vhost-user backend, ensure the same set of features are provided, and reuse already acked features. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Tested-by: Yuanhan Liu <yuanhan.liu@linux.intel.com> Reviewed-by: Yuanhan Liu <yuanhan.liu@linux.intel.com> Reviewed-by: Victor Kaplansky <victork@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/net/vhost_net.h')
-rw-r--r--include/net/vhost_net.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/vhost_net.h b/include/net/vhost_net.h
index 3389b410d8..0bd48770d8 100644
--- a/include/net/vhost_net.h
+++ b/include/net/vhost_net.h
@@ -31,4 +31,7 @@ int vhost_net_notify_migration_done(VHostNetState *net, char* mac_addr);
VHostNetState *get_vhost_net(NetClientState *nc);
int vhost_set_vring_enable(NetClientState * nc, int enable);
+
+uint64_t vhost_net_get_acked_features(VHostNetState *net);
+
#endif