From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45399) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0qLz-0000H0-2T for qemu-devel@nongnu.org; Mon, 13 Aug 2012 04:50:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T0qLw-0008OE-KO for qemu-devel@nongnu.org; Mon, 13 Aug 2012 04:50:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33959) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0qLw-0008O4-BR for qemu-devel@nongnu.org; Mon, 13 Aug 2012 04:50:24 -0400 Date: Mon, 13 Aug 2012 11:51:17 +0300 From: "Michael S. Tsirkin" Message-ID: <20120813085117.GG14081@redhat.com> References: <1344846917-7411-1-git-send-email-nab@linux-iscsi.org> <1344846917-7411-2-git-send-email-nab@linux-iscsi.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1344846917-7411-2-git-send-email-nab@linux-iscsi.org> Subject: Re: [Qemu-devel] [RFC-v2 1/6] msix: Work-around for vhost-scsi with KVM in-kernel MSI injection List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Nicholas A. Bellinger" Cc: Anthony Liguori , Stefan Hajnoczi , kvm-devel , Jan Kiszka , qemu-devel , Zhi Yong Wu , Anthony Liguori , target-devel , Hannes Reinecke , Paolo Bonzini , lf-virt , Christoph Hellwig On Mon, Aug 13, 2012 at 08:35:12AM +0000, Nicholas A. Bellinger wrote: > From: Nicholas Bellinger > > This is required to get past the following assert with: > > commit 1523ed9e1d46b0b54540049d491475ccac7e6421 > Author: Jan Kiszka > Date: Thu May 17 10:32:39 2012 -0300 > > virtio/vhost: Add support for KVM in-kernel MSI injection > > Cc: Stefan Hajnoczi > Cc: Jan Kiszka > Cc: Paolo Bonzini > Cc: Anthony Liguori > Signed-off-by: Nicholas Bellinger Could you please add a bit more explanation why this happens with virtio scsi and why this is valid? > --- > hw/msix.c | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/hw/msix.c b/hw/msix.c > index 800fc32..c1e6dc3 100644 > --- a/hw/msix.c > +++ b/hw/msix.c > @@ -544,6 +544,9 @@ void msix_unset_vector_notifiers(PCIDevice *dev) > { > int vector; > > + if (!dev->msix_vector_use_notifier && !dev->msix_vector_release_notifier) > + return; > + > assert(dev->msix_vector_use_notifier && > dev->msix_vector_release_notifier); > > -- > 1.7.2.5