From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by dpdk.org (Postfix) with ESMTP id 3391D4CBD for ; Sat, 31 Mar 2018 09:39:37 +0200 (CEST) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B6E55722E6; Sat, 31 Mar 2018 07:39:36 +0000 (UTC) Received: from [10.36.112.16] (ovpn-112-16.ams2.redhat.com [10.36.112.16]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5BB59215CDC8; Sat, 31 Mar 2018 07:39:33 +0000 (UTC) To: Zhihong Wang , dev@dpdk.org Cc: jianfeng.tan@intel.com, tiwei.bie@intel.com, yliu@fridaylinux.org, cunming.liang@intel.com, xiao.w.wang@intel.com, dan.daly@intel.com References: <1517614137-62926-1-git-send-email-zhihong.wang@intel.com> <20180310100148.12030-1-zhihong.wang@intel.com> <20180310100148.12030-6-zhihong.wang@intel.com> From: Maxime Coquelin Message-ID: <994e7283-d2df-7420-de05-849351bdc50a@redhat.com> Date: Sat, 31 Mar 2018 09:39:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180310100148.12030-6-zhihong.wang@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Sat, 31 Mar 2018 07:39:36 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Sat, 31 Mar 2018 07:39:36 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'maxime.coquelin@redhat.com' RCPT:'' Subject: Re: [dpdk-dev] [PATCH v4 5/5] vhost: add apis for live migration X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Mar 2018 07:39:37 -0000 On 03/10/2018 11:01 AM, Zhihong Wang wrote: > This patch adds APIs to enable live migration for non-builtin data paths. > > At src side, last_avail/used_idx from the device need to be set into the > virtio_net structure, and the log_base and log_size from the virtio_net > structure need to be set into the device. > > At dst side, last_avail/used_idx need to be read from the virtio_net > structure and set into the device. > > Signed-off-by: Zhihong Wang > --- > lib/librte_vhost/rte_vhost.h | 51 +++++++++++++++++++++++++++ > lib/librte_vhost/rte_vhost_version.map | 3 ++ > lib/librte_vhost/vhost.c | 63 ++++++++++++++++++++++++++++++++++ > 3 files changed, 117 insertions(+) > Reviewed-by: Maxime Coquelin Thanks, Maxime