qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 6/8] virtio-serial: fill in the feature table


From: Jesse Larrew
Subject: [Qemu-devel] [PATCH 6/8] virtio-serial: fill in the feature table
Date: Mon, 18 Feb 2013 16:22:43 -0600

VIRTIO_CONSOLE_F_MULTIPORT is set when max_nr_ports > 1, so set the config
size to include max_nr_ports.

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

diff --git a/hw/virtio-serial-bus.c b/hw/virtio-serial-bus.c
index 9cd9fbd..00d06da 100644
--- a/hw/virtio-serial-bus.c
+++ b/hw/virtio-serial-bus.c
@@ -26,8 +26,8 @@
 #include "virtio-serial.h"
 
 static VirtIOFeature feature_sizes[] = {
-    {.flags = 0xffffffff, /* dummy table -- all features included. */
-     .end = sizeof(struct virtio_console_config)},
+    {.flags = 1 << VIRTIO_CONSOLE_F_MULTIPORT,
+     .end = endof(struct virtio_console_config, max_nr_ports)},
     {}
 };
 
-- 
1.7.11.7




reply via email to

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