From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NSmra-00041q-Pt for qemu-devel@nongnu.org; Thu, 07 Jan 2010 02:32:58 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NSmrW-0003sr-1L for qemu-devel@nongnu.org; Thu, 07 Jan 2010 02:32:58 -0500 Received: from [199.232.76.173] (port=59376 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NSmrV-0003sa-Tn for qemu-devel@nongnu.org; Thu, 07 Jan 2010 02:32:53 -0500 Received: from mx1.redhat.com ([209.132.183.28]:6290) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NSmrV-0004nX-4a for qemu-devel@nongnu.org; Thu, 07 Jan 2010 02:32:53 -0500 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o077WqR0014049 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 7 Jan 2010 02:32:52 -0500 From: Amit Shah Date: Thu, 7 Jan 2010 13:01:39 +0530 Message-Id: <1262849506-27132-2-git-send-email-amit.shah@redhat.com> In-Reply-To: <1262849506-27132-1-git-send-email-amit.shah@redhat.com> References: <1262849506-27132-1-git-send-email-amit.shah@redhat.com> Subject: [Qemu-devel] [PATCH 1/8] virtio: Remove duplicate macro definition for max. virtqueues, bump up the max List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Amit Shah VIRTIO_PCI_QUEUE_MAX is redefined in hw/virtio.c. Let's just keep it in hw/virtio.h. Also, bump up the value of the maximum allowed virtqueues to 64. This is in preparation to allow multiple ports per virtio-console device. Signed-off-by: Amit Shah --- hw/virtio.c | 2 -- hw/virtio.h | 2 +- 2 files changed, 1 insertions(+), 3 deletions(-) diff --git a/hw/virtio.c b/hw/virtio.c index cecd0dc..88f4e78 100644 --- a/hw/virtio.c +++ b/hw/virtio.c @@ -75,8 +75,6 @@ struct VirtQueue void (*handle_output)(VirtIODevice *vdev, VirtQueue *vq); }; -#define VIRTIO_PCI_QUEUE_MAX 16 - /* virt queue functions */ static void virtqueue_init(VirtQueue *vq) { diff --git a/hw/virtio.h b/hw/virtio.h index 35532a6..051910a 100644 --- a/hw/virtio.h +++ b/hw/virtio.h @@ -90,7 +90,7 @@ typedef struct { unsigned (*get_features)(void * opaque); } VirtIOBindings; -#define VIRTIO_PCI_QUEUE_MAX 16 +#define VIRTIO_PCI_QUEUE_MAX 64 #define VIRTIO_NO_VECTOR 0xffff -- 1.6.2.5