diff options
author | Dong Jia Shi | 2017-02-14 04:04:02 +0100 |
---|---|---|
committer | Cornelia Huck | 2017-04-21 09:32:09 +0200 |
commit | c35fc6aa1840b26f06f9ac79509c7ed9280003ac (patch) | |
tree | b5c9a28d740ef24be8868a19563984ac226d455b /hw/s390x/css.c | |
parent | s390x/pci: make printf always compile in debug output (diff) | |
download | qemu-c35fc6aa1840b26f06f9ac79509c7ed9280003ac.tar.gz qemu-c35fc6aa1840b26f06f9ac79509c7ed9280003ac.tar.xz qemu-c35fc6aa1840b26f06f9ac79509c7ed9280003ac.zip |
s390x/css: introduce read-only property type for device ids
Let's introduce a read-only property type that handles device ids of the
CssDevId type used for channel devices for future use. e.g. exposing the
busid of an I/O subchannel that is assigned to a ccw device.
Signed-off-by: Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'hw/s390x/css.c')
-rw-r--r-- | hw/s390x/css.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/s390x/css.c b/hw/s390x/css.c index 37caa98195..f966ce2d15 100644 --- a/hw/s390x/css.c +++ b/hw/s390x/css.c @@ -1894,6 +1894,13 @@ PropertyInfo css_devid_propinfo = { .set = set_css_devid, }; +PropertyInfo css_devid_ro_propinfo = { + .name = "str", + .description = "Read-only identifier of an I/O device in the channel " + "subsystem, example: fe.1.23ab", + .get = get_css_devid, +}; + SubchDev *css_create_virtual_sch(CssDevId bus_id, Error **errp) { uint16_t schid = 0; |