diff options
author | Cornelia Huck | 2016-04-01 13:42:04 +0200 |
---|---|---|
committer | Cornelia Huck | 2016-06-14 13:34:50 +0200 |
commit | 06e686eaab344b1d38125e49abeb31a416428201 (patch) | |
tree | 1e90fe3dfbe9956b46698b8dc4ae56984454785f /hw/s390x/virtio-ccw.h | |
parent | s390x/css: clear IO irqs when generating IPI CRW (diff) | |
download | qemu-06e686eaab344b1d38125e49abeb31a416428201.tar.gz qemu-06e686eaab344b1d38125e49abeb31a416428201.tar.xz qemu-06e686eaab344b1d38125e49abeb31a416428201.zip |
s390x/css: introduce property type for device ids
Let's introduce a CssDevId to handle device ids of the xx.x.xxxx
type used for channel devices. This has some benefits:
- We can use them in virtio-ccw and split the validity checks for
a channel device id in general from the constraint checking
within the virtio-ccw scope.
- We can reuse the device id type for future non-virtio channel
devices.
While we're at it, improve the validity checks and disallow e.g.
trailing characters.
Suggested-by: Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
Acked-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Reviewed-by: Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'hw/s390x/virtio-ccw.h')
-rw-r--r-- | hw/s390x/virtio-ccw.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/s390x/virtio-ccw.h b/hw/s390x/virtio-ccw.h index 86b9edb18f..0bfb5d93c6 100644 --- a/hw/s390x/virtio-ccw.h +++ b/hw/s390x/virtio-ccw.h @@ -80,7 +80,7 @@ typedef struct VirtIOCCWDeviceClass { struct VirtioCcwDevice { DeviceState parent_obj; SubchDev *sch; - char *bus_id; + CssDevId bus_id; int revision; uint32_t max_rev; VirtioBusState bus; |