Skip to content

Commit d639996

Browse files
Yuanhan LiuThomas Monjalon
authored andcommitted
vhost: enable log_shmfd protocol feature
To claim that we support vhost-user live migration support: SET_LOG_BASE request will be send only when this feature flag is set. Besides this flag, we actually need another feature flag set to make vhost-user live migration work: VHOST_F_LOG_ALL. Which, however, has been enabled long time ago. Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com> Tested-by: Pavel Fedin <p.fedin@samsung.com>
1 parent 3322623 commit d639996

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

doc/guides/rel_notes/release_16_04.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ This section should contain new features added in this release. Sample format:
4444
Add the offload and negotiation of checksum and TSO between vhost-user and
4545
vanilla Linux virtio guest.
4646

47+
* **Added vhost-user live migration support.**
48+
4749

4850
Resolved Issues
4951
---------------

lib/librte_vhost/vhost_user/virtio-net-user.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,11 @@
3838
#include "vhost-net-user.h"
3939

4040
#define VHOST_USER_PROTOCOL_F_MQ 0
41+
#define VHOST_USER_PROTOCOL_F_LOG_SHMFD 1
4142
#define VHOST_USER_PROTOCOL_F_RARP 2
4243

4344
#define VHOST_USER_PROTOCOL_FEATURES ((1ULL << VHOST_USER_PROTOCOL_F_MQ) | \
45+
(1ULL << VHOST_USER_PROTOCOL_F_LOG_SHMFD) |\
4446
(1ULL << VHOST_USER_PROTOCOL_F_RARP))
4547

4648
int user_set_mem_table(struct vhost_device_ctx, struct VhostUserMsg *);

0 commit comments

Comments
 (0)