From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Coquelin Subject: Re: [PATCH v4 07/10] net/ifc: add devarg for LM mode Date: Sun, 16 Dec 2018 10:21:00 +0100 Message-ID: References: <20181213100910.13087-2-xiao.w.wang@intel.com> <20181214211612.167681-1-xiao.w.wang@intel.com> <20181214211612.167681-8-xiao.w.wang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: alejandro.lucero@netronome.com, dev@dpdk.org, zhihong.wang@intel.com, xiaolong.ye@intel.com To: Xiao Wang , tiwei.bie@intel.com Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id C005A1B9BD for ; Sun, 16 Dec 2018 10:21:05 +0100 (CET) In-Reply-To: <20181214211612.167681-8-xiao.w.wang@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 12/14/18 10:16 PM, Xiao Wang wrote: > This patch series enables a new method for live migration, i.e. software > assisted live migration. This patch provides a device argument for user > to choose the methold. > > When "swlm=1", driver/device will do live migration with a relay thread > dealing with dirty page logging. Without this parameter, device will do > dirty page logging and there's no relay thread consuming CPU resource. > > Signed-off-by: Xiao Wang > --- > drivers/net/ifc/ifcvf_vdpa.c | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/drivers/net/ifc/ifcvf_vdpa.c b/drivers/net/ifc/ifcvf_vdpa.c > index c0e50354a..395c5112f 100644 > --- a/drivers/net/ifc/ifcvf_vdpa.c > +++ b/drivers/net/ifc/ifcvf_vdpa.c > @@ -8,6 +8,7 @@ > #include > #include > #include > +#include > > #include > #include > @@ -31,9 +32,11 @@ > #endif > > #define IFCVF_VDPA_MODE "vdpa" > +#define IFCVF_SW_FALLBACK_LM "swlm" The patch looks good, except that I don't like the "swlm" name. Maybe we could have something less obscure, even if a little bt longer? What about "sw-live-migration"?