From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 770B912A8 for ; Mon, 1 Jun 2015 06:48:00 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP; 31 May 2015 21:47:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,530,1427785200"; d="scan'208";a="734726225" Received: from pgsmsx105.gar.corp.intel.com ([10.221.44.96]) by fmsmga002.fm.intel.com with ESMTP; 31 May 2015 21:47:58 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by PGSMSX105.gar.corp.intel.com (10.221.44.96) with Microsoft SMTP Server (TLS) id 14.3.224.2; Mon, 1 Jun 2015 12:47:57 +0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.109]) by SHSMSX101.ccr.corp.intel.com ([10.239.4.153]) with mapi id 14.03.0224.002; Mon, 1 Jun 2015 12:47:56 +0800 From: "Ouyang, Changchun" To: "Xie, Huawei" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] vhost: enable live migration Thread-Index: AQHQmCmOT08no0lEMkG8nUJf0LEf+Z2XCI1w Date: Mon, 1 Jun 2015 04:47:55 +0000 Message-ID: References: <1432695691-22360-1-git-send-email-huawei.xie@intel.com> In-Reply-To: <1432695691-22360-1-git-send-email-huawei.xie@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] vhost: enable live migration X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jun 2015 04:48:01 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Huawei Xie > Sent: Wednesday, May 27, 2015 11:02 AM > To: dev@dpdk.org > Subject: [dpdk-dev] [PATCH] vhost: enable live migration >=20 > When we migrate VM, without this feature, qemu will report error: > "migrate: Migration disabled: vhost lacks VHOST_F_LOG_ALL feature". >=20 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 > --- > lib/librte_vhost/virtio-net.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > 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 =3D VHOST_SUPPORTED_FEATURES; >=20 >=20 > -- > 1.8.1.4