From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2] vhost-user: fix enabling of queue pair Date: Tue, 24 Nov 2015 21:29:04 +0100 Message-ID: <14789443.hoUPLFMsZ2@xps13> References: <1448026465-27460-1-git-send-email-victork@redhat.com> <1448349935-1935-1-git-send-email-yuanhan.liu@linux.intel.com> <20151124094106-mutt-send-email-victork@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Victor Kaplansky Return-path: Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by dpdk.org (Postfix) with ESMTP id 3AAAF8E81 for ; Tue, 24 Nov 2015 21:30:23 +0100 (CET) Received: by wmvv187 with SMTP id v187so227663945wmv.1 for ; Tue, 24 Nov 2015 12:30:23 -0800 (PST) In-Reply-To: <20151124094106-mutt-send-email-victork@redhat.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2015-11-24 09:43, Victor Kaplansky: > Yuanhan, looks fine. Thanks for handling this. > -- Victor > > On Tue, Nov 24, 2015 at 03:25:35PM +0800, Yuanhan Liu wrote: > > From: Victor Kaplansky > > > > The VHOST_USER_SET_VRING_ENABLE request was sent for each queue-pair. > > However, it's changed to be sent per queue in the queue-pair by QEMU > > commit dc3db6ad ("vhost-user: start/stop all rings"). The change > > is reasonable, as we send all other request per queue, instead of > > queue-pair. > > > > Hence we should do proper changes to adapt to the QEMU change here. > > Otherwise, a segfault will be triggered when last TX queue was enabled. > > > > [ commit log reword -- Yuanhan Liu ] > > > > Signed-off-by: Victor Kaplansky > > Acked-by: Yuanhan Liu > > --- > > > > v2: invoke vring_state_changed() callback per-vring as well > > > > This fixes a fatal issue, without that MQ will not work properly. > > Seems that Victor is busy at something else (or out of office so > > far), hence I sent v2 on behalf of him. Applied, thanks