virtio-serial-bus: Bump up control vq buffers to 32

Submitted by Amit Shah on Nov. 23, 2010, 11:31 a.m.

Details

Message ID ac38c5858ed25027ffe112a7d79442eb8d33f3a5.1290511874.git.amit.shah@redhat.com
State New
Headers show

Commit Message

Amit Shah Nov. 23, 2010, 11:31 a.m.
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 <amit.shah@redhat.com>
---
 hw/virtio-serial-bus.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

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 */