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 D0E5529CB; Fri, 2 Mar 2018 12:05:33 +0100 (CET) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C756940FB658; Fri, 2 Mar 2018 11:05:32 +0000 (UTC) Received: from [10.36.112.30] (ovpn-112-30.ams2.redhat.com [10.36.112.30]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 639DE2026E0E; Fri, 2 Mar 2018 11:05:31 +0000 (UTC) From: Maxime Coquelin To: Tomasz Kulasek , yliu@fridaylinux.org Cc: dev@dpdk.org, huawei.xie@intel.com, stable@dpdk.org, Dariusz Stojaczyk References: <20180209171049.7132-1-tomaszx.kulasek@intel.com> <75099b6d-b9ac-7edb-fd31-2bc4410390b4@redhat.com> Message-ID: Date: Fri, 2 Mar 2018 12:05:29 +0100 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: <75099b6d-b9ac-7edb-fd31-2bc4410390b4@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Fri, 02 Mar 2018 11:05:32 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Fri, 02 Mar 2018 11:05:32 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'maxime.coquelin@redhat.com' RCPT:'' Subject: Re: [dpdk-dev] [PATCH] vhost: fix close callfd on get vring base 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: Fri, 02 Mar 2018 11:05:34 -0000 Hi Tomasz, On 02/20/2018 10:09 AM, Maxime Coquelin wrote: > > > On 02/09/2018 06:10 PM, Tomasz Kulasek wrote: >> This prevents from destroying & recreating user device in "incomplete" >> vring state. virtio_is_ready() was returning true for devices with >> vrings which did not have valid callfd (their VHOST_USER_SET_VRING_CALL >> hasn't arrived yet) >> >> Fixes: 8f972312b8f4 ("vhost: support vhost-user") >> Cc:huawei.xie@intel.com >> Cc:stable@dpdk.org >> >> Signed-off-by: Dariusz Stojaczyk >> Signed-off-by: Tomasz Kulasek >> --- >>   lib/librte_vhost/vhost_user.c | 5 +++++ >>   1 file changed, 5 insertions(+) > > Reviewed-by: Maxime Coquelin > > and applied to dpdk-next-virtio/master. I reworded the title: vhost: cleanup device properly at stop time Let me know if this is fine to you Thanks, Maxime > Thanks, > Maxime