Received: from eggs.gnu.org ([2001:4830:134:3::10]:48909) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTrqc-0004fP-Aa for qemu-devel@nongnu.org; Fri, 06 Mar 2015 07:59:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YTrqZ-0002MZ-21 for qemu-devel@nongnu.org; Fri, 06 Mar 2015 07:59:22 -0500 Received: from e06smtp13.uk.ibm.com ([195.75.94.109]:35893) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTrqY-0002MV-PP for qemu-devel@nongnu.org; Fri, 06 Mar 2015 07:59:19 -0500 Received: from /spool/local by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 6 Mar 2015 12:29:00 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id 4377A219005C for ; Fri, 6 Mar 2015 12:28:50 +0000 (GMT) Received: from d06av05.portsmouth.uk.ibm.com (d06av05.portsmouth.uk.ibm.com [9.149.37.229]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t26CSw3m4915480 for ; Fri, 6 Mar 2015 12:28:58 GMT Received: from d06av05.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av05.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t26CSwS9025426 for ; Fri, 6 Mar 2015 05:28:58 -0700 Date: Fri, 6 Mar 2015 13:28:55 +0100 From: Cornelia Huck Message-ID: <20150306132855.4af24602.cornelia.huck@de.ibm.com> In-Reply-To: <1425534531-6305-9-git-send-email-jasowang@redhat.com> References: <1425534531-6305-1-git-send-email-jasowang@redhat.com> <1425534531-6305-9-git-send-email-jasowang@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH V3 08/14] virtio-pci: switch to use bus specific queue limit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jason Wang Cc: qemu-devel@nongnu.org, Anthony Liguori , "Michael S. Tsirkin" On Thu, 5 Mar 2015 13:48:45 +0800 Jason Wang wrote: > Instead of depending on a macro, switch to use a bus specific queue > limit. > > Cc: Anthony Liguori > Cc: Michael S. Tsirkin > Signed-off-by: Jason Wang > --- > hw/virtio/virtio-pci.c | 12 +++++++----- > include/hw/virtio/virtio.h | 1 - > 2 files changed, 7 insertions(+), 6 deletions(-) > > diff --git a/include/hw/virtio/virtio.h b/include/hw/virtio/virtio.h > index 04ad532..9a81edf 100644 > --- a/include/hw/virtio/virtio.h > +++ b/include/hw/virtio/virtio.h > @@ -92,7 +92,6 @@ typedef struct VirtQueueElement > struct iovec out_sg[VIRTQUEUE_MAX_SIZE]; > } VirtQueueElement; > > -#define VIRTIO_PCI_QUEUE_MAX 64 > #define VIRTIO_CCW_QUEUE_MAX 64 This hunk makes me think that the ccw limit shouldn't have been added here :) > > #define VIRTIO_NO_VECTOR 0xffff