> -----Original Message----- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Huawei Xie > Sent: Wednesday, May 27, 2015 11:02 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [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". >
Is this enough for vhost to support migrate VM? I remember Claire has another patch, possibly need refer to that patch. > Signed-off-by: Krishna Murthy <krishna.j.murthy at intel.com> > --- > 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 > 4672e67..fced2ab 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; > > > -- > 1.8.1.4