From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:41652) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2o94-0002Vp-CT for qemu-devel@nongnu.org; Sat, 18 Aug 2012 14:53:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T2o93-00028e-57 for qemu-devel@nongnu.org; Sat, 18 Aug 2012 14:53:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49848) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2o92-00028U-U8 for qemu-devel@nongnu.org; Sat, 18 Aug 2012 14:53:13 -0400 Message-ID: <502FE488.3000303@redhat.com> Date: Sat, 18 Aug 2012 20:52:56 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1344846917-7411-1-git-send-email-nab@linux-iscsi.org> <1344846917-7411-7-git-send-email-nab@linux-iscsi.org> <20120813090259.GJ14081@redhat.com> <1344975625.22433.88.camel@haakon2.linux-iscsi.org> In-Reply-To: <1344975625.22433.88.camel@haakon2.linux-iscsi.org> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC-v2 6/6] virtio-scsi: Fix incorrect VirtIOSCSI->cmd_vqs[0] definition List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Nicholas A. Bellinger" Cc: Stefan Hajnoczi , kvm-devel , "Michael S. Tsirkin" , Jan Kiszka , qemu-devel , lf-virt , Anthony Liguori , target-devel , Hannes Reinecke , Zhi Yong Wu , Christoph Hellwig Il 14/08/2012 22:20, Nicholas A. Bellinger ha scritto: >>> > > Since virtio_scsi currently assumes a single vqs for data, this patch >>> > > simply changes ->cmd_vqs[1] to handle the single VirtQueue. Wrong, multiqueue works just fine. :) It's just the kernel driver that doesn't support it yet. >>> > > Cc: Paolo Bonzini >>> > > Cc: Stefan Hajnoczi >>> > > Cc: Michael S. Tsirkin >>> > > Signed-off-by: Nicholas Bellinger >> > >> > This is a bugfix we need even without vhost, right? >> > > I believe so, as it appears to be stomping past the end of memory for > every virtio-scsi initialization regardless of vhost usage.. You just did a wrong merge. When commit d2ad7dd (virtio-scsi: add multiqueue capability, 2012-04-06) changed cmd_vq from pointer to array of pointers, you should have moved the following fields to the middle of the struct, just like that commit did. Paolo