From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 30F292935; Fri, 28 Apr 2017 06:32:47 +0200 (CEST) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga105.fm.intel.com with ESMTP; 27 Apr 2017 21:32:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,387,1488873600"; d="scan'208";a="95156106" Received: from yliu-dev.sh.intel.com (HELO yliu-dev) ([10.239.67.162]) by fmsmga006.fm.intel.com with ESMTP; 27 Apr 2017 21:32:44 -0700 Date: Fri, 28 Apr 2017 12:29:17 +0800 From: Yuanhan Liu To: Maxime Coquelin Cc: Zhiyong Yang , dev@dpdk.org, ciara.loftus@intel.com, stable@dpdk.org Message-ID: <20170428042917.GN11512@yliu-dev.sh.intel.com> References: <1493274893-40764-1-git-send-email-zhiyong.yang@intel.com> <1493286083-53632-1-git-send-email-zhiyong.yang@intel.com> <9dd4408d-0d01-5e44-06e9-8dca15bf18f8@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9dd4408d-0d01-5e44-06e9-8dca15bf18f8@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-stable] [PATCH v2] vhost: workaround MQ fails to startup X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2017 04:32:48 -0000 On Thu, Apr 27, 2017 at 12:00:52PM +0200, Maxime Coquelin wrote: > > > On 04/27/2017 11:41 AM, Zhiyong Yang wrote: > > vhost since dpdk17.02 + qemu2.7 and above will cause failures of > >new connection when negotiating to set MQ. (one queue pair works > >well). > > Because there exist some bugs in qemu code when introducing > >VHOST_USER_PROTOCOL_F_REPLY_ACK to qemu. when dealing with the vhost > >message VHOST_USER_SET_MEM_TABLE for the second time, qemu indeed > >doesn't send the messge (The message needs to be sent only once)but > >still will be waiting for dpdk's reply ack, then, qemu is always > >freezing. DPDK code indeed works in the right way. > > The feature VHOST_USER_PROTOCOL_F_REPLY_ACK has to be disabled > >by default at the dpdk side in order to avoid the feature support of > >DPDK + qemu at the same time. if doing like that, MQ can works well. > > > >Cc: stable@dpdk.org > > > >Reported-by: Ciara Loftus > >Signed-off-by: Zhiyong Yang > >Tested-by: Ciara Loftus > >--- > > > >changes in V2 > >1. modify "workaround" instead of "fix" in the title. > >2. add a simple comment suggested by yuanhan > > > > lib/librte_vhost/vhost_user.h | 6 +++++- > > 1 file changed, 5 insertions(+), 1 deletion(-) > > > > Reviewed-by: Maxime Coquelin Applied to dpdk-next-virtio. Thanks. --yliu