* [Qemu-devel] [PATCH] virtio-serial-bus: Bump up control vq buffers to 32
@ 2010-11-23 11:31 Amit Shah
0 siblings, 0 replies; only message in thread
From: Amit Shah @ 2010-11-23 11:31 UTC (permalink / raw)
To: Anthony Liguori; +Cc: Amit Shah, qemu list
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(-)
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-11-23 11:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-23 11:31 [Qemu-devel] [PATCH] virtio-serial-bus: Bump up control vq buffers to 32 Amit Shah
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).