diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2016-06-06 18:45:05 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2016-06-17 03:28:03 +0300 |
commit | a463215b087c41d7ca94e51aa347cde523831873 (patch) | |
tree | bca18864edceaed45e3946a588e8ad1d1665b92e /include/net/vhost-user.h | |
parent | 72b65f922b7b925ed67847017dcd0539e49d925f (diff) | |
download | qemu-a463215b087c41d7ca94e51aa347cde523831873.zip qemu-a463215b087c41d7ca94e51aa347cde523831873.tar.gz qemu-a463215b087c41d7ca94e51aa347cde523831873.tar.bz2 |
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-user.h')
-rw-r--r-- | include/net/vhost-user.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/vhost-user.h b/include/net/vhost-user.h index 85109f6..efae35d 100644 --- a/include/net/vhost-user.h +++ b/include/net/vhost-user.h @@ -13,5 +13,6 @@ struct vhost_net; struct vhost_net *vhost_user_get_vhost_net(NetClientState *nc); +uint64_t vhost_user_get_acked_features(NetClientState *nc); #endif /* VHOST_USER_H_ */ |