diff options
author | Markus Armbruster <armbru@redhat.com> | 2011-05-19 13:37:16 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-07-23 11:20:41 -0500 |
commit | d6cca4b048c5b63547d5c09fb47a10f0057b88bf (patch) | |
tree | c3fc8608da318ca9fa912bb1722cbe3d9de46895 /hw/virtio-serial-bus.c | |
parent | 021a1318604e0898cee3800d5b13033e68191f4e (diff) | |
download | hqemu-d6cca4b048c5b63547d5c09fb47a10f0057b88bf.zip hqemu-d6cca4b048c5b63547d5c09fb47a10f0057b88bf.tar.gz |
virtio-serial: Turn props any virtio-serial-bus device must have into bus props
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/virtio-serial-bus.c')
-rw-r--r-- | hw/virtio-serial-bus.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/virtio-serial-bus.c b/hw/virtio-serial-bus.c index e7e12f0..c5eb931 100644 --- a/hw/virtio-serial-bus.c +++ b/hw/virtio-serial-bus.c @@ -668,6 +668,11 @@ static struct BusInfo virtser_bus_info = { .name = "virtio-serial-bus", .size = sizeof(VirtIOSerialBus), .print_dev = virtser_bus_dev_print, + .props = (Property[]) { + DEFINE_PROP_UINT32("nr", VirtIOSerialPort, id, VIRTIO_CONSOLE_BAD_ID), + DEFINE_PROP_STRING("name", VirtIOSerialPort, name), + DEFINE_PROP_END_OF_LIST() + } }; static void virtser_bus_dev_print(Monitor *mon, DeviceState *qdev, int indent) |