qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH] virtio-serial-bus: Bump up control vq buffers to 32


From: Amit Shah
Subject: [Qemu-devel] [PATCH] virtio-serial-bus: Bump up control vq buffers to 32
Date: Tue, 23 Nov 2010 17:01:15 +0530

The current default of 16 buffers for the control vq is too small.  We
can get more entries in there, example when asking the guest to add
max. allowed ports.

Signed-off-by: Amit Shah <address@hidden>
---
 hw/virtio-serial-bus.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/virtio-serial-bus.c b/hw/virtio-serial-bus.c
index 74ba5ec..c46d4a5 100644
--- a/hw/virtio-serial-bus.c
+++ b/hw/virtio-serial-bus.c
@@ -770,9 +770,9 @@ VirtIODevice *virtio_serial_init(DeviceState *dev, uint32_t 
max_nr_ports)
     vser->ovqs[0] = virtio_add_queue(vdev, 128, handle_output);
 
     /* control queue: host to guest */
-    vser->c_ivq = virtio_add_queue(vdev, 16, control_in);
+    vser->c_ivq = virtio_add_queue(vdev, 32, control_in);
     /* control queue: guest to host */
-    vser->c_ovq = virtio_add_queue(vdev, 16, control_out);
+    vser->c_ovq = virtio_add_queue(vdev, 32, control_out);
 
     for (i = 1; i < vser->bus->max_nr_ports; i++) {
         /* Add a per-port queue for host to guest transfers */
-- 
1.7.3.2




reply via email to

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