aboutsummaryrefslogtreecommitdiff
path: root/hw/s390x/ccw-device.c
diff options
context:
space:
mode:
authorDong Jia Shi <bjsdjshi@linux.vnet.ibm.com>2017-02-15 06:33:03 +0100
committerCornelia Huck <cornelia.huck@de.ibm.com>2017-04-21 09:32:09 +0200
commit2a78ac660f460edd60eb514c589c512c0f491c46 (patch)
tree302835bfc8929b7587fa152f31dec4ab69d862a8 /hw/s390x/ccw-device.c
parentd8d98db5f07d0a472308c70c3becb56888df156d (diff)
downloadqemu-2a78ac660f460edd60eb514c589c512c0f491c46.zip
qemu-2a78ac660f460edd60eb514c589c512c0f491c46.tar.gz
qemu-2a78ac660f460edd60eb514c589c512c0f491c46.tar.bz2
s390x/css: consolidate the devno property for ccw devices
'devno' should rather be a property of the ccw device, instead of a property of a specific virtio-ccw device. Let's consolidate it. While we are at here, also rename CcwDevice.bus_id to CcwDevice.devno to make things clearer. 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/ccw-device.c')
-rw-r--r--hw/s390x/ccw-device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/s390x/ccw-device.c b/hw/s390x/ccw-device.c
index 8fe3cf4..fb8d640 100644
--- a/hw/s390x/ccw-device.c
+++ b/hw/s390x/ccw-device.c
@@ -34,6 +34,7 @@ static void ccw_device_realize(CcwDevice *dev, Error **errp)
}
static Property ccw_device_properties[] = {
+ DEFINE_PROP_CSS_DEV_ID("devno", CcwDevice, devno),
DEFINE_PROP_CSS_DEV_ID_RO("dev_id", CcwDevice, dev_id),
DEFINE_PROP_CSS_DEV_ID_RO("subch_id", CcwDevice, subch_id),
DEFINE_PROP_END_OF_LIST(),