render / rpms / qemu

Forked from rpms/qemu 8 months ago
Clone

Blame qemu-virtio-Remove-duplicate-macro-definition-for-max.-v.patch

amitshah 99a9ef
From c11631e8bc91a1d1be2b89196e886a1385820dfb Mon Sep 17 00:00:00 2001
amitshah 99a9ef
From: Amit Shah <amit.shah@redhat.com>
amitshah 99a9ef
Date: Wed, 20 Jan 2010 00:36:51 +0530
amitshah 99a9ef
Subject: [PATCH 1/9] virtio: Remove duplicate macro definition for max. virtqueues, bump up the max
amitshah 99a9ef
amitshah 99a9ef
VIRTIO_PCI_QUEUE_MAX is redefined in hw/virtio.c. Let's just keep it in
amitshah 99a9ef
hw/virtio.h.
amitshah 99a9ef
amitshah 99a9ef
Also, bump up the value of the maximum allowed virtqueues to 64. This is
amitshah 99a9ef
in preparation to allow multiple ports per virtio-console device.
amitshah 99a9ef
amitshah 99a9ef
Signed-off-by: Amit Shah <amit.shah@redhat.com>
amitshah 99a9ef
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
amitshah 99a9ef
---
amitshah 99a9ef
 hw/virtio.c |    2 --
amitshah 99a9ef
 hw/virtio.h |    2 +-
amitshah 99a9ef
 2 files changed, 1 insertions(+), 3 deletions(-)
amitshah 99a9ef
amitshah 99a9ef
diff --git a/hw/virtio.c b/hw/virtio.c
amitshah 99a9ef
index cecd0dc..88f4e78 100644
amitshah 99a9ef
--- a/hw/virtio.c
amitshah 99a9ef
+++ b/hw/virtio.c
amitshah 99a9ef
@@ -75,8 +75,6 @@ struct VirtQueue
amitshah 99a9ef
     void (*handle_output)(VirtIODevice *vdev, VirtQueue *vq);
amitshah 99a9ef
 };
amitshah 99a9ef
 
amitshah 99a9ef
-#define VIRTIO_PCI_QUEUE_MAX        16
amitshah 99a9ef
-
amitshah 99a9ef
 /* virt queue functions */
amitshah 99a9ef
 static void virtqueue_init(VirtQueue *vq)
amitshah 99a9ef
 {
amitshah 99a9ef
diff --git a/hw/virtio.h b/hw/virtio.h
amitshah 99a9ef
index 35532a6..051910a 100644
amitshah 99a9ef
--- a/hw/virtio.h
amitshah 99a9ef
+++ b/hw/virtio.h
amitshah 99a9ef
@@ -90,7 +90,7 @@ typedef struct {
amitshah 99a9ef
     unsigned (*get_features)(void * opaque);
amitshah 99a9ef
 } VirtIOBindings;
amitshah 99a9ef
 
amitshah 99a9ef
-#define VIRTIO_PCI_QUEUE_MAX 16
amitshah 99a9ef
+#define VIRTIO_PCI_QUEUE_MAX 64
amitshah 99a9ef
 
amitshah 99a9ef
 #define VIRTIO_NO_VECTOR 0xffff
amitshah 99a9ef
 
amitshah 99a9ef
-- 
amitshah 99a9ef
1.6.2.5
amitshah 99a9ef