OSDN Git Service

s390x/css: realize css_create_sch
authorDong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
Wed, 17 May 2017 00:48:05 +0000 (02:48 +0200)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Fri, 19 May 2017 10:29:01 +0000 (12:29 +0200)
commit817d4a6bc8bc6c2ad57ffdbab1a33c9b930ddde4
tree40fef78b854e5ec1f3d4c29b04636afa3cf9152d
parent8f3cf0128cbac1ac19be8515dc184edb88dd5fb1
s390x/css: realize css_create_sch

The S390 virtual css support already has a mechanism to create a
virtual subchannel and provide it to the guest. However, to
pass-through subchannels to a guest, we need to introduce a new
mechanism to create the subchannel according to the real device
information. Thus we reconstruct css_create_virtual_sch to a new
css_create_sch function to handle all these cases and do allocation
and initialization of the subchannel according to the device type
and machine configuration.

Reviewed-by: Pierre Morel <pmorel@linux.vnet.ibm.com>
Signed-off-by: Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
Message-Id: <20170517004813.58227-6-bjsdjshi@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
hw/s390x/3270-ccw.c
hw/s390x/css-bridge.c
hw/s390x/css.c
hw/s390x/s390-virtio-ccw.c
hw/s390x/virtio-ccw.c
include/hw/s390x/css-bridge.h
include/hw/s390x/css.h