Received: from eggs.gnu.org ([2001:4830:134:3::10]:56604) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAocx-0002eF-A4 for qemu-devel@nongnu.org; Fri, 25 Jul 2014 19:10:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XAocr-0001LX-0H for qemu-devel@nongnu.org; Fri, 25 Jul 2014 19:10:15 -0400 Message-ID: <1406329806.16431.34.camel@haakon3.risingtidesystems.com> From: "Nicholas A. Bellinger" Date: Fri, 25 Jul 2014 16:10:06 -0700 In-Reply-To: References: <1403093631-7384-1-git-send-email-ming.lei@canonical.com> <53A1860E.6040304@redhat.com> <53A1A9ED.5040500@redhat.com> <53A1AB0E.60906@redhat.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] virtio-scsi: fix object check failure List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ming Lei Cc: Peter Maydell , "Michael S. Tsirkin" , qemu-stable@nongnu.org, qemu-devel@nongnu.org, Anthony Liguori , Paolo Bonzini Hi Ming & Paolo, On Wed, 2014-06-18 at 23:11 +0800, Ming Lei wrote: > On Wed, Jun 18, 2014 at 11:06 PM, Paolo Bonzini wrote: > > Il 18/06/2014 17:02, Paolo Bonzini ha scritto: > > > >> Il 18/06/2014 16:18, Ming Lei ha scritto: > >>>> > >>>> > This should never be triggered by vhost-scsi. Perhaps a bug in the > >>>> kernel? > >>> > >>> It can be triggered with rmmod, system suspend, reboot... > >> > >> > >> Yes, but it should not. > >> > >> What happens if you change VHOST_SCSI_VQ_NUM_FIXED from 2 to 3? > > > > > > Sorry, brain fart here. The number of interrupts in virtio-scsi is queues+3 > > because of the configuration interrupt. This does not apply here. > > > > Anyway, vhost-scsi passes the number of virtqueues correctly to the kernel. > > > > QEMU might be triggering this because, when vhost is stopped, the queue is > > still not empty (as expected, since it's a receive queue). > > > > Can you check that this is the case? > > Yes, that is the case. > > > > > If so, patching QEMU is correct, but you need to change VIRTIO_SCSI(vdev) to > > VIRTIO_SCSI_COMMON(vdev), and move events_dropped from VirtIOSCSI to > > VirtIOSCSICommon. > > This approach should be better. Just curious if this patch was picked up by upstream yet, and if it needs to be CC'd to stable for vhost-scsi code in >= v1.5.y ..? Thanks, --nab