diff options
author | Jing Liu | 2016-09-19 09:10:43 +0200 |
---|---|---|
committer | Cornelia Huck | 2017-05-04 10:34:37 +0200 |
commit | 6c15e9bfb687f40cc92759536ef2a918fb04349b (patch) | |
tree | d64cdf7abcede90f1a5709122e0886400a9c85ed /hw/s390x/Makefile.objs | |
parent | chardev: Basic support for TN3270 (diff) | |
download | qemu-6c15e9bfb687f40cc92759536ef2a918fb04349b.tar.gz qemu-6c15e9bfb687f40cc92759536ef2a918fb04349b.tar.xz qemu-6c15e9bfb687f40cc92759536ef2a918fb04349b.zip |
s390x/css: Add an algorithm to find a free chpid
This introduces a function named css_find_free_chpid() to find a
free channel path. Because virtio-ccw device used zero as its
channel path number, it would be sensible to skip the reserved one
and search upwards.
Signed-off-by: Jing Liu <liujbjl@linux.vnet.ibm.com>
Reviewed-by: QingFeng Hao <haoqf@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/Makefile.objs')
0 files changed, 0 insertions, 0 deletions