]> Git Repo - qemu.git/commit - hw/s390x/css.c
s390x/css: Add an algorithm to find a free chpid
authorJing Liu <[email protected]>
Mon, 19 Sep 2016 07:10:43 +0000 (09:10 +0200)
committerCornelia Huck <[email protected]>
Thu, 4 May 2017 08:34:37 +0000 (10:34 +0200)
commit6c15e9bfb687f40cc92759536ef2a918fb04349b
treed64cdf7abcede90f1a5709122e0886400a9c85ed
parentae92cbd542086a508343dd88fd3b980f3be1b3af
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 <[email protected]>
Reviewed-by: QingFeng Hao <[email protected]>
Reviewed-by: Dong Jia Shi <[email protected]>
Signed-off-by: Cornelia Huck <[email protected]>
hw/s390x/css.c
include/hw/s390x/css.h
This page took 0.024791 seconds and 4 git commands to generate.