| Submitter | Jesse Larrew |
|---|---|
| Date | Feb. 19, 2013, 11:04 p.m. |
| Message ID | <1361315093-19383-7-git-send-email-jlarrew@linux.vnet.ibm.com> |
| Download | mbox | patch |
| Permalink | /patch/221920/ |
| State | New |
| Headers | show |
Comments
Patch
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)}, {} };
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 <jlarrew@linux.vnet.ibm.com> --- hw/virtio-serial-bus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)