From c35fc6aa1840b26f06f9ac79509c7ed9280003ac Mon Sep 17 00:00:00 2001 From: Dong Jia Shi Date: Tue, 14 Feb 2017 04:04:02 +0100 Subject: 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 Signed-off-by: Cornelia Huck --- hw/s390x/css.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'hw') diff --git a/hw/s390x/css.c b/hw/s390x/css.c index 37caa98..f966ce2 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; -- cgit v1.1