From f75f65abf3158b31d5ae6fcf3807b534eb188848 Mon Sep 17 00:00:00 2001 From: Krishna Murthy Date: Wed, 27 May 2015 11:01:31 +0800 Subject: [PATCH] vhost: enable live migration When we migrate VM, without this feature, qemu will report error: "migrate: Migration disabled: vhost lacks VHOST_F_LOG_ALL feature". Signed-off-by: Krishna Murthy --- lib/librte_vhost/virtio-net.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/librte_vhost/virtio-net.c b/lib/librte_vhost/virtio-net.c index 4672e67cb4..fced2ab98c 100644 --- a/lib/librte_vhost/virtio-net.c +++ b/lib/librte_vhost/virtio-net.c @@ -66,7 +66,8 @@ static struct virtio_net_config_ll *ll_root; /* Features supported by this lib. */ #define VHOST_SUPPORTED_FEATURES ((1ULL << VIRTIO_NET_F_MRG_RXBUF) | \ (1ULL << VIRTIO_NET_F_CTRL_VQ) | \ - (1ULL << VIRTIO_NET_F_CTRL_RX)) + (1ULL << VIRTIO_NET_F_CTRL_RX) | \ + (1ULL << VHOST_F_LOG_ALL)) static uint64_t VHOST_FEATURES = VHOST_SUPPORTED_FEATURES; -- 2.20.1