1. 19 5月, 2017 1 次提交
    • D
      s390x/css: realize css_create_sch · 817d4a6b
      Dong Jia Shi 提交于
      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: NPierre Morel <pmorel@linux.vnet.ibm.com>
      Signed-off-by: NDong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
      Message-Id: <20170517004813.58227-6-bjsdjshi@linux.vnet.ibm.com>
      Signed-off-by: NCornelia Huck <cornelia.huck@de.ibm.com>
      817d4a6b
  2. 20 7月, 2016 1 次提交
  3. 11 7月, 2016 1 次提交
    • J
      s390x/css: Factor out virtual css bridge and bus · dd70bd0d
      Jing Liu 提交于
      Currently, common base layers virtual css bridge and bus are
      defined in hw/s390x/virtio-ccw.c(h). In order to support
      multiple types of devices in the virtual channel subsystem,
      especially non virtio-ccw, refactoring work needs to be done.
      
      This work is just a pure code move without any functional change
      except dropping an empty function virtual_css_bridge_init() and
      virtio_ccw_busdev_unplug() changing. virtio_ccw_busdev_unplug()
      is specific to virtio-ccw but gets referenced from the common
      virtual css bridge code. To keep the functional changes to a
      minimum we export this function from virtio-ccw.c and continue
      to reference it inside virtual_css_bridge_class_init()
      (now living in hw/s390x/css-bridge.c). A follow-up patch will
      clean this up.
      Signed-off-by: NJing Liu <liujbjl@linux.vnet.ibm.com>
      Reviewed-by: NSascha Silbe <silbe@linux.vnet.ibm.com>
      Reviewed-by: NDong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
      Signed-off-by: NCornelia Huck <cornelia.huck@de.ibm.com>
      dd70bd0d