vhost: enable live migration
authorKrishna Murthy <krishna.j.murthy@intel.com>
Wed, 27 May 2015 03:01:31 +0000 (11:01 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 12 Jun 2015 15:07:24 +0000 (17:07 +0200)
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 <krishna.j.murthy@intel.com>
lib/librte_vhost/virtio-net.c

index 4672e67..fced2ab 100644 (file)
@@ -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;