qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 1/8] virtio: Remove duplicate macro definition f


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH 1/8] virtio: Remove duplicate macro definition for max. virtqueues, bump up the max
Date: Wed, 20 Jan 2010 08:56:02 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-4.fc12 Lightning/1.0pre Thunderbird/3.0

On 01/19/2010 01:06 PM, Amit Shah wrote:
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<address@hidden>

Applied.  Thanks.

Regards,

Anthony Liguori
---
  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 fa7184a..7c020a3 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 3994cc9..7b2b327 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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]