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 9A5A11B022; Tue, 20 Feb 2018 10:09:46 +0100 (CET) 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 1B8CB40FB647; Tue, 20 Feb 2018 09:09:46 +0000 (UTC) Received: from [10.36.112.55] (ovpn-112-55.ams2.redhat.com [10.36.112.55]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C504F213AEE2; Tue, 20 Feb 2018 09:09:44 +0000 (UTC) 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> From: Maxime Coquelin Message-ID: <75099b6d-b9ac-7edb-fd31-2bc4410390b4@redhat.com> Date: Tue, 20 Feb 2018 10:09:40 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180209171049.7132-1-tomaszx.kulasek@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.7]); Tue, 20 Feb 2018 09:09:46 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Tue, 20 Feb 2018 09:09:46 +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] 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: Tue, 20 Feb 2018 09:09:46 -0000 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. Thanks, Maxime