[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
- [Qemu-devel] [PATCH 0/8] virtio: set config size using host features, Jesse Larrew, 2013/02/18
- [Qemu-devel] [PATCH 1/8] virtio-net: replace redundant config_size field with config_len, Jesse Larrew, 2013/02/18
- [Qemu-devel] [PATCH 8/8] virtio-blk: fill in the feature table, Jesse Larrew, 2013/02/18
- [Qemu-devel] [PATCH 6/8] virtio-serial: fill in the feature table,
Jesse Larrew <=
- [Qemu-devel] [PATCH 7/8] virtio-scsi: fill in table of feature sizes, Jesse Larrew, 2013/02/18
- [Qemu-devel] [PATCH 2/8] virtio: put struct VirtIOFeature in a header, Jesse Larrew, 2013/02/18
- [Qemu-devel] [PATCH 4/8] virtio: set config size using host features, Jesse Larrew, 2013/02/18
- [Qemu-devel] [PATCH 5/8] virtio-balloon: fill in the table of feature_sizes, Jesse Larrew, 2013/02/18
- [Qemu-devel] [PATCH 3/8] virtio: pass host features to driver init functions, Jesse Larrew, 2013/02/18
- Re: [Qemu-devel] [PATCH 0/8] virtio: set config size using host features, Anthony Liguori, 2013/02/19