From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Coquelin Subject: Re: [PATCH] vhost: do deep copy while reallocate vq Date: Tue, 16 Jan 2018 09:54:16 +0100 Message-ID: <3b349d35-cd2a-6b65-f07d-08f15d77d4b3@redhat.com> References: <1516015939-11266-1-git-send-email-junjie.j.chen@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org To: Junjie Chen , yliu@fridaylinux.org Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 9E78E3772 for ; Tue, 16 Jan 2018 09:54:20 +0100 (CET) In-Reply-To: <1516015939-11266-1-git-send-email-junjie.j.chen@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 01/15/2018 12:32 PM, Junjie Chen wrote: > When vhost reallocate dev and vq for NUMA enabled case, it doesn't perform > deep copy, which lead to 1) zmbuf list not valid 2) remote memory access. > This patch is to re-initlize the zmbuf list and also do the deep copy. > > Signed-off-by: Junjie Chen > --- > lib/librte_vhost/vhost_user.c | 31 +++++++++++++++++++++++++++++++ > 1 file changed, 31 insertions(+) > Reviewed-by: Maxime Coquelin Thanks, Maxime