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. 21 4月, 2017 1 次提交
    • F
      s390x: register I/O adapters per ISC during init · dde522bb
      Fei Li 提交于
      The I/O adapters should exist as soon as the bus/infrastructure
      exists, and not only when the guest is actually trying to do something
      with them. While the lazy allocation was not wrong, allocating at init
      time is cleaner, both for the architecture and the code. Let's adjust
      this by having each device type (currently for PCI and virtio-ccw)
      register the adapters for each ISC (as now we don't know which ISC the
      guest will use) as soon as it initializes.
      
      Use a two-dimensional array io_adapters[type][isc] to store adapters
      in ChannelSubSys, so that we can conveniently get the adapter id by
      the helper function css_get_adapter_id(type, isc).
      Signed-off-by: NFei Li <sherrylf@linux.vnet.ibm.com>
      Signed-off-by: NCornelia Huck <cornelia.huck@de.ibm.com>
      dde522bb
  3. 20 7月, 2016 1 次提交
  4. 11 7月, 2016 2 次提交