OSDN Git Service

s390x/css: realize css_sch_build_schib
authorXiao Feng Ren <renxiaof@linux.vnet.ibm.com>
Wed, 17 May 2017 00:48:04 +0000 (02:48 +0200)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Fri, 19 May 2017 10:29:01 +0000 (12:29 +0200)
commit8f3cf0128cbac1ac19be8515dc184edb88dd5fb1
treee5f849d2ec1acaff59b28f6144912baca63788b1
parent274250c30158f60aefb46088a7bb0d711061226c
s390x/css: realize css_sch_build_schib

The S390 virtual css support already has a mechanism to build a
virtual subchannel information block (schib) and provide virtual
subchannels to the guest. However, to pass-through subchannels to
a guest, we need to introduce a new mechanism to build its schib
according to the real device information. Thus we realize a new css
sch_build_schib function to extract the path_masks, chpids, chpid
type from sysfs. To reuse the existing code, we refactor
css_add_virtual_chpid to css_add_chpid.

Reviewed-by: Pierre Morel <pmorel@linux.vnet.ibm.com>
Signed-off-by: Xiao Feng Ren <renxiaof@linux.vnet.ibm.com>
Signed-off-by: Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
Message-Id: <20170517004813.58227-5-bjsdjshi@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
hw/s390x/css.c
include/hw/s390x/css.h