Managing input/output subsystem images of an input/output subsystem

Abstract
An input/output subsystem is configured as a plurality of input/output subsystem images, each of which appears to a program as an independent input/output subsystem. One or more input/output subsystem images of the plurality of input/output subsystem images are managed. An aspect of this management includes managing an input/output (I/O) configuration of an input/output subsystem image. This management may be performed dynamically.
Description


TECHNICAL FIELD

[0007] This invention relates, in general, to input/output (I/O) processing, and in particular, to extending the functionality of input/output subsystems used in I/O processing.



BACKGROUND OF THE INVENTION

[0008] In various computing systems, such as the eServer zSeries, S/370-XA, ESA/370 and ESA/390 systems, offered by International Business Machines Corporation, Armonk, N.Y., each system footprint, referred to as a central processing complex (CPC), is limited to a maximum configuration of 256 I/O paths, such as, for example, 256 channel paths. One of the reasons for the constraint is that the unique identifier for each channel path configured to the CPC, referred to as the Channel Path Identifier (CHPID), is defined as an 8-bit binary number, which provides 256 unique CHPID values from zero to 255. Since this value is only 8-bits, only 256 paths with unique identifications are possible. One solution is to increase the size of the CHPID; however, this has serious consequences for the many programs that use the CHPID.


[0009] This 256-channel path limitation has restricted the ability to provide significant increases in the overall CPC in terms of the maximum processing capacity of the central processors provided by the CPC. Further, computing systems are being created in which the total computing capacity of the systems is increasing past the point where 256 channel paths are sufficient in order to provide adequate I/O bandwidth and VO configuration flexibility necessary to fully utilize the increased numbers of central processors.


[0010] Thus, a need exists for a capability to extend the functionality of an input/output subsystem. In one example, a need exists for a facility that can provide more than 256 I/O paths in a manner that is minimally disruptive to the programs using the paths.



SUMMARY OF THE INVENTION

[0011] The shortcomings of the prior art are overcome and additional advantages are provided through the provision of a method of providing management within a computing environment. The method includes, for instance, obtaining an input/output subsystem of the computing environment, the input/output subsystem including a plurality of input/output subsystem images, wherein an input/output subsystem image appears to a program as an independent input/output subsystem; and managing one or more input/output subsystem images of the plurality of input/output subsystem images.


[0012] In one example, the managing includes managing an I/O configuration of an input/output subsystem image of the one or more input/output subsystem images.


[0013] In a further embodiment, the managing includes managing utilization of an input/output subsystem image of the one or more input/output subsystem images. The managing utilization includes specifying the input/output subsystem image to be utilized. The specifying includes employing an input/output subsystem identifier.


[0014] System and computer program products corresponding to the above-summarized methods are also described and claimed herein.


[0015] Additional features and advantages are realized through the techniques of the present invention. Other embodiments and aspects of the invention are described in detail herein and are considered a part of the claimed invention.







BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The subject matter which is regarded as the invention is particularly pointed out and distinctly claimed in the claims at the conclusion of the specification. The foregoing and other objects, features, and advantages of the invention are apparent from the following detailed description taken in conjunction with the accompanying drawings in which:


[0017]
FIG. 1

a
depicts one embodiment of a computing environment to incorporate and use one or more aspects of the present invention;


[0018]
FIG. 1

b
depicts one example of an I/O path (e.g., a channel path) used for communications in the computing environment of FIG. 1a, in accordance with an aspect of the present invention;


[0019]
FIG. 1

c
depicts one embodiment of an example of an I/O subsystem (e.g., a channel subsystem) of FIG. 1a being configured as a plurality of I/O subsystem (e.g., channel subsystem) images, in accordance with an aspect of the present invention;


[0020]
FIG. 1

d
depicts further details of a multiple image facility (MIF) image of a channel subsystem image of FIG. 1c, in accordance with an aspect of the present invention;


[0021]
FIG. 1

e
depicts further details of a channel path set (CPS) of a channel subsystem image of FIG. 1c, in accordance with an aspect of the present invention;


[0022]
FIG. 2 depicts one embodiment of a plurality of logical partitions coupled to a plurality of channel subsystem images, in accordance with an aspect of the present invention;


[0023]
FIG. 3 depicts one embodiment of associating physical channel numbers with logical channel numbers and channel subsystem images, in accordance with an aspect of the present invention;


[0024]
FIG. 4

a
illustrates one example of the same physical channel being used by two channel subsystem images, as well as different channel subsystem images having the same channel numbers (CHPIDs) that refer to different physical channels, in accordance with an aspect of the present invention;


[0025]
FIG. 4

b
is an illustration of a CHPID statement generating data structures in an I/O configuration data set (IOCDS), in accordance with an aspect of the present invention;


[0026]
FIG. 4

c
illustrates the adding of additional information for channel subsystem images to a physical control unit data structure of the IOCDS, in accordance with an aspect of the present invention;


[0027]
FIG. 4

d
illustrates that a device that is accessible by multiple channel subsystem images is represented in a subchannel data structure for each channel subsystem image, in accordance with an aspect of the present invention;


[0028]
FIG. 5

a
depicts one embodiment of a request block for a change channel path configuration command, in accordance with an aspect of the present invention;


[0029]
FIG. 5

b
depicts one embodiment of a response block for the change channel path configuration command, in accordance with an aspect of the present invention;


[0030]
FIGS. 5

c
-5f depict various checks that are performed during execution of the change channel path configuration command, in accordance with an aspect of the present invention;


[0031]
FIG. 6

a
depicts one embodiment of a request block for a change control unit configuration command, in accordance with an aspect of the present invention;


[0032]
FIG. 6

b
depicts one embodiment of a response block for the change control unit configuration command, in accordance with an aspect of the present invention;


[0033]
FIG. 6

c
depicts further details regarding a shared device cluster block of the response block of FIG. 6b, in accordance with an aspect of the present invention;


[0034]
FIG. 6

d
depicts further details regarding a subchannel block of the response block of FIG. 6b, in accordance with an aspect of the present invention;


[0035]
FIGS. 6

e
-6h illustrate various checks that are performed during execution of the change control unit configuration command, in accordance with an aspect of the present invention;


[0036]
FIG. 7

a
depicts one embodiment of a request block for a change I/O device configuration command, in accordance with an aspect of the present invention;


[0037]
FIG. 7

b
depicts one embodiment of a response block for the change I/O device configuration command, in accordance with an aspect of the present invention;


[0038]
FIG. 7

c
depicts one embodiment of further details regarding a shared device cluster block of the response block of FIG. 7b, in accordance with an aspect of the present invention;


[0039]
FIG. 7

d
depicts one example of further details of a subchannel block of the response block of FIG. 7b, in accordance with an aspect of the present invention;


[0040]
FIGS. 7

e
-7h depict various checks that are performed during execution of the change I/O device configuration command, in accordance with an aspect of the present invention;


[0041]
FIG. 8

a
depicts one embodiment of a request block for a store configuration component list command, in accordance with an aspect of the present invention;


[0042]
FIG. 8

b
depicts one embodiment of a response block for the store configuration component list command, in accordance with an aspect of the present invention;


[0043]
FIG. 9

a
depicts one embodiment of a request block for a store domain configuration component list command, in accordance with an aspect of the present invention;


[0044]
FIG. 9

b
depicts one embodiment of a response block for a store domain configuration component list command, in accordance with an aspect of the present invention;


[0045]
FIG. 10

a
depicts one embodiment of a control block associated with a configure channel path command and a deconfigure channel path command, in accordance with an aspect of the present invention;


[0046]
FIG. 10

b
depicts one embodiment of a control block associated with a read channel path information command, in accordance with an aspect of the present invention;


[0047]
FIG. 11

a
depicts one embodiment of a control block associated with a configure channel path function and a deconfigure channel path function, in accordance with an aspect of the present invention;


[0048]
FIG. 11

b
depicts one embodiment of a control block associated with an image reset function, in accordance with an aspect of the present invention;


[0049]
FIG. 12

a
depicts one embodiment of a request block for a set domain attributes command, in accordance with an aspect of the present invention;


[0050]
FIG. 12

b
depicts one embodiment of a response block for the set domain attributes command, in accordance with an aspect of the present invention;


[0051]
FIG. 13

a
depicts one embodiment of a request block for a store domain configuration attributes list command, in accordance with an aspect of the present invention;


[0052]
FIG. 13

b
depicts one embodiment of a response block for the store domain configuration attributes list command, in accordance with an aspect of the present invention;


[0053]
FIG. 14

a
depicts one embodiment of a request block for a store channel subsystem characteristics command, in accordance with an aspect of the present invention; and


[0054]
FIG. 14

b
depicts one embodiment of a response block for the store channel subsystem characteristic command, in accordance with an aspect of the present invention.







BEST MODE FOR CARRYING OUT THE INVENTION

[0055] In accordance with an aspect of the present invention, a multiple logical input/output (I/O) subsystem facility is provided in which a physical input/output subsystem is configured as a plurality of input/output subsystem images in order to logically expand the functionality of the input/output subsystem. A configured I/O subsystem image appears to a program (e.g., an operating system) as an independent input/output subsystem.


[0056] One embodiment of a computing environment to incorporate and use one or more aspects of the present invention is described with reference to FIG. 1a. In one example, computing environment 100 is based on the z/Architecture, offered by International Business Machines Corporation, Armonk, N.Y. The z/Architecture is described in an IBM Publication entitled “z/Architecture Principles of Operation,” Publication No. SA22-7832-01, October 2001, which is hereby incorporated herein by reference in its entirety.


[0057] As one example, computing environment 100 includes a central processor complex (CPC) 102 coupled to one or more input/output (I/O) devices 106 via one or more control units 108. Central processor complex 102 includes, for instance, one or more central processors 110, one or more partitions 112 (e.g., logical partitions (LP)), a logical partition hypervisor 114, and an input/output subsystem 115, each of which is described below.


[0058] Central processors 110 are physical processor resources allocated to the logical partition. In particular, each logical partition 112 has one or more logical processors, each of which represents all or a share of a physical processor 110 allocated to the partition. The logical processors of a particular partition 112 may be either dedicated to the partition, so that the underlying processor resource 110 is reserved for that partition; or shared with another partition, so that the underlying processor resource is potentially available to another partition.


[0059] A logical partition functions as a separate system and has one or more applications and a resident operating system therein, which may differ for each logical partition. In one embodiment, the operating system is the z/OS operating system, the z/VM operating system, the z/Linux operating system or the TPF operating system, offered by International Business Machines Corporation, Armonk, N.Y.


[0060] Logical partitions 112 are managed by a logical partition hypervisor 114, which is implemented by Licensed Internal Code running on processors 110. The logical partitions and logical partition hypervisor each comprise one or more programs residing in respective partitions of central storage associated with the central processors. One example of logical partition hypervisor 114 is the Processor Resource/System Manager (PR/SM), offered by International Business Machines Corporation, Armonk, N.Y. Further details regarding logical partitions are described in, for instance, Guyette et al., U.S. Pat. No. 4,564,903, entitled “Partitioned Multiprocessor Programming System,” issued on Jan. 14, 1986; Bean et al., U.S. Pat. No. 4,843,541, entitled “Logical Resource Partitioning Of A Data Processing System,” issued on Jun. 27, 1989; and Kubala, U.S. Pat. No. 5,564,040, entitled “Method And Apparatus For Providing A Server Function In A Logically Partitioned Hardware Machine,” issued on Oct. 8, 1996, each of which is hereby incorporated herein by reference in its entirety.


[0061] Input/output subsystem 115 directs the flow of information between input/output devices 106 and main storage. It is coupled to the central processing complex, in that it can be a part of the central processing complex or separate therefrom. The I/O subsystem relieves the central processors of the task of communicating directly with the input/output devices and permits data processing to proceed concurrently with input/output processing. To provide communications, the I/O subsystem employs I/O communications adapters. There are various types of communications adapters including, for instance, channels, I/O adapters, PCI cards, Ethernet cards, Small Computer Storage Interface (SCSI) cards, etc. In the particular example described herein, the I/O communications adapters are channels, and therefore, the I/O subsystem is referred to herein as a channel subsystem. However, this is only one example. Other types of I/O subsystems can incorporate and use one or more aspects of the present invention.


[0062] The I/O subsystem uses one or more input/output paths as communication links in managing the flow of information to or from input/output devices 106. In this particular example, these paths are called channel paths, since the communications adapters are channels. Each channel path 116 (FIG. 1b) includes a channel 117 of channel subsystem 115, a control unit 108, a link 118 (e.g., serial or parallel) between the channel and control unit, and one or more I/O devices 106 coupled to the control unit. In other embodiments, channel paths may have multiple control units and/or other components. Further, in another example, it is also possible to have one or more dynamic switches as part of the channel path. A dynamic switch is coupled to a channel and a control unit and provides the capability of physically interconnecting any two links that are attached to the switch. Further details regarding channel subsystems are described in Casper et al., U.S. Pat. No. 5,526,484, entitled, “Method And System For Pipelining The Processing Of Channel Command Words,” issued on Jun. 11, 1996, which is hereby incorporated herein by reference in its entirety.


[0063] A control unit may be accessible by the channel subsystem by more than one channel path. Similarly, an I/O device may be accessible by the channel subsystem through more than one control unit, each having one or more channel paths to the channel subsystem. The control unit accepts control signals from the channel subsystem, controls the timing of data transfer over the channel path, and provides indications concerning the status of the device. The control unit may be housed separately or it may be physically and logically integrated with the I/O device, the channel subsystem, or a central processor.


[0064] The I/O device attached to the control unit may be designed to perform certain limited operations, or it may perform many different operations. To accomplish its operations, the device uses detailed signal sequences peculiar to its type of device. The control unit decodes the commands received from the channel subsystem, interprets them for the particular type of device, and provides the signal sequence required for the performance of the operation.


[0065] In addition to one or more channels, a channel subsystem includes one or more subchannels. Each subchannel is provided for and dedicated to an I/O device, or group of I/O devices, coupled to the program through the channel subsystem. Each subchannel provides information concerning the associated I/O device, or group of I/O devices, and its attachment to the channel subsystem. The subchannel also provides information concerning I/O operations and functions involving the associated I/O device, or group of I/O devices. The subchannel provides a logical appearance of a device or group of devices to the program and is the means by which the channel subsystem provides information about associated I/O devices to the central processors, which obtain this information by executing I/O instructions. The subchannel has internal storage that includes information in the form of a channel command word (CCW) address, a channel path identifier, device number, count, status indication and I/O interruption subclass code, as well as information on path availability and functions pending or being performed. I/O operations are initiated with a device by the execution of I/O instructions that designate the subchannel associated with the device or devices.


[0066] Further details regarding a channel subsystem are described with reference to FIG. 1c. In accordance with an aspect of the present invention, channel subsystem 115 (or other 110 subsystem) is configured as a plurality of channel subsystem images 120 (or other I/O subsystem images), each identified by a channel subsystem image identifier (CSSID) (or other I/O subsystem identifier). In one example, the channel subsystem is configured, either by model dependent means, in which configuration controls are used during initialization, or by use of appropriate dynamic I/O configuration commands, as one to 256 channel subsystem images, as described in further detail below. Each channel subsystem image appears to a program as a complete channel subsystem. Each channel subsystem image may have from 1 to 256 unique channel paths, thereby increasing the maximum number of channel paths that may be configured to the channel subsystem from 256 to 65,536.


[0067] A channel subsystem image 120 includes, for instance, a multiple image facility (MIF) 122, which includes one or more (e.g., up to 16) MIF images, each identified by a MIF image identifier (IID). The multiple image facility allows each logical partition to achieve independent access to the channel paths, control units and I/O devices that are configured to and dynamically shared by multiple logical partitions.


[0068] As one example, each logical partition is configured to a different MIF image (see FIG. 2) in order to provide the logical partition with an independent set of controls for channel paths, control units and devices that are shared by other logical partitions. Various details regarding the multiple image facility are described in Brice, Jr. et al., U.S. Pat. No. 5,414,851, entitled “Method And Means For Sharing I/O Resources By A Plurality Of Operating Systems,” issued on May 9, 1995, which is hereby incorporated herein by reference in its entirety.


[0069] As shown in FIG. 1d, for each MIF image, a separate set of channel path controls and a separate set of subchannel controls are provided by the channel subsystem. For each MIF image, each set of channel path controls for each configured channel path is called a channel path image 124. The collection of one or more channel path images associated with the channel paths that are configured to a MIF image is called a channel path image set 126. Further, for each MIF image, a separate subchannel, called a subchannel image 128, is provided for each I/O device or group of devices that is configured to the MIF image. A collection of one or more subchannel images that are configured to a MIF image is called a subchannel image set 130.


[0070] Referring back to FIG. 1c, in addition to a MIF, a channel subsystem image 120 also includes a channel path set (CPS) 134. Channel path set 134 includes, for instance, one to 256 channel paths 140 (FIG. 1e) configured to one or more channel path images in the associated MIF. Each channel path is identified by a channel path identifier (CHPID). Each channel path configured to a channel path set may be unique from other channel paths configured to other provided channel subsystem images. However, because as many as 256 channel subsystem images may be provided, the CHPID values assigned to channel paths in each of the channel path sets may not be unique. Therefore, each channel path is specified by a unique address formed by, for instance, a concatenation of CSSID with the channel path identifier assigned to the channel path. The image ID (IID) further identifies a channel path image for each configured channel path.


[0071] With the exception of certain channel subsystem interfaces used to control the resetting and configuration of channel paths, both the CSSID and IID values may be implicitly specified for the programs operating in the logical partitions, and are therefore, transparent to the programs. For instance, instead of programs that are operating in the logical partitions specifying the CSSID, the LPAR hypervisor implicitly specifies the CSSID configured to each LPAR. This is accomplished by using a Start Interpretative Execution (SIE) facility, as described in “IBM System/370 Extended Architecture Interpretative Execution,” Publication No. SA22-7095, September 1985, which is hereby incorporated herein by reference in its entirety.


[0072] In one example, for I/O instructions that execute in Start Interpretive Execution (SIE) I/O-passthru mode, the LPAR hypervisor places the CSSID value into a SIE state description, used by the hypervisor and the SIE facility, to dispatch and control the programs operating in the logical partitions. The SIE state description is, for instance, an operand to a Start Interpretive Execution (SIE) instruction that includes various fields subsequently used to interpretively start an I/O instruction, in a manner that causes the CSSID value and other associated parameters to be passed to the channel subsystem transparently to the program operating in the logical partition or virtual machine. These fields include, for instance, the following:


[0073] (a) CSS-Authorization-Vector Origin (CAVO): When the MCSS facility is installed, this field includes a host-absolute/real address that when not zero points to an authorization vector that serves the dual purpose of enabling access to channel subsystem images, and specifying the default MIF image identifier to be used in association with the CSS image. The initial state of CAVO is zero. When a Multiple Channel Subsystem Enhanced (MCSSE) facility (described below) is enabled via a Set Domain Attributes CHSC command (also described below), the CPC places a non-zero CAVO in the SIE state description. When the MCSSE facility is disabled, the CAVO is set to zero. Therefore, the enablement of the MCSSE facility may be determined from the value of the CAVO.


[0074] The CSS-authorization vector includes a model dependent number of entries, with each entry corresponding to one CSS image, where entry zero corresponds to CSS image zero, entry one corresponds to CSS image one, and so on. The number of entries is equal to one plus the value of the highest CSSID provided on the machine, with the latter provided in the response of a Store Channel Subsystem Characteristics command (described below), when the MCSS facility is provided by the CPC. When an entry contains the number zero, the CSS image corresponding to the entry is not accessible. However, when an entry contains a non-zero number, that number is used as the MIF-image identifier in association with the CSS image. When a CSS image is accessible, its CSSID and corresponding IID may be specified in certain I/O or CHSC instructions or for other uses, by or on behalf of the program operating in a logical partition or virtual machine. For I/O instructions, the CSSID and IID are specified in a subsystem identifier (SID) and other implied operands.


[0075] When the CAVO is zero, the program operating in the logical partition or virtual machine, can access only the default channel subsystem, and thus, specifies a CSSID of zero in the SID.


[0076] (b) Default Channel Subsystem Image Identifier (CSSID): This field includes the default channel subsystem image identifier associated with the program operating in the logical partition or virtual machine.


[0077] (c) MIF Image Identifier: This field includes the default MIF image identifier associated with the program operating in a logical partition or virtual machine.


[0078] During the execution of high frequency I/O instructions that have an I/O passthru facility, the SIE I/O instruction passthru interpretation extensions for MCSS implicitly transmit the CSSID from the active SIE state description to the channel subsystem just as if the CSSID was specified in general register one, which is an implied operand for some I/O instructions. This implicit specification is also provided for the IID value.


[0079] For infrequently executed I/O instructions, execution of the instruction by the program operating in the logical partition causes the LPAR hypervisor to gain control, which stores the proper CSSID value (as well as the proper MIF IID value) into general register 1, and re-executes the I/O instruction on behalf of the program operating in the logical partition in a manner that is transparent to the program. One type of instruction that uses general register 1 as an implied operand includes those instructions that reference a subchannel. For those I/O instructions, general register 1 includes a subsystem identification word (SID). In accordance with an aspect of the present invention, the subsystem identification word includes, for instance, the following fields:


[0080] (1) Channel Subsystem Id (CSSID), which specifies a binary number of the channel subsystem image containing the referenced subchannel;


[0081] (2) MIF IID, which specifies a binary number of the MIF image within the channel subsystem image containing the referenced subchannel. VO instructions that expect an IID in the subsystem identification word (SID) are extended to expect a specification of the CSSID value of the associated channel subsystem image;


[0082] (3) Subchannel Number, which specifies a binary number of the subchannel within the specified channel subsystem image to be used for the function specified by the I/O instruction; and


[0083] (4) Multiple Channel Subsystem Bit (M), which indicates whether the CSSID is checked for validity. When M is one, the CSSID field is checked for a valid CSSID. If valid, the value in the CSSID field becomes the effective CSSID. If not valid, an appropriate response code may be stored. When M is zero, the default CSSID is the effective CSSID and the CSSID field is zero. In one example, this field is only used when MCSSE is enabled


[0084] As described above, in one example, the channel subsystem id specified in the subsystem identification word (and other request blocks) is checked for validity before it becomes an effective CSSID. When a valid CSSID is specified, the specified CSSID is the effective CSSID. When a CSSID is not specified, a default CSSID is used as the effective CSSID.


[0085] In one example, to check for validity, a CSSID of a SID is subject to range, existence and authorization checking. (A CSSID elsewhere in a program request block may or may not be subject to authorization checking.)


[0086] Range checking includes, for instance, verifying that the CSSID value is between a range of zero and h, where h is the highest CSSID provided on the model (e.g., 255).


[0087] Existence checking, in one example, verifies that a valid CSSID is defined in the I/O configuration definition, and thus, is in the configuration of the CPC. In one example, a Store Configuration Component List command (described below) is used to obtain the list of CSSID values provided on the CPC.


[0088] Authorization checking includes, for instance, verifying that a MIF-image combination (a channel subsystem image that has an associated MIF image), as identified by its CSSID, is authorized for use by a program in a logical partition. To successfully pass the authorization check, the CSSID-authorization vector of the logical partition is to have a CAV entry that represents the MIF-image combination.


[0089] There are various subchannel related I/O instructions, which use a SID and which the LPAR hypervisor and SIE MCSS extensions apply. These include, for instance, Cancel Subchannel, Clear Subchannel, Diagnose-CSI, Halt Subchannel, Modify Subchannel, Resume Subchannel, Signal Adapter, Start Subchannel, Store Subchannel, and Test Subchannel.


[0090] Other non-subchannel related VO instructions are similarly enhanced to allow the CSSID for the target channel subsystem image to be specified in a manner that is transparent to the programs operating in the logical partitions. They include, for instance:


[0091] (a) Store Channel Report Word—With this instruction, general register 1 includes a CSSID identifying the channel subsystem image from which a channel report is to be retrieved. In one example, when a condition affecting multiple channel subsystem images is recognized, multiple channel report words (CRWs) may be made pending, one CRW for each of the affected channel subsystem images. In this case, multiple store channel report word instructions are issued to retrieve the CRWs.


[0092] (b) Reset Channel Path—The channel path reset facility is signaled to perform the channel path reset function on the channel path image designated by the contents of general register 1. In one example, general register 1 includes the channel subsystem image id identifying the channel subsystem image containing the designated channel path. In addition, general register 1, as observed by the LPAR hypervisor, when the CPC is operating in LPAR mode, includes a MIF image identifier designating the MIF image of the channel path to be reset. Additionally, a channel path identifier is specified designating the channel path image on which the channel path reset function is to be performed.


[0093] The LPAR hypervisor is responsible for ensuring that a valid CSSID is specified and to simulate an operand exception if the CSSID is not valid.


[0094] As described above, MCSS enables a channel subsystem to provide more than 256 channel paths. However, the software (e.g., operating systems and associated applications) using the channel subsystem only support up to 256 channel paths. This is due to the fact that the software is designed to support I/O path identifiers (e.g., CHPID values) that are 8-bit binary numbers, thereby providing 256 unique values from zero to 255.


[0095] Changing the size of the CHPID value would have serious consequences on the many programs using the CHPID. Thus, in accordance with an aspect of the present invention, a capability is provided that allows the hardware to have more than 256 channel paths, but does not require the software to support more than 256 CHPID numbers. In particular, a capability is provided that enables the hardware to identify a specific channel that is independent of the way the software identifies the same channel. In order to accomplish this, a capability is provided for identifying physical channels and for assigning logic CHPID numbers to those same physical channels.


[0096] To identify a physical channel, a physical channel identifier (PCHID) is assigned by the computer system to each possible location that can support a channel card or that can provide I/O or a logical interface. As examples, I/O connectivity includes S/390 I/O (e.g., ESCON or FICON, networking, and coupling interfaces); and logical interfaces, which include cryptographic attachments.


[0097] In one embodiment, a 16 bit value is used for the PCHID; however, many other values may be used. To assign the PCHID values to physical channels, a technique is used that employs the actual physical properties of the machine. For instance, sixteen PCHID values are assigned for each I/O slot because the most dense I/O card, in this example, provides sixteen interfaces. However, the technique is versatile in that new values can be added to the original sixteen per slot, if a more dense I/O card is provided.


[0098] Although one assignment technique is described herein, any assignment technique can be used to assign the PCHID values, as long as the technique is predictable and repeatable, so that other applications that support the machine can duplicate the assignments. One such application is an Order Process. For instance, when a new machine is ordered or a new I/O feature is ordered for an existing machine, an Order Process tool, referred to as a configurator, uses the repeatable technique to predict the PCHID values for the new I/O cards. The user then uses these predicted values to provide a configuration definition, prior to the actual install of the new machine or features.


[0099] Further details of how the PCHID assignment technique is used are described with reference to FIG. 3. As shown, there are three cooperating entities, an Order Process 300, a Customer 302 and a System 304. Order Process 300 is used by a Customer 302 to place an order 305 for a new machine or one or more new channels. The Order Process uses a PCHID assignment technique 306a to produce a report 308 showing the PCHID assignments of the physical channels of the machine. In this particular example, PCHID Z is shown. The customer uses this report and his unique configuration requirements 310, including, for instance, logical CSS (i.e., CSSID) and CHPID number to tie the physical PCHID to the logical CSS/CHPID using IOCP 312. In this particular example, CSS X and CHPID Y are associated with PCHID Z. This association is provided to the system in the form of an IOCDS 314 from IOCP, as described in further detail below. System 304 then uses the same PCHID assignment technique 306b used by the Order Process to locate the physical channel with the PCHID value Z. So, when an operating system 316 using Logical Channel Subsystem X (i.e., Channel Subsystem Image X) wants information or to do I/O operations on CHPID Y, the system Licensed Internal Code (LIC) 318 uses the physical channel 320 located at PCHID location Z 320 to satisfy that request.


[0100] In the embodiment described herein, when a PCHID value is assigned to a location, it is fixed and only changes by controlled service functions. One example of a controlled service function is a sparing action. A sparing action is when one port or interface on an I/O card fails and as a repair, the interface is moved to another port that was previously unused. In this case, the PCHID assigned to the failing port is reassigned to the spare port and vice versa. This automatic reassignment is performed to eliminate the need to change the I/O definition.


[0101] By having a unique PCHID value for each physical channel, the software can use instructions to both define the logical associations for specific physical resources and to query the machine using logical constructs (i.e., CHPID numbers) to determine the extent of the exploitation of the physical resource. For instance, the program can determine that the same physical channel is being used by several logical channel subsystems, as illustrated in FIG. 4a.


[0102] In FIG. 4a, the center column 400 illustrates an example of a plurality of physical channels in a machine, while the left and right columns 402 and 404, respectively, show different channel subsystem images (a.k.a., logical channel subsystems). It is shown that in the case of a physical channel being used by multiple channel subsystems (i.e., spanning), the same or different logical CHPID numbers refer to the same physical channel. Further, it is shown that different logical channel subsystems may have the same CHPID numbers that refer to different physical channels.


[0103] To define the I/O configuration, a program is used, in one example, to translate human generated syntax into binary data that can be used by the machine, when it is powered on, before there is a program to exploit dynamic I/O interfaces. (Dynamic I/O is another way to define I/O, as described below.) This program is referred to as an I/O configuration program (IOCP). Various details regarding the IOCP are described in “zSeries Input/Output Configuration Program User's Guide for IYP IOCP,” IBM Publication No. SB10-7029-03b, Fourth Edition, Level 03b, December 2002, which is hereby incorporated herein by reference in its entirety. The I/O configuration program builds a configuration definition from input data statements and stores the definition in an I/O configuration data set (IOCDS), which is used by the channel subsystem. In one example, the input statements include the following:


[0104] 1. An ID statement, which is an optional statement that defines a heading data for I/O configuration reports;


[0105] 2. A RESOURCE statement, which specifies the channel subsystem images (CSS's) and CSSIDs to be configured, and the logical partitions to be defined within each of those CSSs;


[0106] 3. One or more CHPID statements used to specify channel paths;


[0107] 4. One or more control unit statements (CNTLUNIT) used to specify one or more control units attached to the channel paths;


[0108] 5. One or more I/O device statements (IODEVICE) used to specify one or more I/O devices assigned to the control units. In one example, up to 256 I/O devices can be defined in an I/O device statement.


[0109] In accordance with an aspect of the present invention, one or more input statements of the IOCP have been enhanced to provide for the assignment of a PCHID to a logical channel subsystem and to a logical CHPID number. For example, the CHPID statement has been enhanced by adding a subkeyword to the PATH keyword of the CHPID statement to allow the assignment of a logical CHPID number to a logical channel subsystem. Further, a new keyword, referred to as PCHID, is added to the CHPID statement, which specifies the PCHID number of the physical channel being defined. As an example, with the following statement: CHPID PATH=(CSS(1),22),PCHID=101, the user has assigned the logical CHPID number of 22 and the Logical Channel Subsystem 1 to the physical channel located at PCHID 101.


[0110] As a further example, the CNTLUNIT statement has been enhanced to allow the definition of a single control unit to multiple logical channel subsystems. This is shown in the following statement: CNTLUNIT CUNUMBR=230, PATH=((CSS(1),20),(CSS(2),40)), in which control unit 230 is assigned to be accessed by CHPID 20 in CSS 1 and CHPID 40 in CSS 2.


[0111] The IOCP takes these human generated input statements (e.g., CHPID, Control Unit and I/O Device) that represent the actual channels, control units and devices that make up a given I/O configuration and generates a file, referred to as an IOCDS, which is made up of different kinds of data structures for a machine to read when it initializes. For MCSS, multiple channel subsystems are represented and the physical resources are represented in such a way that they have the ability to be either dedicated or spanned shared between channel subsystems.


[0112] One physical resource affected by MCSS is the channel. With MCSS, there are thousands of physical channels, but there are only 256 CHPIDs maintained per channel subsystem. Thus, a new data structure is created, called the PCHID member, to represent the physical channels. This structure includes the relevant physical information about the channel including, for instance: the PCHID number, the CHPID number assigned to this PCHID; the channel subsystem or systems for which PCHID is defined to have access; and for some channel types, the switch number to which this channel is connected. Because CHPID numbers may be repeated in each channel subsystem, there is a CHPID data structure for each channel subsystem. This data structure has an array of 256 entries, each entry indexed by the CHPID number. This structure also includes logical information that can vary based on the channel subsystem. This information includes, for instance: an indication that this CHPID is defined; a pointer back to the PCHID this CHPID is associated with; and a list of logical partitions that may access this CHPID. The combination of these two structures (i.e., the PCHID member and CHPID member) allows a physical channel to be dedicated or shared between logical partitions, as well as dedicated or spanned between channel subsystem images.


[0113] One example of an illustration of how a typical CHPID statement generates data structures in the IOCDS is shown in FIG. 4b. In this example, it is a spanning CHPID, or a single physical channel that is available to more than one channel subsystem image. The CHPID statement used is, for instance, CHPID PATH=(CSS(1,2,3), 22), PCHID=101, SWITCH=25. Although three channel subsystem images are referenced, only two are shown in FIG. 4b for clarity. Note that the PCHID entry of physical channel 101 points to the entry of CHPID number 22 in CSS 1, CSS 2 and CSS 3. Also, each CHPID entry points back to the physical information in the PCHID data structure.


[0114] Another resource that is affected by MCSS is the physical control unit. For this, the data structure that represents the physical control unit is expanded to include connections for multiple channel subsystems. In one example, the additional fields in the data structure are dependent on the number of channel subsystems being defined with this configuration. Thus, if one configuration has one channel subsystem, then space for eight CHPIDs and eight Link Addresses are used. But, if another configuration has four channel subsystems, then space for 32 CHPIDs and 32 Link Addresses is used.


[0115]
FIG. 4

c
illustrates one example of how additional information for each CSS is added to the physical control unit data structure. In one example, the control unit input statement is as follows: CNTLUNIT CUNUMBR=230, PATH=((CSS(1), 20), (CSS(2), 40)), . . . . Note that the PCU data structure has entries for CSS 1 and CSS 2, but no entry for CSS 3. This is because CSS 3 does not have access to control unit 230.


[0116] Yet another resource that is represented in the IOCDS is the I/O device. Each device or group of devices is represented by a data structure called a subchannel. Since each channel subsystem has its own set of subchannels, the data structures for devices are created on a channel subsystem basis. Thus, a single device that can be accessed from three channel subsystems has at least three subchannel entries in the IOCDS, one in each of those three channel subsystems, which allow the device to be independently accessed by the programs configured to each of the channel subsystems.


[0117]
FIG. 4

d
illustrates that a device that is accessible for multiple channel subsystems is represented in the subchannel data structure for each channel subsystem, but that the subchannel number (index) can be different for each channel subsystem. One example of the input statement used for the I/O device is as follows: IODEVICE ADDRESS=280, CUNUMBR=230. This device is defined on a control unit with access to CSS 1 and CSS 2, but not CSS 3. Thus, there are entries in the CSS 1 and CSS 2 data structures, but no entry in the CSS 3 data structure.


[0118] Data structures for channel subsystems not defined in the configuration are not created. This keeps the space used for a given configuration to a minimum.


[0119] The I/O configuration definition process is performed for each I/O resource (e.g., channels, control units and/or devices) within a channel subsystem and that collection of input definitions is called Channel Subsystem X (a.k.a., Channel Subsystem Image X). Then, if the customer wants multiple channel subsystems, the customer would repeat the process one or more times for a collection of I/O resources and each collection is called a new channel subsystem.


[0120] The LPAR hypervisor (or the I/O configuration process) then assigns one or more channel subsystem images to each configured logical partition. In order to assign channel subsystem images to logical partitions, the SIE state description is used by the hypervisor to configure channel subsystem resources to each of the logical processors associated with each logical partition. In one example, the LPAR hypervisor assigns a default channel subsystem image to each configured logical partition. As one example, the assignment is performed via the RESOURCE statement of IOCP.


[0121] The concept of assigning a logical CHPID and CSS to a physical channel allows for the definition of several hundred or thousands of physical channels to a maximum of 256 logical CHPIDs in several logical channel subsystems. This avoids system changes that would otherwise force the operating system to support greater than 256 CHPIDs and allows machines to be built with several hundred or even thousands of physical channels.


[0122] Management of an I/O configuration definition with multiple logical channel subsystems is, in one example, accomplished from a single, authorized logical partition. Thus, at least one program in an arbitrarily specified logical partition has an awareness of the overall MCSS extensions; however, other programs are protected from being impacted by the new capabilities. This enhanced management capability does not place additional operational requirements on programs in other logical partitions, nor even on other programs in the same logical partition. Thus, the management extensions employed to support a central processing complex that has MCSS can be localized to a single program in a single logical partition; no other programs need be made aware of MCSS.


[0123] In one example, the management is performed by a manager, which is a program that is authorized to perform the commands that provide the management functions. The commands used by the manager fall, for instance, into two categories: 1) Channel Subsystem Call (CHSC) commands, and 2) Service Call Logical Processor (SCLP) commands. Within the CHSC category, a subset of commands are also known as dynamic I/O (DIO) commands in that they have the ability to change the active I/O configuration definition without requiring a restart of the CPC or channel subsystem (e.g., re-IML or a re-IPL) to make the change become effective. The DIO CHSC commands remain oriented on I/O devices, control units and channel paths; however, with MCSS there are more places where these commands can have their particular effect. Management of the extension from a single channel subsystem to multiple channel subsystem images involves, for instance:


[0124] 1) Modifying the set of applicable CHSC commands to be capable of operating on a specified channel subsystem image or a group of channel subsystem images, as called for according to the particular function of each command. Prior to MCSS, such a designation was unnecessary as there was only one, implicit channel subsystem on which to operate. With MCSS, a CHSC command that specifies an I/O device, a subchannel or a channel path is subject to having a qualifying CSSID parameter added in the request or in the response, if any, of the three are reported.


[0125] 2) Modifying applicable channel path reconfiguration SCLP commands and LPAR hypervisor PCCALL functions to be capable of operating on a specified channel subsystem image;


[0126] 3) Creating a new authorization scheme that is used to determine which logical partition has use and/or access to which channel subsystem image. In one example, an authorization vector (e.g., CAV, described herein) is used in the authorization scheme, when MCSSE (described below) is enabled.


[0127] Various CHSC commands that are extended for MCSS are described below. Examples of these CHSC commands, without the extensions, are described in Cwiakala et al., U.S. Pat. No. 5,170,472, entitled “Dynamically Changing A System I/O Configuration Definition,” issued Dec. 8, 1992, which is hereby incorporated herein by reference in its entirety. In one example, the dynamic I/O commands that are enhanced include, for instance, a Change Channel Path Configuration command, a Change Control Unit Configuration Command and a Change I/O Device Configuration command, each of which is described in detail below.


[0128] The Change Channel Path Configuration command is used to add, modify or delete the description of a channel path in the I/O configuration definition. The change channel path configuration command can be executed asynchronously and is not interpretively executed. Specification of the operation to be performed and the information used to change the I/O configuration definition that is used by the channel subsystem to control I/O or message operations are provided in a command request block.


[0129] One example of a command request block for a change channel path configuration command is described with reference to FIG. 5a. In one example, the change channel path configuration request block includes the following fields:


[0130] (a) Length Field 502: This field indicates the length of this request block;


[0131] (b) Command Code 504: This field specifies the change channel path configuration command;


[0132] (c) Operation Code 506: The operation code indicates the type of channel path configuration operation that is to be performed. The fields of the request data area of the command request block that are used are dependent upon the operation to be performed. The contents of the request data area fields that are not specified as being examined for possible use in performing the requested operation are ignored. Examples of various operation codes are as follows:
10Add the description of the specified channel path to the I/Oconfiguration definition. When the MCSS facility is provided bythe CPC, the location of the physical channel path designated bythe PCHID field is specified for an add operation. When thechannel path type field (CHPT), described below, specifies aninternal channel path type, the PCHID field is ignored. ThePCHID field is not examined for any other operation.All of the fields except RCSSID are examined for use inperforming the add operation.Upon exit from configuration mode, given that this changeremains intact, an I/O-resource-accessibility-information event ismade pending for the MIF image affected by this operation, andthus, the affected channel subsystem and corresponding logicalpartition, to signal the added accessibility of the specified channelpath.1Modify the description of the specified channel path in the I/Oconfiguration definition. The type of modification is specified bythe operation code qualifier (OCQ). This operation code isspecified when the CPC is operating in LPAR mode.The CHPID, OCQ, and CSSID fields are examined for use inperforming a modify operation. Additional fields may bespecified depending on the contents of the OCQ field. The fieldsthat are used are identified in the description of the OCQ values.2Delete the description of the specified channel path from the I/Oconfiguration definition.The CHPID and CSSID fields are examined for use in performingthe delete operation.When the multiple channel subsystem facility is provided by theCPC, the delete operation is used to delete the last channel pathfrom a channel subsystem image provided that the channel path isnot present in any other channel subsystem image.


[0133] Successful add, modify, and delete operations cause the I/O-configuration-changed condition to be set in the channel subsystem. Successful add, modify, and delete operations cause the channel subsystem to retain the specified program parameter, replacing the current program parameter, if any, in the channel subsystem.


[0134] (d) Multiple Channel subsystem Bit (M) 508: When the multiple channel subsystem facility is provided by the CPC, and the M bit is one, the CSSID field is checked for a valid CSSID. If valid, the value in the CSSID field becomes the effective CSSID. If not valid, then a response code may be stored. When M is zero, the default CSSID is the effective CSSID, and the CSSID field is zero; otherwise a response code may be stored.


[0135] (e) Format (FMT) 510: The command-request-format field includes an unsigned integer whose value specifies the layout of the command-request block. In one example, this value is 0.


[0136] (f) Operation-Code Qualifier (OCQ) 512: This field includes a value that qualifies the operation specified by the OC field. The meaning of each value of the OCQ field is for instance, as follows:
20No qualification: The operation specified by the OC field is notqualified by the OCQ field. When the CPC is operating in LPARmode, the OC field is qualified by the OCQ.1Unshared reconfigurable: The specified channel path is added tothe I/O-configuration definition as an unshared channel path. Thechannel path can be configured to one MIF image within achannel subsystem image at a time. The channel path can bereconfigured to any other MIF image of the channel subsystemimage for which reconfiguration access has been established.The channel path can be configured to any one of the MIF imagesprovided in the I/O-configuration definition that are specified inthe reconfiguration-access bit mask.One MIF image of the channel subsystem image is defined tohave initial access to the channel path, when the MIF image issubsequently activated. The MIF image for which initial access isto be established is specified by the initial-access bit mask.On some models, the OCQ value is not specified when thechannel-path-type field indicates an internal-system-devicechannel.This OCQ value may be specified when the OC field specifies anadd operation (OC = 0) and the CPC is operating in LPAR mode.When an add operation that specifies this operation-code qualifieradds a channel path, the channel path cannot subsequently bespanned, in this example, even if it otherwise might have beenhad it been added using the shared (OCQ = 3) operation-codequalifier.2Unshared non-reconfigurable: The specified channel path isadded to the I/O-configuration definition as an unshared channelpath. The channel path is configured to one MIF image of thechannel subsystem image and can be subsequently deconfiguredor configured to that MIF image. The channel path cannot besubsequently reconfigured to other MIF images, in oneembodiment. The single MIF image to which the channel pathcan be configured is specified in the reconfiguration-access bitmask. The same MIF image may also be given access to thechannel path, when the logical partition associated with the MIFimage is activated.The initial-access bit mask is used to specify the same MIF imageas the reconfiguration-access bit mask, when initial access to thechannel path is to be established.This OCQ value may be specified, when the OC field specifies anadd operation and the CPC is operating in LPAR mode.When an add operation (OC = 0) that specifies this operation-codequalifier adds a channel path, the channel path cannotsubsequently be spanned, in this example, even if it otherwisemight have been had it been added using the shared (OCQ = 3)operation-code qualifier.3Shared: The channel path is added as a shared channel pathprovided that the CHPT field specifies an allowed channel type,such as, for instance, a serial channel, cluster-bus-peer channel, anemulated-I/O channel, a fibre-channel channel, as just someexamples.The channel path can be concurrently configured to multiple MIFimages (as specified in the reconfiguration-access bit mask) andused to concurrently execute I/O-operations or messageoperations for all configured MIF images.One channel-path image is added to the I/O-configurationdefinition for each MIF image specified in the reconfiguration-access bit mask.The channel path is initially configured to each MIF imagespecified in the initial-access bit mask, when a logical partitionthat is associated with the MIF image is activated.This OCQ value may be specified when the OC field specifies anadd operation and the CPC is operating in LPAR mode.4Add access: The I/O configuration definition is modified byadding one or more MIF images to the current set of MIF-imagesthat can be used to access the specified channel path. Thespecified channel path and MIF images are to be currently definedin the I/O-configuration definition of the specified channelsubsystem image. MIF images can be added to the set of MIF-images to which the channel path may be subsequentlyreconfigured. Reconfiguration access may be added for bothunshared reconfigurable channel paths and for shared channelpaths.The reconfiguration-access bit mask specifies the MIF images ofthe specified channel subsystem image for which reconfigurationaccess is to be added.For each MIF image in the modified set of MIF-images that hasreconfiguration access, the channel path may subsequently beconfigured as follows:Unshared Image-Reconfigurable Channel Path: Thechannel path can be configured to any one MIF image inthe modified reconfiguration-access set of MIF-images at atime.Shared Channel Path: The channel path may beconcurrently configured to any of the MIF images in themodified reconfiguration-access set.The OCQ value may be specified when the CPC is operating inLPAR mode and the OC field specifies the modify operation.The OCQ, CHPID, RABM, and CSSID fields are examined foruse in performing this type of operation.Upon exit from configuration mode, given that this changeremains intact, an I/O-resource-accessibility-information event ismade pending for the MIF image affected by this operation, andthus, the affected channel subsystem image and correspondinglogical partition, to signal the added accessibility of the specifiedchannel path.5Unconditional delete access: The I/O configuration definition ismodified by deleting one or more MIF images from the currentset of MIF-images of the specified channel subsystem image thatcan be used to access the specified channel path. The specifiedchannel path and MIF images are to be currently defined in theI/O configuration definition. Reconfiguration access may bedeleted for both unshared reconfigurable channel paths and forshared channel paths.The reconfiguration access bit mask specifies the MIF images ofthe channel subsystem image for which reconfiguration access isto be deleted.For each MIF image deleted from the set of MIF images that hasreconfiguration access to the channel path, the channel path isdeconfigured, if the MIF image currently has access to thechannel path and cannot be subsequently configured to that MIFimage.When the specified channel path is a shared channel path, thecorresponding channel path images are deleted. The channel pathdefinition is not deleted from the current I/O configurationdefinition for either a shared or unshared channel path even whenall MIF images have been deleted from the set of MIF-images thathave reconfiguration access to the channel path.This OCQ value may be specified when the CPC is operating inLPAR mode and the OC field specifies the modify operation.The OCQ, CHPID, RABM and CSSID fields are examined foruse in performing this type of operation.6Conditional delete access (Conditional): The I/O configurationdefinition is modified by deleting one or more MIF images fromthe current set of MIF images of the specified channel subsystemimage that can be used to access the specified channel path, whennone of the specified MIF images are currently configured to thechannel path.When none of the specified MIF images are configured to thespecified channel path, reconfiguration access to the specifiedchannel path for the specified MIF images is deleted just as whenOCQ 5 is specified.When one or more of the specified MIF images are configured tothe specified channel path, reconfiguration access for thespecified channel path is not modified. A response code andresponse code qualifier are stored in the command response blockindicating that the requested change was not made.The command request block specification conditions andrequirements that are described for OCQ 5 apply equally to thisOCQ value.The OCQ value may be specified when the CPC is operating inLPAR mode and the OC field specifies the modify operation.7Add-CSS-image access: When the multiple channel subsystemfacility is provided by the CPC, the I/O configuration definition ismodified by adding a channel path to the target CSS image wherethe latter is specified by the CSSID. The object channel pathbeing added by this operation is a shared channel path. TheCHPID value assigned to the object channel path is the same asthe CHPID value of the referenced channel path specified byRCSSID.CHPID. The characteristics of the object channel pathare determined from the referenced channel path. Thesecharacteristic include, for instance, the following:The channel-path type is to be a type that is supported as aspanned channel path by the CPC model.The referenced channel path is to be located in a channelsubsystem image other than the target channel subsystemimage.The referenced channel path identified by RCSSID.CHPIDis to be already described in the I/O-configurationdefinition for the channel subsystem image.The referenced channel path identified by RCSSID.CHPIDis not a managed channel path.The characteristics of the referenced channel path are inherited,except the reconfiguration-access and initial-access bit masks,which are determined from the command for a given targetchannel subsystem image.The CHPID, CSSID, RABM, IABM and RCSSID fields areexamined for use in performing this type of modify operation.Upon exit from configuration mode, given that this changeremains intact, an I/O-resource-accessibility-information event ismade pending for the MIF image affected by this operation, andthus, the affected channel subsystem image and correspondinglogical partition, to signal the added accessibility of the specifiedchannel path.8Delete-CSS-image access: When the multiple channel subsystemfacility is provided by the CPC, the I/O-configuration definition ismodified by deleting a channel path from the target channelsubsystem image, where the latter is specified by the CSSID. Theobject channel path being deleted by this operation is not to beonly available to one channel subsystem image.The CHPID and CSSID are examined for use in performing thistype of modify operation.This OCQ value may be specified when the CPC is operating inLPAR mode and the OC field specifies the modify operation.


[0137] (g) Override Bit (0) 514: The override bit allows the program to request a configuration change of an unusual nature that would normally be disallowed by the channel subsystem. The channel subsystem may nevertheless disallow the override request.


[0138] (h) Key 516: This field includes the storage-access key used by the channel subsystem to access the command-request block and the command-response block for asynchronous operations that are initiated by the command.


[0139] (i) Subsystem-Identification (SID)) 518: This field specifies the CHSC subchannel that is used to perform operations that are asynchronous to CHSC execution.


[0140] (j) Program Parameter 520: This field includes a value that the program associates with this change-channel-path-configuration command.


[0141] (k) Channel Subsystem Image ID (CSSID) 522: When the multiple channel subsystem facility is provided by the CPC, this field indicates the CSSID of the target channel subsystem image with which the designated channel path specified in the CHPID field will be associated. The CSSID value is subject to range and existence checking.


[0142] (l) Reference Channel Subsystem Image ID (RCSSID) 524: When the multiple channel subsystem facility is provided by the CPC, this field includes the reference CSSID of a channel subsystem image from which the channel-path characteristics are copied for an add-CSS-image access modify operation (OCQ=7). The RCSSID value is subject to range and existence checking.


[0143] (m) Channel-Path Identifier (CHPID) 526: This field specifies the CHPID of the channel path that is the object of the change-channel-path-configuration command.


[0144] (n) Channel-Path Type (CHPT) 528: This field specifies the type of the specified channel path.


[0145] (o) Channel-Path Characteristics (CHPC) 530: This field specifies characteristics of the specified channel path. When one, the meaning of bits 0-7 is as follows, in one example:
3BitsMeaning0CTCA: Providing that the CHPT field specifies a serial-I/O channel path, the specified channel path can be used toprovide access to a channel-to-channel adapter in the CPCthat contains the specified channel path.1When the dynamic-CHPID management facility isprovided by the CPC or the channel path identified in theCHPID field is an internal-queued-direct-communicationchannel (as indicated by the contents of the CHPT field),the OC field specifies the add operation, and this bit is one,the CHPP field includes a parameter that is associated withthe specified CHPID.When the dynamic-CHPID management facility isprovided by the CPC or when the channel identified in theCHPID field is an internal-queued-direct-communicationchannel (as indicated by the contents of the CHPT field),and the OC field specifies the modify or delete operation,this bit and the contents of the CHPP and LPC name fieldsare ignored.When the dynamic-CHPID-management facility is notprovided by the CPC and when the channel identified in theCHPID field is not an internal-queued-direct-communication channel (as indicated by the contents of theCHPT field), this bit is reserved and set to zero.2When the channel path identified in the CHPID field is aninternal-coupling-peer channel (as indicated by the contentsof the CHPT field), the OC field specifies the addoperation, and this bit is one, the channel path identified inthe ACSSID.ACHPID field (another internal-coupling-peerchannel) is to be associated with the channel path identifiedin the CHPID field.When the channel path identified in the CHPID field is aninternal-coupling-peer channel (as indicated by the contentsof the CHPT field), the OC field specifies the addoperation, and this bit is zero, no channel path is to beassociated with the channel path identified in the CHPIDfield and the content of the ACHPID and ACSSID fieldsare ignored.When the channel path identified in the CHPID field is aninternal-coupling peer channel (as indicated by the contentsof the CHPT field), and the OC field specifies the modifyor delete operation, this bit of the CHPC field and thecontent of the ACHPID and ACSSID fields are ignored.When the channel path identified in the CHPID field isother than an internal-coupling-peer channel (as indicatedby the contents of the CHPT field), this bit, the ACHPIDand ACSSID fields are reserved and set to zeros.


[0146] (p) Channel Path Parameter (CHPP) 532: When bit 1 of the CHPC field is one, this field includes a parameter that is associated with the channel path identified in the CHPID field.


[0147] When the channel identified in the CHPID field is an internal-queued-direct-communication channel (as indicated by the contents of the CHPT field), bits 0-1, as one example, include a value that specifies the maximum frame size (MFS) to be used by the internal-queued-direct-communication channel.


[0148] Bits 2-7, as examples, also specify a parameter that the program associates with the channel path identified in the CHPID field. The contents of these bits have meaning to the program, except that when bit 7 of the CHPP field is one, it means that:


[0149] the specified CHPID is a managed CHPID,


[0150] when the CPC is operating in LPAR mode, a logical-partition-cluster name is provided,


[0151] when the CPC is operating in LPAR mode, the OCQ field includes the value 3, indicating that the specified CHPID is shared, and


[0152] a defined bit of the SWTV field is one, indicating that a switch is attached to the specified CHPID.


[0153] (q) Reconfiguration-Access Bit Mask (RABM) 534: When the CPC is operating in LPAR mode, this bit mask is used to indicate which MIF images are to be added or deleted from the set of MIF-images that have reconfiguration access to the specified channel path. For each MIF image that has reconfiguration access to the specified channel path, the channel path can be configured to the MIF image by use of the appropriate reconfiguration commands.


[0154] In one example, each bit in the reconfiguration-access bit mask represents a one-to-one correspondence with a MIF image of the channel subsystem image that is specified by the CSSID field.


[0155] When the OC field specifies the add operation or the OCQ field specifies add-CSS-image access operation or the add-access operation, a one in a bit position of this mask indicates that the correspondingly numbered MIF image is to be added to the set of MIF-images that have reconfiguration access to the specified channel path. When the correspondingly numbered bit is zero, the MIF image is not to be added to the set of MIF-images that have reconfiguration access to the specified channel path.


[0156] When the OC field specifies the modify operation and the OCQ field specifies a conditional delete-access operation, a one in a bit position of this mask indicates that the correspondingly numbered MIF image is to be deleted from the set of MIF-images that have reconfiguration access. The channel path is deconfigured, if the MIF image is not currently configured to the channel path. If the OCQ field specifies an unconditional delete-access operation, a one in a bit position of this mask indicates that the correspondingly number MIF image is to be deleted from the current set of MIF-images that have reconfiguration access. The channel path is deconfigured, if the MIF image currently has access to the channel path. Additionally, if the correspondingly number MIF image is currently in the set of MIF-images that have initial access to the channel path, then initial access for the MIF image is also deleted. When the correspondingly numbered bit is zero, the MIF image is not to be deleted from the set of MIF-images that have reconfiguration access to the specified channel path.


[0157] When the OC field specifies an add operation and the OCQ field specifies an unshared not-reconfigurable channel path, only one bit in this mask is set to one.


[0158] When the OC field specifies an add operation and the OCQ field specifies either an unshared reconfigurable or shared channel path, any bits that correspond to provided MIF images can be set to one. At least one bit that corresponds to a provided MIF image is to be set to one.


[0159] When the OC field specifies a modify operation, this mask is not to contain all zeros.


[0160] This bit mask is ignored when any of the following conditions exists: the OC field specifies a delete operation; the CPC is operating in BASIC mode; or the OCQ field specifies a delete-CSS-image access operation.


[0161] (r) Initial-Access Bit Mask (IABM) 536: When the CPC is operating in LPAR mode, this bit mask is used to indicate which MIF images are to be placed into the set of MIF-images that have initial access to the specified channel path. The initial-access bit mask may specify all zeros.


[0162] When the OC field specifies an add operation or add CSS-image access, a one in a bit position of this mask indicates that the correspondingly numbered MIF image is to be added to the set of MIF-images that have initial access to the specified channel path. When the correspondingly numbered bit is zero, the MIF image is not to be added to the set of MIF-images that have initial access to the specified channel path.


[0163] When the OC field specifies an add operation and the OCQ field specifies an unshared reconfigurable or an unshared not-reconfigurable channel path, only one bit in this mask may be one and the correspondingly bit in the reconfiguration-access bit mask is also one.


[0164] When the OC field specifies an add operation and the OCQ field specifies shared, any bits for provided MIF images within the channel subsystem image may be set to one, when the correspondingly bit in the reconfiguration-access bit mask is also set to one.


[0165] When the dynamic-CHPID-management facility is provided by the CPC, and the OC field specifies the add operation, bit 1 of the CHPC field is one, and this is a managed CHPID as designated by the CHPP field, the initial access bit mask that corresponds to provided MIF images is set to zero.


[0166] For each MIF image that has initial-access to the specified channel path, the channel path is configured to the MIF image, when it is subsequently activated as part of a partition activation process. When the specified MIF image is currently active, the channel path is not configured to the MIF image unless the program operating in the logical partition executes an appropriate SCLP reconfiguration command.


[0167] This bit mask is ignored when the OC field specifies a modify, except OCQ=7, or delete operation, or the CPC is operating in BASIC mode.


[0168] (s) Logical Partition Cluster (LPC) Name 538: A logical-partition cluster is the collection of the logical partitions within a CPC that are associated with the same logical-partition-cluster name for a given type of logical-partition-cluster. The program declares a logical-partition-cluster name for a logical partition by means of a Diagnose instruction.


[0169] When the following conditions exist, this field includes the logical-partition-cluster name of the logical-partition cluster with which the specified channel path is to be associated: the dynamic CHPID management facility is provided by the CPC; the CPC is operating in LPAR mode; the OC field specifies the add operation; bit 1 of the CHPC field is one; bit 7 of the CHPP filed is one.


[0170] The contents and format of the logical-partition-cluster name are determined by the program.


[0171] (t) Switch Validity (SWTV) 540: When one, this field specifies that the SWTN field contains valid information.


[0172] (u) Physical Channel Identifier (PCHID) 541: When the multiple channel subsystem facility is provided by the CPC, this field includes an unsigned integer that represents a model-dependent identification of the physical location of a channel. PCHID is used for an initial add operation, except for the addition of an internal channel, such as an internal-queued-direct-communication channel and internal-coupling-peer channel. The PCHID field is ignored, when the CHPT field indicates any of the internal channel-path types. If a PCHID value is not recognized, a response-code may be stored.


[0173] (v) Switch Number (SWTN) 542: When a predefined bit of the SWTV field is one, this field includes a unique identifier of a switch on the specified channel path. When the CHPT field specifies a fibre-channel channel, the switch number (SWTN) designates the entry switch to a fibre-channel fabric.


[0174] (w) Associated Channel Subsystem ID (ACSSID) 544: When the multiple channel subsystem facility is provided by the CPC, this field includes the CSSID of a channel subsystem image that is associated with the CHPID of an internal-coupling-peer channel specified by the ACHPID field. The ACSSID is subject to range and existence checking.


[0175] (x) Associated Channel Path (ACHPID) 546: When the channel identified in the CHPID field is an internal-coupling-peer channel (as indicated by the contents of the CHPT field), the OC field specifies the add operation, conditions allow the addition, and bit 2 of the CHPC field is one, this field includes the CHPID of an internal-coupling-peer channel with which the channel specified in the CHPID field is to be associated.


[0176] When two internal-coupling-peer channels are associated in this way, it means that messages that are sent on either one of the channels are received on the other associated channel.


[0177] When the channel identified in the CHPID field is an internal-coupling-peer channel, the OC field specifies the delete operation, and conditions allow the deletion, the specified channel is deleted from the I/O-configuration definition. If another internal-coupling-peer channel is associated with the specified channel, when the specified channel is deleted, the status of the associated channel is affected as follows: If the associated channel path is configured to one or more MIF images, the associated channel path is deconfigured from those MIF images; the associated channel path enters a state where it is no longer associated with an internal coupling-peer-channel.


[0178] The ACSSID and ACHPID fields, taken together, reference a channel path in a channel subsystem image that may itself be a spanned channel path (call this spanning-group A). When such is the case, the ACSSID field may specify any of the CSSIDs that have the channel path specified by the ACHPID field defined. After the add of the channel path that references spanning-group A, the following requests are supported:


[0179] A modify add-CSS-image-access operation may be requested that specifies RCSSID as the previous ACSSID value, and CHPID as the previous ACHPID value, thus increasing the number of channel subsystem images where the ACHPID is spanned (i.e., increasing the size of spanning-group A).


[0180] A modify add-CSS-image-access operation may be requested that specifies RCSSID as the previous CSSID value, and CHPID as the previous CHPID value, thus increasing the number of channel subsystem images where the CHPID is spanned (call this spanning-group C).


[0181] Spanning-group C is not established until after the linkage is established between the first channel path of spanning-group C and the channel path of one of the channel subsystem images of spanning-group A.


[0182] The connectivity between spanning-group C and A is any-to-any. This connectivity remains intact as long as each spanning-group has at least one channel path defined.


[0183] One embodiment of a command-response block for the Change Channel Path Configuration command is described with reference to FIG. 5b. In one example, a command response block 560 includes the following fields:


[0184] (a) Length Field 562: This field specifies the length of the command-response block. The length depends on the response code that is stored as a result of the attempt to execute the change channel path configuration command.


[0185] (b) Response Code 564: This field includes an unsigned binary integer that describes the results of the attempt to execute the change channel path configuration command. When the response-code field indicates an unsuccessful attempt, no change is made to the I/O-configuration definition, the I/O-configuration-changed condition in the channel subsystem is not affected, and the contents of the program-parameter field are ignored.


[0186] When execution of the change channel path configuration command results in a predefined condition code being set, the channel subsystem has been given the initiative to asynchronously attempt to perform the requested change to the I/O-configuration definition. The completion of that attempt is indicated by means of a CHSC-subchannel I/O interruption with the results of the attempt specified by the response code in the command-response block.


[0187] (c) Format (FMT) 566: The command-response-format field includes an unsigned integer whose value specifies the layout of the command-response block.


[0188] (d) Response-Code Qualifier (RCQ) 568: When a response code other than a code indicating success is stored in the response-code field, this field includes either an architected value or a model dependent value that further describes the condition specified by the response code.


[0189] (e) Response Qualifier (RQ) 570: When the response-code field indicates that the requested configuration change has occurred, the response-qualifier field includes a value that provides information about conditions associated with that change. The meaning of each value is, for example, as follows:
40There are no special conditions associated with the configurationchange.1The information provided by the program for the configurationchange does not match the physical configuration. This value mayoccur when the associated command request specifies an add(OC = 0) operation.2The specified physical channel path (PCHID) is not installed. Thisvalue may occur when the associated command request specifiesan add (OC = 0) operation.


[0190] When the CPC is operating in LPAR mode, there are three cases when the execution of the change channel path configuration command can include an attempt to deconfigure a channel path from one or more MIF images.


[0191] 1. The delete operation is requested, or delete-CSS-image access (OCQ=8) is specified, conditions allow the specified channel to be deleted, and the specified channel path is configured to one or more MIF images within a channel subsystem image. The machine attempts to deconfigure the specified channel path from those MIF images.


[0192] 2. The delete operation is requested, conditions allow the specified channel path to be deleted, the specified channel path is an internal-coupling-peer channel, and an internal-coupling-peer channel that is associated with the specified channel path is configured to one or more MIF images in any one or more channel subsystem images. The machine attempts to deconfigure the associated channel path from those MIF images.


[0193] 3. The modify-unconditional-delete access operation is requested, conditions allow reconfiguration access to the specified channel path to be removed from the specified MIF images, and the specified channel path is configured to one or more of the specified MIF images. The machine attempts to deconfigure the specified channel path from those MIF images.


[0194] In the above cases, when a channel path is deconfigured from a MIF image, a channel-path-permanent-error-with-facility-initialized channel report is made pending for that MIF image and the channel path is no longer available for use by the program operating in the logical partition with which the MIF image is associated.


[0195] In cases 2 and 3 above, when a channel path is deconfigured from a MIF image and it is the last available channel path associated with a subchannel, the subchannel is also made not available to the MIF image. A subchannel-installed-parameters-initialized channel report is made pending for each such subchannel for each affected logical partition.


[0196] Described in detail above is processing associated with a Change Channel Path Configuration Request command. As part of the processing to support MCSS, various error checking procedures are performed, as indicated in FIGS. 5c-5f and described below.


[0197] As shown in FIG. 5c, when the operation code is zero indicating the adding of a CHPID to the I/O configuration definition, checks are made related to the CSSID and PCHID. If the specified checking is successful, then the CHPID is added to the channel subsystem image.


[0198] Similarly, when the operation code equals one and the operation code qualifier is set to 7 (FIG. 5d), then various tests are performed on the CSSID, RCSSID, and CHPID. If the checking is unsuccessful, then appropriate response codes are provided. However, when the checking is successful, then the CHPID is added to the channel subsystem image and bound to the PCHID, which is already bound to the CHPID in the referenced channel subsystem image.


[0199] With reference to FIG. 5e, it is shown that when the operation code is equal to one and the operation code qualifier is set to 8, then testing of the CSSID and CHPID are performed. When those tests are successful, then the CHPID is deleted from the channel subsystem image identified by the CSSID.


[0200] Similarly, in FIG. 5f, it is indicated that when the operation code is equal to 2, then testing is performed on the CSSID and the CHPID specified by the CSSID. When that checking is successful, then the CHPID is deleted from the channel subsystem image identified by the CSSID and the entire configuration.


[0201] As indicated above, another command enhanced by MCSS is a Change Control Unit Configuration command. This command is used to add, modify, or delete the description of a control unit in the I/O-configuration definition. The change control unit configuration command can be executed asynchronously and is not interpretively executed, in one example. Specification of the operation to be performed and the information required to change the I/O-configuration definition are provided in a command-request block.


[0202] One embodiment of a request block for a change control unit configuration command is described with reference to FIG. 6a. In one example, a request block 600 includes, for instance:


[0203] (a) Length Field 602: This field specifies the length of the block.


[0204] (b) Command Code 604: This field specifies the change-control-unit-configuration command.


[0205] (c) Operation Code (OC) 606: This field includes a value that specifies the type of control unit configuration operation that is to be performed. The fields of the request-data area of the command request block that are used are dependent upon the operation to be performed. The meaning of each value is, for example, as follows:
50Add the description of the specified control unit to the I/O-configuration definition.1Modify the description of the specified control unit in the I/O-configuration definition. The type of modification is specified bythe operation-code qualifier (OCQ). The CUN field is used toidentify the control unit for which the description is to be modified.Additional fields may be used, depending on the contents of theOCQ field. Additional fields that are used are identified in thedescriptions of the OCQ values.2Delete the description of the specified control-unit image from theI/O-configuration definition. The effective CSSID is to specify theremaining channel subsystem image that contains the control-unitimage. The CUN field is examined for use in performing thedelete operation.3Store additional information: One or more subchannel blocks thatcould not be contained in the command response block for aprevious change-control-unit-configuration command arerequested.


[0206] Successful add, modify, and delete operations cause the I/O-configuration-charged condition to be set in the channel subsystem. Successful add, modify, and delete operations cause the channel subsystem to retain the specified program parameter, replacing the current program parameter, if any, in the channel subsystem.


[0207] (d) Multiple Channel Subsystem Bit (M) 608: When the multiple channel subsystem facility is provided by the CPC, then when M is one, the CSSID field is checked for a valid CSSID. If valid, the value in the CSSID field becomes the effective CSSID. When M is zero, the default CSSID is the effective CSSID.


[0208] (e) Format (FMT) 610: The command-request-format field includes an unsigned integer whose value specifies the layout of the command-request block. The request block described herein is format zero, as one example.


[0209] (f) Operation-Code Qualifier (OCQ) 611: This field includes a value that qualifies the operation specified by the OC field. The meaning of each value of the OCQ field is, for instance, as follows:
60The operation specificed by the OC field is not qualified by theOCQ field1Add channel-path access: The I/O-configuration definition ismodified by adding one or more channel paths to the current list ofchannel paths that can be used to access the specified control unit.When the multiple channel subsystem facility is provided by theCPC, this form of modification applies, when the specified control-unit image is defined to the channel subsystem image specified bythe CSSID field.Subchannels that are added as a result of the modify (add channel-path access) operation are in the initialized state and are notenabled.When one or more channel paths that are in the configured stateare placed on the list of channel paths that can be used to accessthe specified control unit, the corresponding bits of the path-installed mask (PIM) and the path-available mask (PAM) forsubchannels associated with I/O-devices that are described asbeing attached to the specified control unit are set to ones. If thechannel paths are in the not-configured state, the appropriate PIMbits are set to ones.This OCQ value may be specified, when the OC field specifies themodify operation.The M-bit, CSSID field, CHPIDV, and CHPID fields are used forthis modify operation. The FLA fields are used when thecorresponding channel paths are channel-path types that adhere tothe serial-I/O architectures, and the link-address portions of theFLA fields may be used (depending on the model), when thecorresponding channel paths are fiber-extended channel paths, orfibre-channel channel paths.2Delete channel-path access: The I/O-configuration definition ismodified by deleting one or more channel paths from the currentlist of channel paths that can be used to access the specified controlunit.Subchannels that are deleted as a result of the modify (deletechannel-path access) operation have the device-number-valid bitset to zero.When one or more channel paths are deleted from the list ofchannel paths that can be used to access the specified control unit,the corresponding bits of the path-installed mask (PIM) and thepath-available mask (PAM) for subchannels associated with I/O-devices that are described as being attached to the specified controlunit are set to zeros.This OCQ value may be specified, when the OC field specifies themodify operation.The M-bit, CSSID field, CHPIDV, and CHPID fields are used forthis modify operation. The CHPIDV field is to contain at least onebit that is one. Each valid CHPID field specifies a channel paththat is to be deleted from the list of channel paths for the specifiedcontrol unit.3Add unit address: The I/O-configuration definition is modified byadding one or more unit addresses to the current list of unitaddresses that are recognized by the specified control unit. Eachadded unit address becomes available to any logical partition thathas channel-path accessibility to the control unit.This OCQ value may be specified, when the OC field specifies themodify operation.The unit-address field is used for this modify operation.4Delete unit address: The I/O configuration definition is modifiedby deleting one or more unit addresses from the current list of unitaddresses that are recognized by the specified control unit. Eachdeleted unit address becomes unavailable to any logical partitionthat has channel-path accessibility to the control unit.This OCQ value may be specified, when the OC field specifies themodify operation.The unit-address field is used for this modify operation.5Modify the maximum-managed-channel-path (MMCP) value: Themaximum number of managed channel paths to which thespecified control unit can be attached is changed to the valuespecified in the MMCP field, provided that certain conditions aresatisfied.When the multiple channel subsystem (MCSS) facility is providedby the CPC, the effective CSSID associated with such a requestmay be used to determine the channel subsystem image to whichthe change is confined. Thus, the effective scope of a successfulmodification of the maximum-managed-channel-path of thespecified control unit may be limited to the channel subsystemimage specified on the request to change the MMCP value. Anyother access of the control unit via a different channel subsystemimage continues to observe the MMCP value that existed prior tothe change. Another request via a different channel subsystemimage may make its own, independent MMCP-change request.This OCQ value may be specified, when the dynamic-CHPIDmanagement facility is provided by the CPC and the OC fieldspecifies the modify operation. When the dynamic-CHPID-management facility is not provided by the CPC, the OCQ value of5 is reserved.The MMCP count, the M-bit and CSSID fields are used for thismodify operation.6Add CU-image to CSS image: This operation-code qualifierapplies when the multiple channel subsystem facility is providedby the CPC. The control unit is to already be in the I/O-configuration definition, and thus, at least one control-unit image isestablished, although not from the channel subsystem imagespecified by the effective CSSID. The I/O-configuration definitionis modified by adding a control-unit image to the channelsubsystem image specified by the effective CSSID, and thus,introducing access to the control unit from the channel subsystemimage via one or more specified channel paths.The M-bit, CSSID field, CHPIDV, CHPID, and MMCP fields areused for this modify operation. The FLA fields are used, when thecorresponding channel paths are channel-path types that adhere tothe serial-I/O architectures, and the link-address portions of theFLA fields may be used (depending on the model and presence ofone or more switches, when applicable), when the correspondingchannel paths are fiber-extended channel paths, or fibre-channelchannel paths.7Delete CU-image from CSS image: This operation-code qualifierapplies when the multiple channel subsystem facility is providedby the CPC. The I/O-configuration definition is modified bydeleting a specified control-unit image from the channel subsystemimage. If the specified control-unit image is not defined in thechannel subsystem image, a response-code may be stored.


[0210] The M-bit and CSSID fields are used for this modify operation.


[0211] (g) Key 612: This field includes a storage access key used by the channel subsystem to access the command-request block and the command-response block for asynchronous operations that are initiated by the command.


[0212] (h) Subsystem ID (SID) 614: The SID field specifies the CHSC subchannel that is used to perform operations that are asynchronous to CHSC execution.


[0213] (i) Program Parameter 616: This field includes a value that the program associates with this change control unit configuration command.


[0214] (j) CSSID 618: When the multiple channel subsystem facility is provided by the CPC, this field may specify the CSSID used to locate the target channel subsystem image, and thus, locate the channel paths whose CHPIDs are specified. The CSSID value is subject to range and existence checking.


[0215] (k) Control-Unit Number (CUN) 620: This field specifies a number that is used to identify the control unit that is the object of the change control unit configuration command.


[0216] (l) Control-Unit-Interface Protocol (CUIP) 622: This field specifies the type of protocol used by the specified control unit to communicate on the attaching I/O-interfaces. The meaning of each value is, for instance, as follows:
70Direct-Current (DC) interlocked (applies to parallelchannels).13-megabyte-per second data streaming (applies to parallelchannels).24.5 megabyte-per-second data streaming (applies to parallelchannels).3Serial-I/O protocols.4Open System Adapter (OSA) protocols.


[0217] When the operation-code field specifies the add operation and one or more of the specified channel paths are an internal-system-device channel or fibre-channel-converted-channel-path type, serial-I/O protocols are to be specified in the CUIP field.


[0218] In one example, the contents of the CUIP field have no meaning for certain channel-path types (e.g., those that are not parallel, serial-1/O, OSA, internal-system-device, or fibre-channel-converted channels).


[0219] (m) Control-Unit Characteristics (CUC) 624: This field specifies characteristics of the specified control unit. The meaning of bits 0-7 is, for instance, as follows:
8BitsMeaning0Concurrency level of I/O requests: When zero, this bitspecifies that the control unit supports only one I/O requestat a time. When one, this bit specifies that the control unitsupports multiple I/O requests concurrently.The concurrency-level bit has meaning, when the channelpaths to which the control unit is attached are parallelchannels or fiber-extended channels (byte or block).Otherwise, the concurrency-level bit is ignored.1CTC-control-unit-type specification: When zero, bit 1indicates that the specified control unit is not a FICONCTC control unit. When one, bit 1 indicates that thespecified control unit is a FICON CTC control unit.This bit is meaningful, when the OC field specifies the addoperation. Otherwise this bit is ignored. When thespecified control unit is a FICON CTC control unit thefollowing conditions apply.The MMCP field is ignored.When the OC field specifies the modify operation,and the OCQ field specifies the modify-the-MMCP-value function, a response-code is stored in theresponse block.One CHPID field and its corresponding FLA field isspecified as containing valid information.The channel-path type to which the specifiedcontrol unit is attached is a fibre-channel path.


[0220] (n) Channel-Path-Identifier Validity (CHPIDV) 626: This field specifies which of the CHPID and FLA fields (if applicable) contain valid information. Bits 0-7 of the CHPIDV field correspond, from left to right, to each of the eight CHPID fields. When one, a CHPIDV bit specifies that the corresponding CHPID field contains a valid channel-path identifier.


[0221] When the OC field specifies the add operation, or the OC field specifies the modify operation and the OCQ field specifies add or delete channel-path access, the CHPIDV field is not to contain all zeros and the corresponding CHPID fields contain valid information; otherwise, the contents of the CHPID fields are ignored.


[0222] When the CHPID fields contain valid information and the corresponding channel paths are serial-I/O type, fibre-channel, fibre-channel-converted, internal-queued, direct-communication channels, or fiber-extended channels, the corresponding FLA fields contain valid information; otherwise, the contents of the FLA fields are ignored.


[0223] (o) Maximum Managed Channel Paths (MMCP) 628: When the dynamic-CHPID-management facility is provided by the CPC, this field includes an unsigned binary integer that is a count of the maximum number of managed channel paths to which the specified control unit can be attached.


[0224] (p) Channel-Path Identifier (CHPID) 630: This field includes up to eight channel-path identifiers. Each CHPID field that is specified as being valid by the contents of the CHPIDV field contains a unique channel-path identifier of a channel path that can be used to access the specified control unit. The effective CSSID specifies the channel subsystem image in which each valid channel path is located.


[0225] The order in which channel paths (other than preferred channel paths) are selected by the channel subsystem to access I/O-devices that are attached to the specified control unit is model dependent.


[0226] When the CPC is operating in LPAR mode, for a given I/O-configuration definition, the channel paths to which a control unit is attached are to be sharable, or all of the channel paths are not to be sharable.


[0227] (q) Full Link Address (FLA) 632: This field includes up to eight full link addresses for the specified control unit. Each address corresponds, one-for-one, with the CHPID field that is in the same relative position in the command-request block. The FLA fields have meaning when the control-unit is attached to a type of channel path that uses an interface protocol that requires use of a link address, a logical address, or both.


[0228] A full link address is the information that is contained in the destination-address field of frames that are received by the specified control unit, and in the source-address field of frames that are sent by the specified control unit.


[0229] Each address includes, for instance, a link address that is established based upon the channel-path type of the specified channel path and a logical address of the specified control unit on the specified channel path.


[0230] (r) Unit Addresses 634: This field describes the I/O-device unit addresses that are recognized by the control unit. A unit address includes, for instance, an Entry Type (ET) that includes a code that specifies the contents of the unit address. For example, when the entry type is equal to 1, the unit address field defines a single unit address, included in the field, that is recognized by the control unit.


[0231] As a further example, when the entry type is equal to 2, the unit address defines a range of unit addresses that are recognized by the control unit. The unit address field includes a unit address, which determines the beginning of the range, and a count parameter of the unit address field specifies one less than the number of consecutive unit addresses that make up the range.


[0232] Managed Channel-Path Specification Rules: The following rules apply when the requested I/O-configuration change affects the managed-path attributes of the specified control unit:


[0233] 1. When the add operation is specified in the OC field and a non-zero MMCP value is specified:


[0234] a. The specified MMCP value is to be seven or less.


[0235] b. The number of bits that are one in the CHPIDV field which designate managed channel paths is to be equal to, or less than, the specified MMCP value.


[0236] c. The sum of the number of bits that are one in the CHPIDV field which designate non-managed channel paths and the specified MMCP value is to be eight or less.


[0237] d. When the CPC is operating in LPAR mode, every channel path designated by a bit that is one in the CHPIDV field is to be a shared channel path.


[0238] e. Every channel path designated by a bit that is one in the CHPIDV field is to be one of the types that are allowed for the specified control unit when it is attached to managed channel paths.


[0239] 2. When the modify operation is specified in the OC field, the modify MMCP operation is specified in the OCQ field, and the specified MMCP value is the same as the MMCP value that is currently in effect for the specified control unit, no operations are performed regarding managed channel paths and the command completes normally.


[0240] 3. When the modify operation is specified in the OC field, the modify MMCP operation is specified in the OCQ field, and the specified MMCP value is different from the MMCP value that is currently in effect for the specified control unit:


[0241] a. The specified MMCP value is to be seven or less.


[0242] b. The sum of the number of non-managed channel paths currently configured to the specified control unit and the specified MMCP value is to be eight or less.


[0243] c. When the CPC is operating in LPAR mode, every channel path that is currently configured to the specified control unit is to be a shared channel path. (This rule is enforced, when the MMCP value that is in effect for the specified control unit would change from zero to non-zero as a result of executing the command.)


[0244] d. Every channel path currently configured to the specified control unit is to be one of the types that are allowed for the specified control unit when it is attached to managed channel paths. (This rule is enforced, when the MMCP value that is in effect for the specified control unit would change from zero to non-zero as a result of executing the command.)


[0245] e. The sum of the number of non-managed channel paths currently configured to all of the control units of a shared device cluster that includes the specified control unit, and the MMCP values that are in effect for all of those control units except the specified control unit, and the specified MMCP value is to be eight or less.


[0246] f. Every channel path currently configured to the control units of a shared device cluster that contains the specified control unit is to be one of the types that are allowed for the specified control unit when it is attached to managed channel paths. (This rule is enforced, when the sum of the MMCP values that are in effect for the control units of the shared device cluster would change from zero to non-zero as a result of executing the command.)


[0247] 4. When the modify operation is specified in the OC field, the add-channel-path-access operation is specified in the OCQ field, and an MMCP value is in effect for either the specified control unit or one or more of the other control units of a shared device cluster that contains the specified control unit:


[0248] a. The sum of the number of non-managed channel paths that are currently configured to the specified control unit, and the number of bits that are one in the CHPIDV field which designate non-managed channel paths, and the MMCP value that is in effect for the specified control unit is to be eight or less.


[0249] b. The sum of the number of non-managed channel paths that are currently configured to all of the control units of a shared device cluster that includes the specified control unit, and the number of bits that are one in the CHPIDV field which designate non-managed channel paths, and the sum of all of the MMCP values that are in effect for all of the control units of the shared device cluster is to be eight or less.


[0250] c. Every channel path designated by a bit that is one in the CHPIDV field is to be one of the types that are allowed for the specified control unit when it is attached to managed channel paths.


[0251] In one embodiment, a command-response block 650 (FIG. 6b) for a Change Control Unit Configuration command includes, for instance, the following:


[0252] (a) Length Field 652: This field specifies the length of the command-response block. The length depends on the response code that is stored in the response-code field as a result of the attempt to execute the change control unit configuration command.


[0253] (b) Response Code 654: This field includes an unsigned binary integer that describes the results of the attempt to execute the change control unit configuration command.


[0254] (c) Format (FMT) 656: The command-response-format field includes an unsigned integer whose value specifies the layout of the command-response block.


[0255] (d) Response-Modifier Code (RMC) 658: This field includes an unsigned integer that may provide additional information when the response code is other than an indication of success. The content of the RMC field is distinctive to each response code value. Not all response codes use the RMC field.


[0256] (e) Response-Code Qualifier (RCQ) 660: This field may contain a model dependent value that can be used to further describe the condition specified by the response code.


[0257] (f) Additional Information (A) 662: When one, this field specifies that the channel subsystem has additional subchannel blocks that cannot be contained in this command-response block. When zero, it specifies that the channel subsystem has no subchannel blocks in addition to those, if any, that are contained in this command-response block.


[0258] (g) Response Qualifier (RQ) 664: When the response-code field indicates that the requested configuration change has occurred, the response-qualifier field contains a value that provides information about conditions associated with that change. The meaning of each value is, for instance, as follows:
90There are no special conditions associated with the configurationchange.1The information provided by the program for the configurationchange does not match the physical configuration.


[0259] (h) Shared-Device-Cluster (SDC) Blocks 666: This field includes one or more shared-device-cluster (SDC) blocks. Each SDC block that is specified as being valid describes a shared device cluster that contains one or more I/O-devices that are described as being attached to the control unit specified in the command-request block of the change-control-unit-configuration command that caused the SDC block to be created.


[0260] A shared device cluster is either a single control unit that can provide access to at least one I/O device, but does not share access to I/O devices with any other control unit, or it can be a collection of control units and I/O devices that are connected in such a way that for any division of the total collection of control units into two subsets, at least one I/O device is shared by at least one control unit from each subset.


[0261] One example of an SDC block is described with reference to FIG. 6c. An SDC block 666 includes, for instance, the following:


[0262] (aa) SDC Validity Bit (S) 670: When one, this bit specifies that the associated SDC block is valid. When zero, this bit specifies that the associated SDC block is not valid and there are no subsequent SDC blocks in the command response block that are valid.


[0263] (bb) Image ID Validity Bit (P) 672: When one, this bit specifies that the image ID field contains a valid MIF image identification code. When zero, this bit specifies that the contents of the image ID field are meaningless. The P bit can be one, when the CPC is operating in LPAR mode. When the SDC is associated with shared channel paths, this bit is set to zero.


[0264] (cc) Shared Device Cluster (SDC) Number 673: This field includes an SDC number that identifies the shared device cluster described by this SDC block. Within a channel subsystem image, every SDC has unique number.


[0265] (dd) MIF-Image ID (IID) 674: When the CPC is operating in LPAR mode and the P bit is one, this field includes the MIF-image identification (IID) code associated with the logical partition from which the specified SDC is recognized. The SDC blocks returned are from the same channel subsystem image that was specified in the corresponding command request.


[0266] (ee) Path Mask-1 (PM-1) 675: This field specifies the CHPID fields that identify the channel paths that are described in the I/O-configuration definition for the specified SDC. Each bit of the PM-1 field corresponds one-for-one, by relative position, with each of the CHPID fields. A PM-1 bit stored as one specifies that the contents of the corresponding CHPID field identifies a channel path for the specified SDC. A PM-1 bit stored as zero specifies that the contents of the corresponding CHPID field have no meaning.


[0267] (ff) Path Mask-2 (PM-2) 676: When the CPC is operating in LPAR mode, this field specifies the CHPID fields that identify the channel paths that are configured to the specified logical partition for the specified SDC. Each bit of the PM-2 field corresponds one-for-one, by relative position, with each of the CHPID fields. A PM-2 bit stored as one specifies that the contents of the corresponding CHPID field identifies a channel path for the specified SDC and the specified logical partition. A PM-2 bit stored as zero specifies that the contents of the corresponding CHPID field have no meaning.


[0268] A PM-2 bit can be one, if the corresponding bit of the PM-1 field is one. When the CPC is operating in LPAR mode and the specified channel paths are shared channel paths, the contents of the PM-2 field have no meaning. When the CPC is operating in BASIC mode, the contents of PM-2 field have no meaning.


[0269] (gg) Channel-Path Identifiers (CHPfDs) 678: This field includes, for instance, eight CHPID fields. The CHPID fields that correspond to the bits of the PM-1 field that are ones contain the CHPIDs of channel paths for the specified SDC. The contents of CHPID fields that correspond to the bits of the PM-1 field that are zero are meaningless.


[0270] (i) Subchannel Blocks 668 (FIG. 6b): When the length field contains a value greater than a predetermined value (e.g., 0090 hex), this field includes one or more subchannel blocks. Each subchannel block describes a subchannel that is affected by the requested change to the I/O configuration.


[0271] One example of a subchannel block is described with reference to FIG. 6d. A subchannel block 668 includes, for instance:


[0272] (aa) Status 682: This field includes information about the status of the corresponding I/O-device. The meanings of bits 0-7 are, for instance, as follows:
10BitsMeaning0When one, bit 0 specifies that the installed parameters forthe specified subchannel have been set to the initializedstate. When zero, bit 0 specifies that the installedparameters for the specified subchannel have beenmodified, but they are not set to the initialized state.1When one, bit 1 specifies that the IID field contains a validMIF image-identification code. When zero, bit 1 specifiesthat the contents of the Image-ID field are meaningless.This bit can be one, when the CPC is operating in LPARmode.2When the OC field of the command-request block of thechange control unit configuration command that caused thissubchannel block to be created specifies the modify (deletechannel-path access) operation, bit 2 specifies whether adedicated-allegiance condition existed or whether thechannel subsystem was in the process of accepting statusthat contains unit check, when the modify (delete channel-path access) operation was performed for the specified I/Odevice. When zero, bit 2 specifies that a dedicated-allegiance condition did not exist. When one, bit 2 specifiesthat a dedicated-allegiance condition did exist, and bit 3 ofthe status field specifies whether the channel subsystemwas able to clear the associated contingent-allegiancecondition at the device.When the OC field of the command-request block of thechange control unit configuration command that caused thissubchannel block to be created does not specify the modify(delete channel-path-access) operation, bit 2 has nomeaning.3When bit 2 of the status field has meaning and is one, bit 3specifies whether the channel subsystem was able to clearthe contingent-allegiance condition at the specified I/O-device. When zero, bit 3 specifies that the channelsubsystem was able to clear the contingent-allegiancecondition (which could result in zero sense data). Whenone, bit 3 specifies that the channel subsystem was unableto clear the contingent-allegiance condition.When bit 2 of the status field has no meaning or hasmeaning and is zero, bit 3 has no meaning.4When the OC field of the command-request block of thechange control unit configuration command that caused thissubchannel block to be created specifies the modify (deletechannel-path access) operation, bit 4 specifies whether anI/O-operation was in progress when the modify (deletechannel-path access) operation was performed for thespecified I/O-device. When zero, bit 4 specifies that anI/O-operation was not in progress. When one, bit 4specifies that an I/O-operation was in progress, and bit 5 ofthe status field specifies whether the channel subsystemwas able to terminate the I/O-operation at the specified I/O-device.When the OC field of the command-request block of thechange control unit configuration command that caused thissubchannel block to be created does not specify the modify(delete channel-path-access) operation, bit 4 has nomeaning.5When bit 4 of the status field has meaning and is one, bit 5specifies whether the channel subsystem was able toterminate the I/O operation at the specified I/O-device.When zero, bit 5 specifies that the channel subsystem wasable to terminate the I/O-operation at the I/O-device. Whenone, bit 5 specifies that the channel subsystem was unableto terminate the I/O operation at the I/O-device.When bit 4 of the status field has no meaning or hasmeaning and is zero, bit 5 has no meaning.6When the OC field of the command-request block of thechange control unit configuration command that caused thissubchannel block to be created specifies the modify (deletechannel-path access) operation, bit 6 specifies whether theenabled bit (of the PMCW) was one or zero for thespecified subchannel, when the channel subsystem startedto perform the requested operation. When zero, bit 6specifies that the enabled bit was zero. When one, bit 6specifies that the enabled bit was one.When the OC field of the command-request block of thechange control unit configuration command that caused thissubchannel block to be created does not specify the modify(delete channel-path-access) operation, bit 6 has nomeaning.7When the OC field of the command-request block for thechange control unit configuration command that caused thissubchannel block to be created specifies the modify (deletechannel-path access) operation and the CPC is operating inLPAR mode, bit 7 specifies whether the interruption-interlock control bit (of the PMCW) was one or more forthe specified subchannel, when the channel subsystemstarted to perform the requested operation. When zero, bit7 specifies that the interruption-interlock bit was zero.When one, bit 7 specifies that the interruption-interlock bitwas one.When the OC field of the command-request block of thechange control unit configuration command that caused thissubchannel block to be created does not specify the modify(delete channel-path-access) operation, bit 7 has nomeaning.


[0273] (bb) Device Number 684: This field includes a binary representation of the device number for the I/O-device that is associated with the specified subchannel.


[0274] (cc) MIF-Image ID (IID) 686: When the CPC is operating in LPAR mode and bit 1 of the status field is one, this field includes the MIF image-identification (IID) code associated with the logical partition with which the specified subchannel is associated. Otherwise, the contents of the IID field have no meaning.


[0275] (dd) Subchannel Number 688: This field specifies the subchannel to which the information in this subchannel block applies.


[0276] In one example, the following statements apply, when the CPC is operating in LPAR mode, SIE is not active, and the logical-partition hypervisor causes the change control unit configuration command to be executed:


[0277] When the multiple channel subsystem facility is provided by the CPC, the effective-CSSID determination process is performed.


[0278] The channel subsystem performs the requested configuration change for the control unit specified in the logical-partition-hypervisor request block.


[0279] When the command is executed asynchronously, the channel subsystem uses the CHSC subchannel specified by the subsystem-ID word of the logical-partition-hypervisor request block.


[0280] If the IID in the subsystem-ID word of the logical-partition-hypervisor request block does not exist for the current configuration, the requested configuration change is not performed and an operand exception condition is recognized.


[0281] When an IID is to be stored, the channel subsystem stores it in the MIF-image ID field of the appropriate SDC or subchannel block contained in the logical-partition-hypervisor response block. This IID identifies the MIF image with which an SDC or subchannel is associated. The CSSID specified in the LPAR-hypervisor command-request block together with the IID corresponds to the logical partition on whose behalf the LPAR hypervisor executed the command request.


[0282] Described in detail above is processing associated with the Change Control Unit Configuration Request command. As part of the processing to support MCSS, certain error checks are performed, as indicated in FIGS. 6e-6h and described herein.


[0283] For example, as shown in FIG. 6e, when the operation code is equal to zero, checks are performed on the CSSID and on the CHPID of the CSSID. If that checking is satisfactory, then the link specified CHPIDs to the control unit and a successful response code is indicated.


[0284] Similarly, when an operation code of one is provided, as well as an operation code qualifier of 6 (FIG. 6f), then error checking is performed on the CSSID, CHPIDs of the CSSID and of the control unit. If these checks prove to be satisfactory, then the link specified CHPIDs to the control unit and a successful response code is indicated.


[0285] Further, when the operation code is equal to one and the operation code qualifier is set to 7, as shown in FIG. 6g, then checking is performed on the CSSID and control units of the CSSID. If this checking is successful, then the link between the control unit and CHPIDs in the CSS image is broken and a successful return code is indicated.


[0286] Lastly, when the operation code is equal to two (FIG. 6h), then checking is performed on the CSSID and the control unit of the CSSID. If the checking proves to be successful, then the link between the control unit and the CHPIDs in the CSS image is broken and a successful return code is indicated.


[0287] Another command that is enhanced for MCSS is the Change I/O Device Configuration command. The change I/O device configuration command is used to add, modify, or delete the description of one or more I/O devices in the I/O configuration definition. In one example, the change I/O device configuration command is executed asynchronously, and is not interpretively executed. Specification of the operation to be performed and the information used to change the I/O-configuration definition is provided in a command request block.


[0288] One embodiment of a change I/O device configuration command request block is described with reference to FIG. 7a. Change I/O device configuration command request block 700 includes, for instance, the following:


[0289] (a) Length Field 702: This field specifies the length of the command-request-block.


[0290] (b) Command Code 704: This field specifies the change I/O device configuration command.


[0291] (c) Operation Code (OC) 706: This field includes a value that specifies the type of I/O-device configuration operation that is to be performed. The fields of the request-data area of the command-request block that are used are dependent upon the operation to be performed. The contents of request-data-area fields that are not specified as being examined for possible use in performing the requested operation are ignored. The meaning of each value is, for instance, as follows:
110Add the description of the specified I/O devices to the I/Oconfiguration definition.Subchannels that are added as a result of the add operation are inthe initialized state.When the multiple channel subsystem facility is provided,subchannels that are added are added to the target channelsubsystem image specified by the CSSID field.When one or more channel paths that are in the configured stateare placed on the list of channel paths that can be used to accessthe specified I/O devices, the corresponding bits of the path-installed mask (PIM) and the path-available mask (PAM) for eachsubchannel associated with the specified I/O devices are set toones. If the channel paths are in the not-configured state, theappropriate PIM bits are set to ones.All of the fields except for the DNQ and RCSSID fields areexamined for use in performing the add operation.1Modify the description of the specified I/O devices in the I/O-configuration definition. The type of modification is specified bythe operation-code qualifier (OCQ).The M-bit, CSSID, count, unit-address, device-number and DNQfields are used to identify the I/O devices for which descriptionsare to be modified. Additional fields may be used, depending onthe contents of the OCQ field. Additional fields that are used areidentified in the descriptions of the OCQ values.2Delete the description of the specified I/O devices from the I/O-configuration definition.Subchannels that are deleted as a result of the delete operationhave the device-number-valid bit set to zero.When the multiple channel subsystem facility is provided, theeffective CSSID is to specify the remaining channel subsystemimage that contains subchannel images for the specified I/Odevices.The M-bit, CSSID, count, unit-address, device-number, and DNQfields are the only fields that are examined for use in performingthe delete operation.3Store additional information: One or more subchannel blocks thatcould not be contained in the command-response block for aprevious change I/O device configuration command are requested.When the OC field contains a value of 3, no change is made to theI/O-configuration definition.The contents of the OCQ field, the M-bit, the program parameter,CSSID, RCSSID, Count, IODC, EIODC, PCHP, Unit Address,Device Num, CUNV, DNQ, CUNs, and CMI Bit Mask of therequest block are ignored.


[0292] Successful add, modify, and delete operations cause the I/O-configuration-changed condition to be set in the channel subsystem.


[0293] Successful add, modify, and delete operations cause the channel subsystem to retain the specified program parameter, replacing the current program parameter, if any, in the channel subsystem.


[0294] An operation is considered to be successful when the channel subsystem attempts to store a successful response code, even if that attempt is unsuccessful.


[0295] (d) Multiple Channel subsystem Bit (M) 708: When the multiple channel subsystem facility is provided by the CPC and is one, the CSSID and RCSSID fields are checked for a valid CSSID. If valid, the values in the CSSID and RCSSID fields become their respective effective CSSIDs. When M is zero, the default CSSID is the effective CSSID and the CSSID and RCSSID fields are to be zero.


[0296] (e) Format (FMT) 710: The command-request-format field contains an unsigned integer whose value specifies the layout of the command-request block.


[0297] (f) Operation-Code Qualifier (OCQ) 712: This field includes a value that qualifies the operation specified by the OC field. The meaning of each value of the OCQ field is, for instance, as follows:
120The operation specified by the OC field is not qualified by theOCQ field.1Add control-unit access: The I/O-configuration definition is to bemodified by adding one or more control units to the current list ofcontrol units that can be used to access the specified I/O devices.If the specified subchannel images or control-unit images are notalready defined in the specified channel subsystem image, adefined response code may be stored.Subchannels that are added as a result of the modify (add control-unit access) operation are in the initialized state and are notenabled.When one or more channel paths that are in the configured stateare placed on the list of channel paths that can be used to accessthe specified I/O devices, the corresponding bits of the path-installed mask (PIM) and the path-available mask (PAM) for eachsubchannel associated with the specified I/O devices are set toones. If the channel paths are in the not-configured state, theappropriate PIM bits are set to ones.This OCQ value may be specified, when the OC field specifies themodify operation.The CUNV and CUN fields are used for this modify operation.The CUNV field is to contain at least one bit that is one. Eachvalid CUN field specifies a control unit that is to be added to thelist of control units for the specified I/O devices.2Delete control-unit access: The I/O-configuration definition is tobe modified by deleting one or more control units from the currentlist of control units that can be used to access the specified I/Odevices.Subchannels that are deleted as a result of the modify (deletecontrol-unit access) operation have the device-number-valid bit setto zero.When one or more channel paths are deleted from the list ofchannel paths that can be used to access the specified I/O devices,the corresponding bits of the path-installed mask (PIM) and thepath-available mask (PAM) for each subchannel associated withthe specified I/O device are set to zeros.This OCQ value may be specified, when the OC field specifies themodify operation.The CUNV and CUN fields are used for this modify operation.The CUNV field is to contain at least one bit that is one. Eachvalid CUN field specifies a control unit that is to be deleted fromthe list of control units for the specified I/O devices.If the removal of access for a control unit results in the removal ofa preferred channel path for one or more I/O devices attached tothe specified control unit, then it is as if no preferred path has beendefined when those I/O devices were initially described in the I/O-configuration definition. If the affected I/O devices are to onceagain have preferred channel paths for I/O operations, thedescription of those I/O devices is to be changed.3Modify I/O-device characteristics: The characteristics of thespecified I/O devices are to be replaced by the characteristicsspecified in the IODC field. CTCA mode specification (in theIODC field) is an exception to this rule because the ability tospecify CTCA mode is not provided when the OC field specifiesthe modify operation. I/O-device-type specification (in the IODCfield) is an exception to this rule because the device type being adirect-access-storage device or not being a direct-access-storagedevice is not applicable.This OCQ value may be specified, when the OC field specifies themodify operation.The IODC and PCHP fields are used for this modify operation.When the multiple channel subsystem facility is provided,modification of I/O-device characteristics is confined to the scopeof the target channel subsystem image specified by the CSSIDfield. With the exception of the setting of the preferred-channel-path bit, it is the responsibility of the program to maintain aconsistent setting of the device characteristics bits across channelsubsystem images that contain subchannels for the specifieddevices.4Add MIF-images access: The I/O-configuration definition is to bemodified by adding one or more MIF images to the list of MIFimages within the specified channel subsystem image that provideshared access to the specified I/O device. The candidate-MIF-images bit mask specifies the additional MIF images throughwhich shared access is to be provided.In this embodiment, the MIF images within a channel subsystemimage that provide shared access to the specified I/O device usethe same subchannel number to do so. As viewed through the MIFimage to which shared access has been added as a result of themodify operation, the associated subchannel is in the initializedstate and is not enabled.When the channel paths that attach the specified I/O device are inthe configured state for a specified MIF image, the correspondingbits of the path-installed mask (PIM) and the path-available mask(PAM) for the associated subchannel are set to ones. When thechannel paths are in the not-configured state, the appropriate PIMbits are set to ones.This OCQ value can be specified, when the CPC is operating inLPAR mode, the OC field specifies the modify operation, and thespecified I/O device is attached to shared channel paths.The candidate-MIF-images bit mask is examined for use inperforming this operation.5Delete MIF-image access: The I/O-configuration definition ismodified by deleting one or more MIF images from the list of MIFimages within the specified channel subsystem image that canprovide shared access to the specified I/O device. The candidate-MIF-images bit mask specifies the MIF images from which sharedaccess is to be deleted.As viewed from the MIF image from which shared access has beendeleted as a result of the modify operation, the associated sub-channel has the device-number-valid bit set to zero.When access by all provided MIF images has been deleted, thespecified I/O-device descriptions are not deleted from the I/O-configuration definition.This OCQ value can be specified, when the CPC is operating inLPAR mode, the OC field specifies the modify operation, and thespecified I/O device is attached to shared channel paths.The candidate-MIF-images bit mask is examined for use inperforming this operation.6Add subchannel image to channel subsystem image: This OCQvalue applies, when the multiple channel subsystem facility isprovided by the CPC.The I/O configuration definition is modified by adding subchannelimages for the specified I/O devices to the target channelsubsystem image specified by the CSSID field. This introducesaccess to the devices via one or more specified control units thatare configured in the specified target channel subsystem image.Subchannels that are added as a result of this operation are in theinitialized state and are not enabled.When one or more channel paths that are in the configured stateare placed on the list of channel paths that can be used to accessthe specified I/O devices, the corresponding bits of the path-installed mask (PIM) and the path-available mask (PAM) for eachsubchannel associated with the specified I/O devices are set toones. If the channel paths are in the not-configured state, theappropriate PIM bits are set to ones.Specified I/O devices are to already exist in the I/O configurationand have subchannel images in the reference channel subsystemimage specified by the RCSSID field. Specified I/O devices arenot to already have subchannel images in the target channelsubsystem image specified by the CSSID field. The reference andtarget channel subsystem images are not to be the same (CSSID isnot to equal RCSSID).Each valid CUN field is to specify a control unit that already existsin the target channel subsystem image.The RCSSID, IODC, PCHP, CUNV, CUN, and candidate-MIF-images bit mask fields are used for this modify operation. TheCUNV field is to contain at least one bit that is one. Each validCUN field specifies a control unit that is added to the list of controlunits that can be used to access the specified devices.7Delete subchannel image from channel subsystem image: ThisOCQ value applies, when the multiple channel subsystem facilityis provided by the CPC. The I/O configuration definition ismodified by deleting the subchannel images for the specified I/Odevices from the target channel subsystem image specified by theCSSID field.The subchannel images are effectively deleted from the MIFimages within the target channel subsystem image. Subchannelsthat are deleted as a result of this modify operation have thedevice-number-valid bit set to zero.The specified devices being deleted by this operation are to havesubchannel images currently defined in more than one channelsubsystem image.


[0298] (g) Key 714: This field includes the storage-access key used by the channel subsystem to access the command-request block and the command-response block for asynchronous operations that are initiated by the command.


[0299] (h) Subsystem ID 716: This field specifies the CHSC subchannel that is used to perform operations that are asynchronous to CHSC execution.


[0300] (i) Program Parameter 718: This field includes a value that the program associates with this change I/O device configuration command.


[0301] (j) Channel subsystem-Image ID (CSSID) 720: When the multiple channel subsystem facility is provided by the CPC, this field may specify the CSSID of the target channel subsystem image that is used to locate the preferred channel path that is specified by the PCHP field, the I/O devices that are specified by the device-number and count fields, and any control units specified by the CUNV and CUN fields. The CSSID is subject to range and existence checking.


[0302] (k) Reference Channel subsystem-Image ID (RCSSID) 722: When the multiple channel subsystem facility is provided and the modify (add-subchannel-image-to-channel subsystem image) operation is specified, this field includes the CSSID of a reference channel subsystem image from which device attributes are inherited for the device specified by the device number and count fields. For all other operations, this field includes zero. The RCSSID value is subject to range and existence checking.


[0303] (l) Count 724: This field specifies one less than the number of I/O devices that are the object of the change I/O device configuration command. Device numbers for the specified I/O devices are determined by using consecutive device numbers beginning with the value contained in the device-number field. Similarly, unit addresses for the specified I/O devices are determined by using consecutive unit addresses beginning with the value contained in the unit-address field.


[0304] (m) I/O-Device Characteristics (IODC) 726: This field specifies characteristics of the specified I/O devices. The contents of the IODC field are meaningful, when the OC field specifies the add operation, or the OC field specifies the modify operation and the OCQ field specifies modify I/O-device characteristics. The preferred-channel-path bit of the IODC field is meaningful, when the OC field specifies the modify operation and the OCQ field specifies add subchannel image to channel subsystem image. The meanings of bits 0-7 are, for example, as follows:
13BitsMeaning0Time Out: When zero, bit 0 specifies that the time-out function isnot active for the specified I/O devices. When one, bit 0 specifiesthat the time-out function is active for the specified I/O devices.Bit 0 is ignored and the time-out function is active for I/O devicesthat can be accessed by means of parallel-byte-multiplexerchannels, serial-I/O channels, fibre-channel channels, and fibre-channel-converted channels, as examples.Bit 0 is ignored and the time-out function does not apply for I/Odevices that can be accessed by means of internal-system-devicechannels, direct-system-device channels, emulated-I/O channels,OSA-express channels, OSA-direct-express channels, open-fibre-channel-protocol-channel, and internal-queued-direct-communication channels, as examples.1Status Verification: When zero, bit 1 specifies that statusverification will not be performed for status that is presented by thespecified I/O devices. When one, bit 1 specifies that statusverification will be performed for status that is presented by thespecified I/O devices.Bit 1 is ignored and the status-verification function does not applyfor I/O devices that can be accessed by means of direct-system-device channels, emulated-I/O channels, OSA-express channels,OSA-direct-express-channels, open-fibre-channel-protocolchannels, and internal-queued-direct-communication channels, asexamples.2Preferred Channel Path: When zero, bit 2 specifies that there is nopreferred channel path that is to be used when there are I/Orequests for the specified I/O devices, and the contents of thePCHP field have no meaning. When one, bit 2 specifies that thereis a preferred channel path that is to be used when there are I/Orequests for the specified I/O devices, and the contents of thePCHP field identify that channel path.3I/O-device-type specification: When zero, bit 3 indicates that thespecified I/O devices are not direct-access-storage devices. Whenone, bit 3 indicates that the specified I/O devices are direct-access-storage devices.4CTCA Mode Specification: When zero, bit 4 indicates that thespecified I/O devices are CTCA-type I/O devices that provideextended-mode CTCA capabilities. When one, bit 4 indicates thatthe specified I/O devices are CTCA-type I/O devices that providebasic-mode CTCA capabilities.Bit 4 has meaning under the following conditions:The OC field specifies the add operation.Only one CUN field is specified as containing validinformation.The channel path to which the specified control unit isattached is an ESCON serial-I/O channel path that can beused to provide access to a channel-to-channel adapter(CTCA) in the CPC that contains that channel path.Otherwise, bit 4 has no meaning and is ignored.5-7Reserved.


[0305] (n) Extended-I/O-Device Characteristics (EIODC) 728: This field specifies additional characteristics of the specified I/O devices. A bit of the EIODC field is meaningful independent of the values specified in the OC and OCQ fields, unless specified otherwise in the description of the bit. The meanings of bits 0-7 are as follows:
14BitsMeanings0Conflict-Response-Code Control: Bit 0 of the EIODC fielddetermines which response code should be stored in the responseblock, if the channel subsystem detects a conflict while attemptingto make a requested change to the list of candidate-MIF imagesthat can share the specified I/O device.When bit 0 of the EIODC field is zero and the followingconditions, as one example, apply, the channel subsystem stores anappropriate response-code in the response block:The CPC is operating in LPAR mode.Bit 30 of the general-characteristics field in a responseblock for a Store Channel Subsystem Characteristicscommand is one, indicating that the fibre-channel (FC)facilities are provided.The OC field specifies the modify operation.The specified I/O devices are attached to one or moreshared channel paths.One or more of the MIF images specified in the candidate-MIF-images bit mask already has access to the specifieddevice (in the case of addition), or one or more of the MIFimages specified in the candidate-MIF-images bit maskdoes not have access to the specified device (in the case ofdeletion).When bit 0 of the EIODC field is one and the above conditionsapply, the channel subsystem stores an appropriate response-codein the response block.Otherwise, bit 0 has no meaning and is ignored.1-7Reserved


[0306] (o) Preferred Channel Path (PCHP) 730: When the contents of the IODC field apply and bit 2 is one, this field specifies the channel-path identifier (CHPID) of the first channel path that the channel subsystem is to attempt to use when there are I/O requests for the specified I/O devices. When the multiple channel subsystem facility is provided, the effective CSSID specifies the channel subsystem image in which the devices and preferred channel path are located.


[0307] (p) Unit Address 732: When the count field contains a value of zero, this field includes the unit address for the specified I/O device. When the count field contains a value that is greater than zero, this field includes a unit address that is the first of a range of unit addresses for the specified I/O devices.


[0308] (q) Device Number 734: When the count field contains a value of zero, this field includes the binary representation of the device number for the specified I/O device. When the count field contains a value that is greater than zero, this field includes a device number that is the first of a range of device numbers for the specified I/O devices. When the multiple channel subsystem facility is provided, the effective CSSID specifies the channel subsystem image in which the devices are located.


[0309] The same number space is used for both I/O-device number and message-device number values.


[0310] (r) Control-Unit Validity (CUNV) 736: This field specifies which of the control-unit-number (CUN) fields contain valid information.


[0311] Bits 0-7 of the CUNV field correspond, from left to right, with each of the eight CUN fields. When one, a CUNV bit specifies that the corresponding CUN field contains a valid control-unit number. When zero, a CUNV bit specifies that the corresponding CUN field does not contain a valid control-unit number and is ignored.


[0312] When the OC field specifies the add operation, the CUNV field is not to contain all zeros. The contents of the valid CUN fields identify the control units that can be used to access the specified I/O devices.


[0313] When the OC field specifies the modify operation and the OCQ field specifies add or delete control-unit access or add subchannel image to channel subsystem image, the CUNV field is not to contain all zeros. The contents of the valid CUN fields identify control units that are to be added to or deleted from the list of control units that can be used to access the specified I/O devices.


[0314] When the multiple channel subsystem facility is provided, the OC field specifies modify, and the OCQ field specifies add subchannel image to channel subsystem image, the specified control units are to have access to the target channel subsystem image specified by the CSSID field.


[0315] (s) Device-Number Qualifier (DNQ) 738: The device-number qualifier can be used to distinguish I/O devices that are attached to the specified control unit from I/O devices that have the same device number and are attached to other control units.


[0316] I/O devices that are attached to the same control unit and have the same device number can be distinguished by the unit address associated with each I/O device.


[0317] I/O devices that are attached to different control units and have the same device number can be distinguished by placing the control-unit number of the control unit to which the I/O devices are attached in the DNQ field.


[0318] (t) Control-Unit Number (CUN) 740: When bits 0-7 of the CUNV field are not all zeros, this field includes up to, for instance, eight control-unit numbers. Each CUN field that is specified as being valid by the contents of the CUNV field contains a unique identifier of a control unit that can be used to access the specified I/O devices.


[0319] Control-unit numbers and message-processor numbers share the same number space.


[0320] (u) Candidate-MIF-Images Bit Mask 742: When the CPC is operating in LPAR mode and the specified device is attached to one or more shared channel paths, this mask is used to specify which MIF images are to provide shared access to the specified I/O device.


[0321] This mask is ignored when the specified I/O device is attached to unshared channel paths, the OC field specifies the delete or modify (delete subchannel image from channel subsystem image) operation, or the CPC is operating in BASIC mode.


[0322] A MIF image can be a candidate, even if it does not have access to any of the channel paths to which the device is attached.


[0323] A candidate MIF image can provide access to the specified device concurrently with other candidate MIF images, provided that it has access to one or more of the shared channel paths to which the device is attached.


[0324] There is a one-to-one numerical correspondence between MIF-image IDs (IIDs) and the bit position numbers in this mask. A one in a particular bit position of this mask specifies an IID that has a value equal to the corresponding bit number.


[0325] When the OC field specifies the add or modify (add subchannel image to channel subsystem image) operation, a one in a bit position of this bit mask indicates that the corresponding MIF image within the target channel subsystem image is a candidate for providing access to the specified I/O devices. A zero in a bit position of this mask indicates that the corresponding MIF image is not a candidate for providing access to the specified I/O device. At least one bit (of this bit mask) is to be one and correspond to a MIF image that is provided.


[0326] When the OC field specifies the modify operation and the OCQ field specifies the added WF-image-access operation, a one in a bit position of this bit mask indicates that the corresponding MIF image is to be added as a candidate within the specified target channel subsystem image for providing access to the specified I/O devices. A zero in a bit position of this mask indicates that the corresponding MIF image is not to be added as a candidate for providing access to the specified I/O devices, although it may already be a candidate. At least one bit (of this bit mask) is to be one and correspond to a MIF image that is provided, and no bits can be one that correspond to MIF images that already are candidate-MIF images for the specified I/O devices within the specified target channel subsystem image.


[0327] When the OC field specifies the modify operation and the OCQ field specifies the delete-MIF-image-access operation, a one in a bit position of this bit mask indicates that the corresponding MIF image is to be deleted as a candidate within the specified target channel subsystem image for providing access to the specified I/O devices. A zero in a bit position of this mask indicates that the correspondingly numbered MIF image is not to be deleted as a candidate for providing access to the specified I/O devices. At least one bit (of this bit mask) is to be one and correspond to a MIF image that is provided, and all bits that are one are to correspond to MIF images that are candidate-MIF images for providing access to the specified I/O devices.


[0328] One embodiment of a command-response block for a Change I/O Device Configuration command is described with reference to FIG. 7b. In one example, a command response block 750 includes, for instance, the following:


[0329] (a) Length Field 752: This field specifies the length of the command-response block. The length depends on the response code that is stored in the response-code field as a result of the attempt to execute the change I/O device configuration command, and on the type and amount of information to be stored.


[0330] (b) Response Code 754: This field includes an unsigned binary integer that describes the results of the attempt to execute the change I/O device configuration command.


[0331] (c) Format (FMT) 756: The command-response-format field includes an unsigned integer whose value specifies the layout of the command response block.


[0332] (d) Response-Code Qualifier (RCQ) 758: When a response code other than a code indicating success is stored in the response-code field, this field may include a model dependent value that can be used to further describe the condition specified by the response code.


[0333] (e) Additional Information (A) 760: When one, this field specifies that the channel subsystem has additional subchannel blocks that cannot be contained in this command-response block. When zero, this field specifies that the channel subsystem has no subchannel blocks in addition to those (if any) that are contained in this command-response block.


[0334] The execution of a change-I/O-device configuration command that specifies the add, modify (add or delete control-unit access or add subchannel image to channel subsystem image or delete subchannel image from channel subsystem image) or delete operation can result in the creation of more subchannel blocks than can be contained in the command response block. In this case, the channel subsystem creates a set of command response blocks.


[0335] A first of the set of command response blocks is provided as part of the execution of the change-I/O-device-configuration command that caused the set of command response blocks to be created. The program can obtain the remaining command response blocks by repeatedly executing the change I/O device configuration command with the store-additional-information operation specified. Each remaining response block contains one or more consecutive subchannel blocks. The last command-response block of the set has an A bit that is zero.


[0336] (f) Shared-Device-Cluster (SDC) Blocks 762: This field includes, as one example, eight shared-device-cluster (SDC) blocks. Each SDC block that is specified as being valid describes a shared device cluster that contains one or more of the I/O devices that are specified in the command request block of the change I/O device configuration command that caused the SDC block to be created.


[0337] A shared device cluster is either a single control unit that can provide access to at least one I/O device, but does not share access to I/O devices with any other control unit, or it can be a collection of control units and I/O devices that are connected in such a way that for any division of the total collection of control units into two subsets, at least one control unit in each subset shares access to at least one I/O device.


[0338] One example of an SDC block is described with reference to FIG. 7c. SDC block 762 includes, for instance, the following:


[0339] (aa) SDC Validity Bit (S) 766: When one, this field specifies that the associated SDC block is valid. When zero, this field specifies that the associated SDC block is not valid and there are no subsequent SDC blocks in the command response block that are valid.


[0340] (bb) Image-ID Validity Bit (P) 768: When one, this field specifies that the IID field contains a valid MIF-image ID. When zero, this field specifies that the contents of the IID field are meaningless. The P bit can be one, when the CPC is operating in LPAR mode. When the SDC is associated with shared channel paths, it is set to zero.


[0341] (cc) Shared-Device-Cluster (SDC) Number 770: This field includes an SDC number that identifies the shared device cluster described by this SDC block. Within a channel subsystem image, every SDC has a unique number.


[0342] (dd) MIF-Image ID (IID) 772: When the CPC is operating in LPAR mode and the P bit is one, this field includes the image-identification code (IID) of the MIF image in which the specified SDC is recognized.


[0343] (ee) Path Mask-1 (PM-1) 774: This field specifies the CHPID fields that identify the channel paths that are described in the I/O-configuration definition for the specified SDC. (The PM-1 field corresponds to a path-installed mask (PIM).) Each bit of the PM-1 field corresponds one-for-one, by relative position, with each of the CHPID fields. A PM-1 bit stored as one specifies that the contents of the corresponding CHPID field identify a channel path for the specified SDC. A PM-1 bit stored as zero specifies that the contents of the corresponding CHPID field have no meaning.


[0344] (ff) Path Mask-2 (PM-2) 776: When the CPC is operating in LPAR mode, this field specifies the CHPID fields that identify the channel paths for the specified SDC that are configured to the specified MIF image. (For unshared channel paths, the PM-2 field corresponds to a path-available mask (PAM).) Each bit of the PM-2 field corresponds one-for-one, by relative position, with each of the CHPID fields. A PM-2 bit stored as one specifies that the contents of the corresponding CHPID field identify a channel path for the specified SDC and the specified MIF image. A PM-2 bit stored as zero specifies that the contents of the corresponding CHPID field have no meaning.


[0345] A PM-2 bit may be one, if the corresponding bit of the PM-1 field is one. When the CPC is operating in LPAR mode and the specified channel paths are shared channel paths, the contents of the PM-2 field have no meaning. When the CPC is operating in BASIC mode, the PM-2 field has no meaning.


[0346] (gg) Channel-Path Identifiers (CHPIDs) 778: This field includes, for example, eight CHPID fields. The CHPID fields that correspond to the bits of the PM-1 field that are ones contain the CHPIDs of channel paths for the specified SDC. The contents of CHPID fields that correspond to the bits of the PM-1 field that are zeros are meaningless.


[0347] (g) Subchannel Blocks 764 (FIG. 7b): When the length field contains a value greater than a predetermined number (e.g., 90 hex), this field includes one or more subchannel blocks. Each subchannel block describes a subchannel that is affected by the requested change to the I/O configuration.


[0348] One example of a subchannel block is described with reference to FIG. 7d. Subchannel Block 764 includes, for instance, the following:


[0349] (aa) Status 780 (FIG. 7d): This field includes information regarding the status of the corresponding I/O device. The meanings of bits 0-7 are, for instance, as follows:
15BitsMeanings0When one, bit 0 specifies that the installed parameters for thespecified subchannel have been set to the initialized state. Whenzero, bit 0 specifies that the installed parameters for the specifiedsubchannel have been modified, but they are not set to theinitialized state.1When one, bit 1 specifies that the IID field contains a valid MIF-image ID. When zero, bit 1 specifies that the contents of the IIDfield are meaningless. This bit can be one, when the CPC isoperating in LPAR mode.2When the OC field of the command-request block of the changeI/O device configuration command that caused this subchannelblock to be created specifies the modify (delete control-unit accessor delete MIF-image access or delete subchannel image fromchannel subsystem image) or delete operation, bit 2 specifieswhether a dedicated-allegiance condition existed or whether thechannel subsystem was in the process of accepting status thatcontained unit check, when the change I/O device configurationcommand was performed for the specified I/O device. When zero,bit 2 specifies that a dedicated-allegiance condition did not exist.When one, bit 2 specifies that a dedicated-allegiance condition didexist, and bit 3 of the status field specifies whether the channelsubsystem was able to clear the associated contingent-allegiancecondition at the device.When the OC field of the command-request block of the changeI/O device configuration command that caused this subchannelblock to be created does not specify the modify (delete control-unitaccess or delete MIF-image access or delete subchannel imagefrom channel subsystem image) or delete operation, bit 2 has nomeaning.3When bit 2 of the status field has meaning and is one, bit 3specifies whether the channel subsystem was able to clear thecontingent-allegiance condition at the specified I/O device. Whenzero, bit 3 specifies that the channel subsystem was able to clearthe contingent-allegiance condition (which could result in zerosense date). When one, bit 3 specifies that the channel subsystemwas unable to clear the contingent-allegiance condition.When bit 2 of the status field has no meaning or has meaning andis zero, bit 3 has no meaning.4When the OC field of the command-request block of the changeI/O device configuration command that caused this subchannelblock to be created specifies the modify (delete control-unit accessor delete MIF-image access or delete subchannel image fromchannel subsystem image) or delete operation, bit 4 specifieswhether an I/O operation was in progress when the change I/Odevice configuration command was performed for the specified I/Odevice. When zero, bit 4 specifies that an I/O operation was not inprogress. When one, bit 4 specifies that an I/O operation was inprogress, and bit 5 of the status field specifies whether the channelsubsystem was able to terminate the I/O operation at the specifiedI/O device.When the OC field of the command-request block of the changeI/O device configuration command that caused this subchannelblock to be created does not specify the modify (delete control-unitaccess or delete MIF-image access or delete subchannel imagefrom channel subsystem image) or delete operation, bit 4 has nomeaning.5When bit 4 of the status field has meaning and is one, bit 5specifies whether the channel subsystem was able to terminate theI/O operation at the specified I/O device. When zero, bit 5specifies that the channel subsystem was able to terminate the I/Ooperation at the I/O device. When one, bit 5 specifies that thechannel subsystem was unable to terminate the I/O operation at theI/O device.When bit 4 of the status field has no meaning or has meaning andis zero, bit 5 has no meaning.6When the OC field of the command-request block of the changeI/O device configuration command that caused this subchannelblock to be created specifies the modify (delete control-unit accessor delete MIF-image access or delete subchannel image fromchannel subsystem image) or delete operation, bit 6 specifieswhether the enabled bit (of the PMCW) was one or zero for thespecified subchannel, when the channel subsystem started toperform the requested operation. When zero, bit 6 specifies thatthe enabled bit was zero. When one, bit 6 specifies that theenabled bit was one.When the OC field of the command-request block of the changeI/O device configuration command that caused this subchannelblock to be created does not specify the modify (delete control-unitaccess or delete MIF-image access or delete subchannel imagefrom channel subsystem image) or delete operation, bit 6 has nomeaning.7When the OC field of the command-request block for the changeI/O device configuration command that caused this subchannelblock to be created specifies the modify (delete control-unit accessor delete MIF-image access or delete subchannel image fromchannel subsystem image) or delete operation and the CPC isoperating in LPAR mode, bit 7 specifies whether the interruption-interlock control bit (of the PMCW) was one or zero for thespecified subchannel, when the channel subsystem started toperform the requested operation. When zero, bit 7 specifies thatthe interruption-interlock bit was zero. When one, bit 7 specifiesthat the interruption-interlock bit was one.When the OC field of the command-request block of the changeI/O device configuration command that caused this subchannelblock to be created does not specify the modify (delete control-unitaccess or delete MIF-image access or delete subchannel imagefrom channel subsystem image) or delete operation, bit 7 has nomeaning.


[0350] (bb) Device Number 782: This field includes a binary representation of the device number for the I/O device that is associated with the specified subchannel.


[0351] (cc) MIF-Image ID (IID) 784: When the CPC is operating in LPAR mode and bit 1 of the status field is one, this field includes the image-identification code (IID) of the MIF image with which the specified subchannel is associated. Otherwise, the contents of the IID field have no meaning.


[0352] (dd) Subchannel Number 786: This field specifies the subchannel to which the information in this subchannel block applies.


[0353] In one example, when the CPC is operating in LPAR mode, the following statements apply:


[0354] When the OC field specifies the add operation or modify (add MIF-image access) operation, one subchannel image is added for each MIF image specified in the candidate-MIF-images bit mask, independently of whether the corresponding MIF image has access to any of the channel paths to which the device is attached. Each added subchannel image within the specified channel subsystem image is configured with the same subchannel number and each MIF image can be used to concurrently access the specified device provided that the MIF image has access to one or more of the shared channel paths to which the device is attached.


[0355] When the OC field specifies the delete or modify (delete subchannel image from channel subsystem image) operation, the subchannel images for provided MIF images within the specified channel subsystem image are deleted from the I/O-configuration definition.


[0356] When the OC field specifies the modify (delete MIF-image access) operation, the subchannel images for each MIF image specified in the candidate-MIF-images bit mask for the specified channel subsystem-image are deleted from the I/O-configuration definition.


[0357] When the CPC is operating in LPAR mode, the logical partition hypervisor, not the channel subsystem in this example, ensures that a maximum of one subchannel within a given channel subsystem image for a given device number is configured to a logical partition at any instant in time, regardless of the number of subchannels defined in the 110-configuration definition that have the same device number.


[0358] Described in detail above is processing associated with a Change I/O Device Configuration Request command. As part of the processing to support MCSS, certain error checks are performed, as indicated in FIGS. 7e-7h and described herein.


[0359] For example, as shown in FIG. 7e, when the operation code is equal to zero, checks are performed on the CSSID, a specified control unit, and a specified I/O device. If that checking is satisfactory, then the device is added and a successful response code is indicated.


[0360] Similarly, when the operation code is equal to one and an operation code qualifier is set to 6 (FIG. 7f), checking is performed on the CSSID, the RCSID, a specified control unit and a specified I/O device. If the checking is successful, then once again the device is added and a successful response code is indicated.


[0361] As a further example, when the operation code is equal to one and the operation code qualifier is set to 7 (FIG. 7g), then checks are performed on the CSSID, and the I/O device. If the checking is successful, then the device is deleted and a successful response code is indicated.


[0362] Additionally, when the operation code is equal to 2, as indicated in FIG. 7h, then checks are performed on the CSSID and the specified I/O device. If these checks are satisfactory, then the device is deleted and a successful response code is indicated.


[0363] In addition to the above described commands that have been extended to support MCSS, the following commands are extended or provided including, for instance, a Store Channel Subsystem Characteristics Command, a Store Configuration component List command and a Store Domain Configuration Component List command, each of which is described below.


[0364] The Store Channel Subsystem Characteristics command is used to store information about the characteristics of the channel subsystem. The execution of the store channel subsystem characteristics command does not change any information contained in the channel subsystem. The store channel subsystem characteristics command is executed synchronously and is not interpretively executed.


[0365] One embodiment of a request block for a store channel subsystem characteristics command is described with reference to FIG. 14a. In one example, a command request block 1400 for a store channel subsystem characteristics command includes, for instance:


[0366] (a) Length Field 1402: This field specifies the length of the command request block.


[0367] (b) Command Code 1404: This field specifies the store channel subsystem characteristics command.


[0368] (c) Multiple Channel Subsystem Bit (M) 1406: When the multiple channel subsystem facility is provided by the CPC, and when M is one, the CSSID field is checked for a valid CSSID. If valid, the value in the CSSID field becomes the effective CSSID. If not valid, an appropriate response code may be stored. When M is zero, the default CSSID is the effective CSSID and the CSSID field is zero.


[0369] (d) MIF Image Id (IID) 1408: The IID field includes zeros, as one example.


[0370] (e) Format 1410: The command request format field includes an unsigned integer whose value specifies the layout of the command request block.


[0371] (f) Channel Subsystem Id (CSSID) 1414: When the multiple channel subsystem facility is provided by the CPC, this field may specify the CSSID used to determine the channel subsystem image from which the channel subsystem characteristics are stored. The CSSID value is subject to range, existence, and authorization checking.


[0372] One embodiment of a response block for a store channel subsystem characteristics command is described with reference to FIG. 14b. In one example, a store channel subsystem characteristics response block 1420 includes the following:


[0373] (a) Length Field 1422: This field specifies the length of the command response code that is stored as the result of an attempt to execute the store channel subsystem characteristics command.


[0374] If a response code other than an indication of success is stored in the response code field, no characteristics information is stored as a result of the attempt to execute the command, and the length field specifies a length of, for instance, 8 bytes, for the command response block.


[0375] If a response code indicating success is stored in the response code field, both general characteristics and CHSC command characteristics are stored in the command response block. Thus, the length field specifies a command response block length of, for instance, 4,080 bytes.


[0376] (b) Response Code 1424: This field includes an unsigned binary integer that describes the results of the attempt to execute the store channel subsystem characteristics command.


[0377] (c) Format 1426: The command response format field includes an unsigned integer whose value specifies the layout of the command response block.


[0378] (d) General Characteristics 1428: If a response code indicating success is stored in the response code field, the general characteristics field includes information that specifies which of a variety of facilities are provided by the channel subsystem. Some facilities include, for instance, Cancel Subchannel; Multiple Image Facilities; CHSC Subchannel; Dynamic I/O Configuration Facilities; LPAR Mode; Fiber Channel Channel Facilities; Message Processor Channel Configuration Facility; Multiple Channel Subsystem Image Facility; Multiple Channel Subsystem Enhance Facility, etc. Although various facilities are described herein, other or different facilities may exist. When a bit of the general characteristics field corresponding to a particular facility is one, it indicates that that facility is provided.


[0379] In addition to an indication of the facilities, the general characteristics field also specifies the highest channel subsystem id whose value is in the range of 0-255.


[0380] (e) CHSC Characteristics 1430: If a successful response code is stored in the response code field, the CHSC characteristics field includes information that specifies whether certain CHSC commands are provided by the channel subsystem. Examples of these commands include, for instance, Change Channel Path Configuration, Change Control Unit Configuration, Change I/O Device Configuration, Store Configuration Component List, Store Domain Configuration Component List, and Set Domain Attributes, as well as others. When a bit of the CHSC characteristics field corresponding to a particular command is one, that command is provided.


[0381] Another command provided is a Store Configuration Component List command, which is used to obtain a configuration-component list containing identifiers of similar components in the I/O configuration. The type of components included in the configuration-component list is determined by a component-type parameter, which the program specifies in a request block. Execution of the store configuration component list command does not change any information contained in the channel subsystem. The store configuration component list command is executed synchronously and can be interpretively executed under SIE.


[0382] One embodiment of a request block for a store configuration component list command is described with reference to FIG. 8a. In one example, a command request block 800 for a store configuration component list command includes:


[0383] (a) Length Field 802: This field specifies the length of the command request block.


[0384] (b) Command Code 804: This field specifies the store configuration component list command.


[0385] (c) Component Type (CTYPE) 806: This field contains a value that specifies the type of configuration component that is to be listed in the response block. Examples of CTYPE values are, for instance, as follows:
16CTYPEList Description0Reserved1Control Units On a Channel Path: A list of the control unitsdescribed in the I/O-configuration as being attached to the CHPIDthat is specified in the list-parameter field.When the multiple channel subsystem facility is provided by theCPC, byte 0 of the list-parameter field is a flag byte and defined,for instance, as follows:BitMeaning0Multiple Channel subsystem Bit (M): When bit 0 (M) isone, byte 4 ofthe list-parameter field is checked for a validCSSID). If valid, the value in byte 4 becomes the effectiveCSSID. If not valid, an appropriate response code maybestored. When M is zero, the default CSSFD is the effectiveCSSID and byte 4 is to be zero; otherwise a response codemay be stored.1-7ReservedWhen the multiple channel subsystem facility is provided, byte 4of the list-parameter field may specify the CSSID of the targetchannel subsystem image that is used to locate the channel pathspecified in byte 7. The CSSID is subject to range and existencechecking.Bytes 1-3 and 5-6 of the list-parameter field have no meaning andare ignored. Byte 7 of the list-parameter field contains a CHPIDvalue.2Channel-Path-Type Capability: A list of the types of channel-paths that can be attached to the central-processing complex(CPC).The list entry for each type of channel path contains an indicatorthat specifies whether channel path measurements can be providedfor that type of channel-path and an indicator that specifieswhether the channel path can be configured as a spanned-channelpath.The contents of the list-parameter field have no meaning and areignored.3Reserved.4Channel subsystem Images, MIF Images & Logical Partitions:When the multiple channel subsystem facility is provided: Amatrix that indicates which channel subsystem images andassociated MIF-images are configured to which logical partitionsfor a specified range of channel subsystem images.Byte 0 of the list-parameter field specifies the first CSSID in therange for which information is requested. Byte 1 of the list-parameter field specifies the last CSSID in the range for whichinformation is requested. Bytes 2-7 of the list-parameter field haveno meaning and are ignored.5Channel subsystem Image Configuration Characteristics: Whenthe multiple channel subsystem facility is provided: A matrix thatindicates the validity and state of configured channel subsystemimages and MIF images for a specified range of channel subsystemimages.Byte 0 of the list-parameter field specifies the first CSSID in therange for which information is requested. Byte 1 of the list-parameter field specifies the last CSSID in the range for whichinformation is requested. Bytes 2-7 of the list parameter field haveno meaning and are ignored.6I/O-Processor & Channel-Path: A list of the IOPs of the centralprocessing complex (CPC) that relate to the CHPID that isspecified in the list-parameter.When the multiple channel subsystem facility is provided, byte 0of the list-parameter field is a flag byte defined, for instance, asfollows:BitMeaning0Multiple Channel Subsystem Bit (M): When bit 0 is one,byte 4 of the list-parameter field is checked for a validCSSID. If valid, the value in byte 4 becomes the effectiveCSSID. If not valid, an appropriate response code may bestored. When M is zero, the default CSSID is the effectiveCSSID and the CSSID field is zero; otherwise a responsecode may be stored.1-7ReservedWhen the multiple channel subsystem facility is provided, byte 4of the list-parameter field may specify the CSSID of the targetchannel subsystem image that is used to locate the channel pathspecified in byte 7. The CSSID is subject to range and existencechecking.Bytes 1-3 and 5-6 of the list-parameter have no meaning and areignored. Byte 7 of the list-parameter contains a CHPID value.


[0386] (d) Format (FMT) 808: The command request format field contains an unsigned integer whose value specifies the layout of the command request block.


[0387] (e) List Parameter 810: This field includes information that determines the scope of the component list for the specified component type.


[0388] The format and contents of the list-parameter field are dependent on the CTYPE value. The description of each CTYPE value includes a description of the contents of the list-parameter field, when that CTYPE value is specified.


[0389] One embodiment of a response block for a store configuration component list command is described with reference to FIG. 8b. In one example, a store configuration component list response block 820 includes the following:


[0390] (a) Length Field 822: This field specifies the length of the command-response code that is stored as a result of the attempt to execute the store configuration component list command.


[0391] If a response code other than an indication of success is stored in the response-code field, no component list elements are stored as a result of the attempt to execute the command, and length 822 specifies a length of, for instance, eight bytes for the command response block.


[0392] If a response code indicating success is stored in the response-code field, at least one component list element is stored in the command-response block as a result of the execution of the command, and length 822 specifies a command-response-block length of, for instance, 16 bytes plus the number of component list elements stored in the configuration-component list times the number of bytes specified in the list element size field.


[0393] (b) Response Code 824: This field includes an unsigned binary integer that describes the results of the attempt to execute the store configuration component list command.


[0394] (c) Format (FMT) 826: The command-response format field contains an unsigned integer whose value specifies the layout of the command-response block. The value of this field is, for instance, zero.


[0395] (d) List Element Size (ES) 828: This field contains an unsigned binary integer that specifies the number of bytes for each entry in the component list.


[0396] (e) Configuration Component List 830: When a response code indicating success is stored, one or more component list entries are stored in contiguous locations. The number of component list entries stored is determined by subtracting 16 bytes from the size of the command-response block and dividing the remainder by the ES value.


[0397] The size and format of the component list entries are dependent on the CTYPE value. The following is a description of the component list entries for each CTYPE value defined:
17CTYPEComponent List Entry1Control Units On a Channel Path: Each component list entry is,for instance, two bytes, and includes a control unit number thatidentifies a control unit.The control unit numbers contained in adjacent component listentries have no special numerical arrangement with regard to eachother. For example, the control unit numbers may or may not be innumerical sequence from one component list entry to the next.The collection of control unit numbers used to identify thecollection of control units that are accessible on the specifiedchannel path may not include every number in the numericalsequence defined by the lowest and highest control-unit numbersused.2Channel-Path-Type Capability: Each component list entry is, forinstance, two bytes. The contents of each component list entry isdescribed as follows:When one, bit 0 of byte 0 indicates that the CPC can providechannel-path measurements for the specified channel-path type.When zero, bit 0 indicates that the CPC does not provide channel-path measurements for the specified channel-path type.When one, bit 1 indicates that a channel path of the specified typecan be configured as a spanned-channel path. When zero, bit 0indicates that the specified channel path cannot be configured as aspanned-channel path.Byte 1 contains an unsigned binary integer that specifies a type ofchannel path that can be attached to the CPC.4Channel subsystem Images, MIF Images, & Logical Partitions:Each component-list entry is, for instance, 16 bytes. The contentsand significance of each list entry is described, for instance, asfollows:Each component-list entry represents configuration informationpertaining to a single channel subsystem image. Component-listentries are stored in ascending channel subsystem-image ID(CSSID) sequence beginning with the first CSSID in the rangespecified in the command request block.The maximum number of configurable channel subsystem imagesis model dependent. The number of component-list entriesreturned by this command may be equal to or less than the numberin the range specified in the command-request block. The issuingprogram can determine the number of returned component-listentries by using the technique described above.Each byte in a component list entry represents configurationinformation pertaining to a MIF image within the channelsubsystem-image. Component-list-entry bytes are stored inascending MIF-image ID (IID) sequence. If a component-list-entry byte contains a non-zero value, the value is a logical partitionnumber (PN) and that partition is configured to the correspondingchannel subsystem image and MIF image. If a component-list-entry byte contains a zero, then no partition is configured to thecorresponding channel subsystem image and MIF image.In effect, this command returns a two-dimensional matrix ofpartition numbers that can be indexed by CSSID (row) and IID(column). Each component-list entry is a complete row of thematrix.5Channel subsystem Image Configuration Characteristics: Eachcomponent-list entry is, for instance, 16 bytes. The contents andsignificance of each list entry is described, for instance, as follows:Each component-list entry represents configuration characteristicsinformation pertaining to a single channel subsystem image.Component-list entries are stored in ascending channel subsystem-image ID (CSSID) sequence beginning with the first CSSID in therange specified in the command-request block.The maximum number of configurable channel subsystem imagesis model dependent. The number of component-list entriesreturned by this command may be equal to or less than the numberin the range specified in the command request block. The issuingprogram can determine the number of returned component-listentries by using the technique described above.Each byte in a component list entry is a flag byte that representsconfiguration characteristics information pertaining to a MIFimage within the channel subsystem image. Component-list-entrybytes are stored in ascending MIF-image ID (IID) sequence. Themeaning of each bit in each component-list entry flag byte is, forinstance, as follows:Bit 0:When bit 0 is one, the corresponding channelsubsystem image ID (CSSID) and MIF image ID (IID) arerecognized as valid identifiers. When bit 0 is zero, thecorresponding IID is not recognized as a valid identifier.Bits 1-2:When bit 0 is one, bits 1-2 contain a value whichspecifies the state of the channel subsystem imageidentified by the recognized CSSID and the MIF imageidentified by the recognized IID. The values are:ValueCSSID.IID State0Not configured state: There is no logical-partitionconfigured to the corresponding channel subsystemimage and MIF image.1Configured state: A logical partition is configuredto the corresponding channel subsystem image andMIF image.Bit 3-7:Bits 3-7 are reserved and are zero.If any of the flag bytes in a component-list entry indicates aMIF image ID that is recognized, the correspondingchannel subsystem image ID is also recognized. Thus, ifall of the flag bytes in a component-list entry indicate MIFimage IDs that are not recognized, then the correspondingchannel subsystem image ID is not recognized.6I/O Processor & Channel Path: Each component list entry is, forinstance, 8 bytes. The content of each list entry is described, forinstance, as follows:Byte 0 contains a validity mask that applies to bytes 1-7 of theentry. Byte 0 is valid even though bit-position 0 is zero. Bitpositions 1-7 correspond to bytes 1ndash7 of the entry. When a bit inpositions 1-7 is one, the corresponding byte is valid. When a bit inpositions 1-7 is zero, the corresponding byte is not valid.On a model where not all IOPs can access the specified channelpath, byte 1 contains an IOP number of an IOP that may access thespecified channel path during a start or other process. A valid IOPnumber is in the range of 0-255, as an example. Bytes 2-7 arereserved.


[0398] Yet another command employed is a Store Domain Configuration Component List command, which is used to obtain a configuration-component list that includes identifiers of similar components within a domain of the I/O configuration. The store domain configuration component list command is provided, when the CPC is operating in LPAR mode.


[0399] For the purpose of this command description, the term “domain” refers to an explicit or implicit portion of the CPC, including a subset of the total collection of CPC I/O-configuration components. A logical partition or a logical partition cluster are examples of domains. A logical-partition cluster is a collection of the logical partitions within a CPC that are associated with the same logical partition cluster name for a given type of logical partition cluster.


[0400] The type of components included in the configuration-component list is determined by a component-type parameter, which the program specifies in the request block. The store domain configuration component list command is executed synchronously and is not interpretively executed under SIE.


[0401] One embodiment of a request block for a store domain configuration component list command is described with reference to FIG. 9a. In one example, a command request block 900 for a store domain configuration component list includes the following


[0402] (a) Length Field 902: This field specifies the length of the command-request-block.


[0403] (b) Command Code 904: This field specifies the store domain configuration component list command.


[0404] (c) Component Type (CTYPE) 906: This field includes a value that specifies the type of configuration component that is to be listed in the response block.


[0405] Examples of CTYPE values are as follows:
18CTYPEList Description0-2Reserved3Managed Channel Paths: The list of managed channelpaths within a channel subsystem image, as describedin the I/O-configuration definition for the logicalpartition cluster that includes the logical partitionin which the issuing program is executing. When themultiple channel subsystem facility is provided, byte0 of the list parameter field is a flag byte defined,for instance, as follows:BitMeaning0Multiple Channel Subsystem Bit (M):When bit 0 (M) is one, byte 4 ofthe list-parameter field is checkedfor a valid CSSID. If valid, thevalue in byte 4 becomes the effectiveCSSID. If not valid, an appropriateresponse code may be stored. When Mis zero, the default CSSID is theeffective CSSID and byte 4 is to bezero.1-7Reserved.When the multiple channel subsystem facility isprovided, byte 4 of the list-parameter field may specifythe CSSID of the target channel subsystem image that isused to locate the managed channel paths being stored.The CSSID is subject to range, existence, andauthorization checking.Bytes 1-3 and 5-7 have no meaning and are ignored.


[0406] (d) Format (FMT) 908: The command-request format field contains an unsigned integer whose value specifies the layout of the command-request block.


[0407] (e) List Parameter 910: This field includes information that determines the scope of the component list for the specified component type. The format and contents of the list-parameter field are dependent on the CTYPE value. The description of each CTYPE value includes a description of the contents of the list-parameter field, when the CTYPE value is specified.


[0408] In one example, a command response block 920 (FIG. 9b) for a store domain configuration component list command includes the following:


[0409] (a) Length Field 922: This field specifies the length of the command-response block. The length depends on the response code that is stored as a result of the attempt to execute the store domain configuration component list command.


[0410] If a response code other than a code indicating success is stored in the response-code field, no component list elements are stored as a result of the attempt to execute the command, and length 922 specifies a length of, for instance, eight bytes for the command response block.


[0411] If a response code indicating success is stored in the response-code field, at least one component list element is stored in the command response block as a result of the execution of the command, and length 922 specifies a command response block length of, for instance, 16 bytes plus the number of component list elements stored in the configuration-component list times the number of bytes specified in the ES field.


[0412] (b) Response Code 924: This field includes an unsigned binary integer that describes the results of the attempt to execute the store domain configuration component list command.


[0413] (c) Format (FMT) 926: The command response format field contains an unsigned integer whose value specifies the layout of the command-response block.


[0414] (d) List Element Size (ES) 928: This field includes an unsigned binary integer that specifies the number of bytes for each entry in the component list.


[0415] (e) Configuration Component List 930: When a response code indicating success is stored, one or more component list entries are stored in contiguous locations beginning at byte 0. The number of component list entries stored is determined by subtracting, for instance, 16 bytes from the size of the command-response block and dividing the remainder by the ES value.


[0416] The size and format of the component list entries are dependent on the CTYPE value. The following is a description of the component list entries for a defined CTYPE value:
19CTYPEComponent List Entry3Managed Channel Paths: Each component list entry is, forinstance, 2 bytes. Byte 0 contains zero. Byte 1 contains a CHPIDvalue specifying the CHPID within the target channel subsystemimage of a managed channel path for the logical-partition clusterthat includes the logical partition in which the issuing program isexecuting.


[0417] Described above are various CHSC commands that support MCSS. In addition to the CHSC commands, applicable channel path reconfiguration Service Call Logical Processor (SCLP) commands are modified to be capable of operating on a specified channel subsystem image. For example, SCLP commands used for dynamic reconfiguration of channel paths are enhanced to be able to identify a particular channel subsystem image on which to operate. That is, the commands are changed to use either a default CSSID provided by the machine or a specified CSSID to designate the channel subsystem image that includes the channel paths.


[0418] One such command that has changed is a Configure Channel Path Command, which is used to add a channel path in the designated channel subsystem image to the configuration. The channel path to be added is designated by a CHPID specified in a command parameter of the command.


[0419] One example of a control block associated with the command is described with reference to FIG. 10a. This control block is used for a request, as well as a response. A control block 1000 includes, for instance:


[0420] (a) Length Field 1002: This field indicates the length of the control block.


[0421] (b) Response Code 1004: This field includes a value that describes the results of the attempt to execute the command.


[0422] (c) MCSS Control 1006: This field indicates whether a designated channel subsystem image is specified in the control block.


[0423] (d) CSSID 1008: This field specifies the designated channel subsystem image that includes a channel path to be added to the configuration.


[0424] In one example, when the length field indicates that the control block is 8 bytes (or another chosen size), the designated channel subsystem image is the default channel subsystem image. When the control block length is greater than 8 bytes, the MCSS control specifies whether the designated channel subsystem image is specified in the control block. When the control block length is greater than 8 bytes and the MCSS control is zero, the designated channel subsystem image is the default channel subsystem image. When the control block length is greater than 8 bytes and the MCSS control is one, the channel subsystem image is designated by the channel subsystem image identifier in the control block.


[0425] In response to executing this command, subchannel images in a designated MIF image (provided, for example, in the SIE state description under which control the logical partition is running or in an associated control block) that are configured to the logical partition are changed by the command; other subchannel images are unchanged. A receiver message path is configured, if the message receiving option is enabled for the partition. Status indications pertaining to the CHPID are cleared and PAM bits for the CHPID are set to one at the subchannels; other subchannel indications are unchanged. No channel report word (CRW) is generated.


[0426] Another command that has changed to support MCSS is a Deconfigure Channel Path command, which is used to remove a channel path in the designated channel subsystem image from the configuration and place it in standby state. The channel path to be removed is designated by a CHPID specified in a command parameter of the command. A control block, similar to the one of FIG. 10a, is used with this command.


[0427] Similar to the configure command, when the control block length is 8 bytes (or another chosen size), the designated channel subsystem image is the default channel subsystem image. When the control block length is greater than 8 bytes, the MCSS control specifies whether the designated channel subsystem image is specified in the control block. When the control block length is greater than 8 bytes and the MCSS control is zero, the designated channel subsystem image is the default channel subsystem image. When the control block length is greater than 8 bytes and the MCSS control is one, the channel subsystem image is designated by the channel subsystem image identifier in the control block.


[0428] In response to executing this command, subchannel images in a designated MIF image that are configured to the logical partition are changed by the command; other subchannel images are unchanged. Status indications pertaining to the CHPID are cleared and PAM bits for the CHPID are reset to zero at the subchannels; other subchannel indications are unchanged. No channel report word is generated, even when the path is reset.


[0429] Yet another SCLP command that supports MCSS is a Read Channel Path Information command, which is used to store a plurality of maps of CHPID information for the designated channel subsystem image in a control block. One example of such a control block is described with reference to FIG. 10b.


[0430] In one example, a control block 1020 includes, for instance, the following:


[0431] (a) Length Field 1022: This field indicates the length of the control block.


[0432] (b) Response Code 1024: This field includes a value that describes the results of the attempt to execute the command.


[0433] (c) Recognized Channel Path Bit Map 1026: This map indicates whether a channel path is recognized. It includes a bit corresponding to each CHPID. If a bit is one, the CHPID is recognized.


[0434] (d) Standby Channel Path Bit Map 1028: This map indicates whether a channel path is in standby state and may be added to the configuration. If a bit corresponding to a CHPID is one, the channel path is in standby state and may be added to the configuration. Otherwise, it is reserved or already configured. If a CHPID is not recognized, its bit is zero.


[0435] (e) Configured Channel Path Bit Map 1030: This map indicates whether a channel path is in the configuration. When a bit corresponding to a CHPID is one, the channel path is in the configuration. If a CHPID is not recognized, its bit is zero.


[0436] (f) MCSS Control 1032: This field indicates whether the channel subsystem image is specified in the control block.


[0437] (g) CSSID 1034: This field specifies a designated channel subsystem image for which the CHPID maps are provided.


[0438] In one example, when the length field indicates that the control block length is 104 bytes (or another chosen size), the designated channel subsystem image is the default channel subsystem image. When the control block length is greater than 104 bytes, the MCSS control specifies whether the designated channel subsystem image is specified in the control block. When the control block length is greater than 104 bytes and the MCSS control is zero, the designated channel subsystem image is the default channel subsystem image. When the control block length is greater than 104 bytes and the MCSS control is one, the channel subsystem image is designated by the channel subsystem image identifer in the control block.


[0439] Similar to the SCLP commands, LPAR hypervisor PCCALL functions that preform channel related configuration operations are enhanced to be able to identify a particular channel subsystem image on which to operate, and in some cases, to determine the scope of the function performed by the command (e.g., channel subsystem image-wide, logical partition, zone relocation, etc.). Examples of PCCALL functions that are changed include, for instance, Configure Channel Path, Deconfigure Channel Path and Image Reset. These functions are enhanced to specify a CSSID, which is used in conjunction with the MIF image id to identify a particular MIF image. The image reset function is further enhanced by adding a set of controls that determine whether the scope of the function is restricted to the specified channel subsystem image or is defined by other parameters, such as a partition number or relocation-zone number. Each of these function is described below.


[0440] The Configure Channel Path function is used to add a channel path or channel path image in the designated MIF image to the configuration. The channel path to be added is designated by a CHPID specified in a general register used by the function.


[0441] One example of a control block associated with the function is described with reference to FIG. 11a. This control block is used for a request, as well as a response. A control lock 1100 includes, for instance:


[0442] (a) Length Field 1102: This field indicates the length of the control block.


[0443] (b) Response Code 1104: This field includes a value that describes the results of the attempt to execute the function.


[0444] (c) Address of Subchannel Numbers List 1106: This field indicates the address of a list of subchannel numbers.


[0445] (d) Count of Subchannels In List 1108: This field provides a count of the subchannels in the list designated by address 1106.


[0446] (e) Partition Number 1110: This field specifies a logical partition to which a designated channel path or channel path image is to be configured.


[0447] (f) CSSID 112: This field specifies a designated channel subsystem image id.


[0448] (g) MIFID 1114: This field specifies a designated MIF image that includes a channel path or channel path image to be added to the configuration.


[0449] The designated channel path or channel path image is configured to the logical partition designated in the control block. The MIF image is designated by the channel subsystem image identifier and the MIF image identifier in the control block.


[0450] In response to executing the function, for a shared channel path, subchannel images configured to the specified channel path or channel path image in the designated MIF image are changed. For an unshared channel path, the subchannel numbers list designated by the control block indicates which subchannels in the designated MIF image are affected. No channel report word is generated. Status indications pertaining to the CHPID are cleared and PAM bits for the CHPID are set to one; other subchannel indications are unchanged.


[0451] In addition to the configure command, a PCCALL Deconfigure Channel Path command is used to remove a channel path or channel path image in the designated MIF image from the configuration. The channel path to be removed is designated by a CHPID specified in a general register used by the function. A control block similar to the one of FIG. 11a is used with this function.


[0452] The designated channel path or channel path image of the MIF image is deconfigured from the logical partition designated by the control block. The MIF image is designated by the channel subsystem image identifier and the MIF image identifier in the control block.


[0453] In response to executing this function, for a shared channel path, subchannel images configured to the specified channel path or channel path image in the designated MIF image are changed. For an unshared channel path, the subchannel numbers list designated by the control block indicates which subchannels in the designated MIF image are affected.


[0454] PAM bits for the CHPID are reset to zeros in the subchannels. For an I/O channel path, indications of allegiance, control unit busy, or device busy that pertain to the path are cleared in the subchannels, similar to a channel path reset, except that no CRW is generated.


[0455] Another function enhanced for MCSS is an Image Reset PCCALL function, which signals the channel subsystem to reset a designated MIF image. The reset may affect channel paths, subchannels, among other I/O components (e.g., message vectors, authorization controls, etc.).


[0456] One example of a control block associated with the Image Reset function is described with reference to FIG. 11b. A control block 1130 includes, for instance:


[0457] (a) Length Field 1132: This field specifies the length of the control block.


[0458] (b) Response Code 1134: This field includes a value that describes the results of the attempt to execute the function.


[0459] (c) Number of Failed Channel Path Image Entry 1136: This field indicates the number of failed channel path image entries.


[0460] (d) Failed Channel Path Image List 1138: This field includes a list of CHPIDs for I/O channel path and message path images in the designated MIF image that could not be reset. The images are placed in a check stop or permanent error state.


[0461] (e) MIF Image Identifier 1140: This field specifies a designated MIF image to be reset.


[0462] (f) I/O System Reset Options 1142: This field provides one or more options to reset an I/O system. For instance, a TPF mode control is provided. When this control is one, it indicates that the TPF channel queuing, if installed, is enabled for the VO channel path images on the designated MIF image. Otherwise, TPF queuing is disabled for the designated MIF image.


[0463] Another I/O system reset option is a deactivate option. When one, the deactivate option indicates that a deactivate function is performed; otherwise an activate function is performed.


[0464] The deactivate option is used, for instance, if the designated MIF image is no longer needed or not to be used until image reset for the designated MIF image is reissued. For example, when an operator deactivates a logical partition and its resources become available to other partitions. Deactivation releases logical path controls at control units configured to the channel path images in the designated MIF image, so that the controls may be used to establish connections to other MIF images.


[0465] The activate option is used, for instance, if a logical partition is IPLed by LPAR, or a system reset is performed for a logical partition with the intent of using it without an IPL. For example, to execute manually entered code.


[0466] (g) Message Facility Reset Option 1144: This field designates one or more options to be used to reset a message facility. For instance, an SCP-initiated reset option is provided. When one, no reset or image reset signal is sent on a message path in the designated MIF image, and if a reset relocation zone bound resources control of the other reset options (described below) is one, the channel subsystem state and fencing authority value for the designated relocation zone are unchanged. When this control is one, signals are sent, and if the reset relocation zone bound resources control is one, the fencing authority value for the designated relocation zone is set to zeros and the channel subsystem state for the designated relocation zone is set to the not-isolated state.


[0467] The SCP initiated reset option is used, for instance, when the designated MIF image is permitted to continue to receive and execute fencing commands. This occurs when the partition program issues an SCP initiated reset command.


[0468] (h) Other Reset Options 1146: This field includes one or more other reset options. For instance, a reset partition bound resources control is provided that governs the effect of image reset on resources associated with a logical partition. When this control is one, resources that are associated with the logical partition designated by a partition number in the control block are reset. When the reset partition bound resources control is zero, partition bound resources are not reset and the partition number is ignored. In one example, adjunct-processor queues are considered partition bound resources.


[0469] Another option is a reset relocation zone bound resources control that governs the effect of image reset on resources associated with a relocation zone. When the reset relocation zone bound resources control is one, resources that are associated with the relocation zone designated by the relocation zone number in the control block are reset. When this control is zero, resources associated with a relocation zone are not reset and the relocation zone number is ignored. Examples of relocation zone bound resources include, for instance, message vectors, adapter interruption facility controls and fencing controls.


[0470] (i) Relocation Zone Number 1148: This field indicates a number of a relocation zone.


[0471] (j) Partition Number 1150: This field designates a logical partition.


[0472] (k) CSSID 1152: This field designates a channel subsystem image. The MIF image is designated by the channel subsystem image identifier and the MIF image identifier in the control block.


[0473] Various actions are taken by the channel subsystem, when it resets the designated MIF image (referred to herein as the image reset function). When the image reset function is completed, a response code and a failed channel path images list are stored in the control block. Further, an image reset facility available channel report is made pending. The image reset facility available channel report can be used by the LPAR manager to determine which pending CRWs for the designated MIF image can be discarded and which are to be presented to the program that is subsequently executed in the logical partition associated with the image. No image reset facility available channel report is presented to a program in a logical partition, in one embodiment.


[0474] One resource affected by the image reset function is the adjunct processor. If the reset partition bound resources control is one, image reset performs an AP queue reset of each AP queue in the designated logical partition. An AP reset is performed, if the existing AP paths of the adjunct processor connect to AP queues in the designated logical partition, and no AP path of the AP connect to another logical partition.


[0475] Another resource affected is the authorized image. If the reset relocation zone bound resources control is one, and the SCP initiated reset control is zero, the authorization image for the designated relocation zone is reset. The fencing authority value for the designated relocation zone is set to zeros and the channel subsystem state for the designated relocation zone is set to the not-isolated state.


[0476] If the reset relocation zone bound resources control is one and the SCP initiated reset control is one, the authorization image for the designated relocation zone is unchanged.


[0477] A yet further resource affected by the image reset function are the channel path images. In response to an image reset function, the I/O channel path images configured to the designated MIF images are initialized. The manner in which they are reset is dependent on the type of channel path.


[0478] Another resource affected are the message path images. In response to an image reset function, message path images that are configured to the designated MIF image are initialized. This includes, for instance, sending the reset or image reset signal on a path and recognizing a valid response, if indicated by the SCP initiated reset control; and initializing channel subsystem controls for the message path image.


[0479] If the SCP initiated reset control is zero, a reset signal is sent on each receiver type message path having an image that is reset. Otherwise, no reset or image reset signal is sent on the path. If the SCP initiated reset control is zero, an image reset signal is sent on each shared sender type message path having an image that is reset. Otherwise, no reset or image reset signal is sent on the path.


[0480] Further, if the SCP initiated reset control is zero, a reset signal or image reset signal is sent on each unshared sender type message path having an image that is reset. Otherwise, no reset or image reset signal is sent on the path. When an image reset or reset signal is recognized, a response acknowledges the signal. The effect of image reset on the associated message path state indicators is undefined.


[0481] A further resource affected are the message vector images. If the reset relocation zone bound resources control is one, message vector images associated with the designated relocation zone are released. Local cache and list notification tokens associated with the designated relocation zone are invalidated, and the list notification global summary is reset. Otherwise, the local cache vector images and tokens, and the list notification vector images and tokens are unchanged.


[0482] When a local cache or list notification token is assigned for the designated relocation zone and then released, a token with identical contents is not reassigned until after an image reset with the reset relocation zone bound resources control set to one is completed for the designated relocation zone. (Local cache and list notification token are described in, one or more of the following, as examples: Elko et al., U.S. Pat. No. 5,317,739 entitled “Method And Apparatus For Coupling Data Processing Systems,” issued May 31, 1994; and Elko et al., U.S. Pat. No. 5,537,574, entitled “Sysplex Shared Data Coherency Method,” issued Jul. 16, 1996, each of which is hereby incorporated herein by reference in its entirety.)


[0483] A yet further resource affected by the image reset function are I/O subchannel images. I/O subchannel images configured to the designated MIF image are initialized. The subchannel images are initialized as for an I/O system reset performed when MIF is not installed, except that the following subchannel fields are not changed: interruption subclass code, enabled bit, relocation zone number, interruption zone number, and interruption interlock control bit, as examples.


[0484] Additionally, CHSC subchannel or ADM subchannel resources are affected. Those subchannels configured to the designated MIF image are initialized in a similar manner as an I/O subchannel image.


[0485] Yet further, message subchannel images are affected. If the reset message facility control is one, message subchannel images that are configured to the designated MIF image are initialized. Otherwise, no message subchannel images are initialized.


[0486] As described above, with the MCSS facility, thousands of channel paths are available for use. However, there is a constraint in allowing an operating system image to access more than 256 channel paths because of the prevalent usage of the 8-bit unique value called the channel path identifier. Thus, in accordance with an aspect of the present invention, a facility is provided, referred to herein as a Multiple Channel Subsystem Enhanced (MCSSE) facility, that enables an operating system image to access more than 256 channel paths, with minimum disruption to the operating system. For example, the MCSSE facility provides controls that allow an enhanced operating system image access to more than one channel subsystem image, while keeping the multiple channel subsystem construct transparent to operating system images that do not need the added I/O capacity or are not aware of more than one channel subsystem image. That is, without MCSSE, there still may be multiple channel subsystem images, but an operating system only has access to one image. With MCSSE, an operating system may access more than one image.


[0487] In one embodiment, the Multiple Channel Subsystem Enhanced facility provides a plurality of controls to an operating system image that enables that operating system image access to more than one channel subsystem image. In one example, these controls include:


[0488] 1. An enablement control indicating whether the operating system image is authorized to access more than one channel subsystem image. If not, then the operating system image uses the default channel subsystem image. The initial state of the enablement control of each operating system image is the disabled stated. This enforces compatibility in that the operating system cannot access MCSSE features, and that asynchronous events produced by the CPC (e.g., CRW machine check, I/O-resource-accessibility notification) outside the single, default logical channel subsystem (a.k.a., channel subsystem image) are not presented to the operating system.


[0489] 2. An authorization list indicating which channel subsystem images the operating system is allowed to access, if it is authorized to access more than one channel subsystem image.


[0490] 3. An MIF extension specifying the implied MIF image identifier (IID) to be used by the operating system image in each channel subsystem that it is allowed to access.


[0491] An operating system explicitly enables the MCSSE facility to gain access to multiple channel subsystem images. The multiple channel subsystem image construct is transparent to an operating system that has not enabled the MCSSE facility. The default channel subsystem image is used for such an operating system image, and in this case, the operating system image does not specify a CSSID in its I/O request, rather the CSSID of the default channel subsystem image is specified by the hypervisor, when executing on behalf of the operating system image or by the machine when the operating system is being interpretively executed.


[0492] An operating system that has enabled the MCSSE facility may have access to more than one channel subsystem image. Such an operating system may explicitly specify a CSSID, or indicate that the default channel subsystem image is to be used. When the default channel subsystem image is to be used, the CSSID of the default channel subsystem image is specified by the hypervisor or SIE. When the operating system image explicitly specifies the CSSID, it is checked against the authorization vector (i.e., the CAV), and the I/O request is either authorized or rejected. For example, the CSSID is used as an index into the CAV. If the entry pointed to by the index is zero, the request is rejected, since the operating system is not authorized to use that CSS.


[0493] The authorization vector is initially established during configuration, and may be modified by dynamic I/O configuration commands. The MIF image identifier is implicitly specified (by the hypervisor or machine) for the default channel subsystem image and each channel subsystem image. The corresponding image identifier for each channel subsystem image is specified by configuration controls either at IML or by dynamic I/O configuration commands executed by an authorized program in the IOCDS.


[0494] In one embodiment, in order to enable MCSSE, a command is implemented using the Channel Subsystem Call (CHSC) instruction. In one example, this command is a Set Domain Attributes (SDA) command, which is used by an operating system to signal the CPC to enable MCSSE for the operating system image. When MCSSE is enabled, it is still possible to request I/O in the default channel subsystem image, but being enabled permits requests to also overtly specify a particular channel subsystem image (via its CSSID) in order to request I/O in such a specified channel subsystem image.


[0495] The set domain attributes command is used to convey information from a program to a channel subsystem. The scope of a domain is specifically stated for each individual operation that is defined. The operation code is used to specify the particular operation and associated data, when applicable to that operation. The domain for this operation encompasses the logical partition and all current and future channel subsystem images associated with the logical partition. In one example, the set domain attributes command is executed synchronously, and is not interpretively executed.


[0496] One example of a command request block for the set domain attributes command is described with reference to FIG. 12a. In one example, a request block 1200 for a set domain attributes command includes the following:


[0497] (a) Length Field 1202: This field specifies the length of a command request block.


[0498] (b) Command Code 1204: This field specifies the set domain attributes command.


[0499] (c) Format (FMT) 1206: The command request format field includes an unsigned integer whose value species the layout of the command request block.


[0500] (d) Operation Code (OC) 1208: This field includes a value that specifies the operation that is to be performed. In one example, an operation code of zero enables the Multiple Channel Subsystem Enhanced (MCSSE) facility.


[0501] One embodiment of a command response block for the set domain attributes command is described with reference to FIG. 12b. In one example, a command response block 1220 for the set domain attributes command includes the following fields:


[0502] (a) Length Field 1222: This field specifies the length of the command response block.


[0503] (b) Response code 1224: This field includes an unsigned integer that describes the results of the attempt to execute the set domain attributes command.


[0504] (c) Format 1226: The command response format field includes an unsigned integer whose value specifies the layout of the command response block.


[0505] When the Multiple Channel Subsystem Enhanced facility is provided by the CPC, then when the enable MCSSE operation is executed, the requesting logical partition is permitted to use a set of channel subsystem images, each member of the set including a CSSID and corresponding MIF image id (IID). The default CSSID and corresponding IID are maintained for a CHSC command that might use the default, even though the default also appears as a member of the set.


[0506] An internal action of the enable MCSSE operation that is indirectly observable by the requesting program is to establish in the SIE state description of the operating system image the CSSID authorization vector (CAV). In one example, the CAV is a string of one to 256 consecutive bytes. When the associated operating system specifies the CSSID, that CSSID value indexes into the CAV, and thus, points to a one byte entry. The entry, if zero, indicates that the corresponding CSSID is not authorized for use by the operating system image. If non-zero, the corresponding CSSID is authorized and the non-zero value is the associated MIF image identification to be used. This is how the execution time relationship of logical partition to CSS image to MIF image is determined. When the CAV does not exist (i.e., MCSSE is not enabled), the default CSSID and IID are determined from two fields in the SIE state description.


[0507] In one example, bits 1-28 of the 31-bit address of the CSSID-authorization vector are used to form the CSSID authorization vector origin (CAVO) of the SIE state description of the requesting virtual CPU. When the logical partition includes multiple virtual CPUs, the CAVO of each state description of each virtual CPU of the logical partition is changed in a coherent manner. Each such CAVO references either the same or equivalent CSSID-authorization vector.


[0508] The state control for the enablement is maintained by the LPAR hypervisor as state-description content and is subject to subsystem reset of the logical partition. For this operation, the LPAR hypervisor does not execute SDA on behalf of the logical partition.


[0509] In addition to the above, a Store Domain Configuration Attributes List (SDCAL) CHSC command is defined to return a list of information, where each list entry describes information about a particular channel subsystem image that is available to the operating system image. In one example, the first list entry is the default channel subsystem image. By using the list of channel subsystem images, the operating system can know the identification of the other channel subsystem images, thereby allowing for various other CHSC commands to be successfully executed in order to determine more about the extended parts of the I/O configuration definition associated with the operating system image.


[0510] The store domain configuration attributes list command is used to obtain a configuration attribute list containing identifiers of similar components within a domain of the I/O configuration. In one embodiment, the term domain refers to an explicit or implicit portion of the CPC, including a subset of the total collection of CPC I/O configuration components. A logical partition or a logical partition cluster are examples of domains. A logical partition cluster is a collection of the logical partitions within a CPC that are associated with the same logical partition cluster name for a given type of logical partition cluster.


[0511] The type of components included in the configuration attributes list is determined by an attribute type parameter, which the program specifies in the request block. Execution of the store domain configuration attributes list command does not change any information contained in the channel subsystem. In one example, the store domain configuration attributes list command is executed synchronously and is not interpretively executed.


[0512] One example of a command request block for the store domain configuration attributes list is described with reference to FIG. 13a. In one example, a request block 1300 includes the following fields.


[0513] (a) Length Field 1302: This field includes the length of the command request block.


[0514] (b) Command Code 1304: This field specifies the store domain configuration attributes list command.


[0515] (c) Attribute type (ATYPE) 1306: This field includes a value that specifies the type of configuration attribute that is to be listed in the response block. In one example, an attribute type value of Channel Subsystem Images, MIF Images and Logical Partitions is provided. When the multiple channel subsystem facility is provided, a list of channel subsystem image ids (CSSIDs), MIF images (IIDs), and the partition number (PN) that are described in the I/O configuration definition for the logical partition in which the issuing program is executing, is provided. 1007951 (d) Format 1308: The command request format field includes an unsigned integer whose value specifies the layout of the command request block.


[0516] In one example, a command response block 1320 (FIG. 13b) includes, for instance, the following:


[0517] (a) Length Field 1322: This field specifies the length of the command response block. The length depends on the response code that is stored as a result of the attempt to execute the store domain configuration attributes list command.


[0518] (b) Response Code 1324: This field includes an unsigned binary integer that describes the results of the attempt to execute the store domain configuration attributes list command.


[0519] (c) Format 1326: The command response format field includes an unsigned integer, whose value specifies the layout of the command response block.


[0520] (d) List Element Size 1328: This field includes an unsigned integer that specifies the number of bytes for each entry in the attribute list.


[0521] (e) Configuration Attributes List 1330: When a successful response code is stored, one or more attribute list entries are stored in contiguous locations of the configuration attributes list. The number of attribute list entries stored is determined, in one example, by subtracting 16 bytes from the size of the command response block and dividing the remainder by the list element size value. The size and format of the attribute list entries are dependent on the ATYPE value.


[0522] The following is a description of the attribute list entries for an ATYPE value that indicates Channel Subsystem Images, MIF images and Logical Partitions. Each attribute list entry has, for instance, 4 bytes. The contents of each list entry includes, for instance:


[0523] Byte 0 includes the CSSID of a channel subsystem image that is in the I/O configuration definition of the logical partition in which the issuing program is executing.


[0524] Byte 1 includes the IID of a MIF image that is configured in the channel subsystem image identified by the CSSID.


[0525] Byte 2 includes the partition number of the logical partition in which the issuing program is executing.


[0526] Byte 3 is reserved and contains zeros.


[0527] In one example, the first attribute list entry specifies the default CSSID and IID of the logical partition in which the issuing program is executing. Other than the first attribute list entry, the attribute list entries have no special numeric arrangement, i.e., they are not sorted and may or may not be in numeric sequence.


[0528] When multiple channel subsystem images are configured to the logical partition in which the issuing program is executing, multiple attribute list entries are returned. In one example, one is returned for each configured channel subsystem image, regardless of whether the logical partition is enabled to utilize multiple channel subsystem images.


[0529] The multiple logical channel subsystem (MCSS) facility extends the z/Architecture channel subsystem, so that it can provide up to, for instance, 65,536 channel paths in a manner that is transparent to many of the programs (i.e., the operating systems and their associated applications) operating in each of the configured logical partitions on the eServer zSeries system. This is accomplished by virtualizing the channel subsystem into multiple logical channel subsystems, as described herein. With such a virtualization, while a CSS is limited to a number of channels (e.g., 256), the total system (e.g., CPC) can support a much greater number of channels (e.g., 64 k). Further, with this virtualization, the only operating system programming that is aware of multiple logical channel subsystem images is that which deals directly with configuration of the logical channel subsystem images.


[0530] The provision of more than 256 channel paths advantageously enables the merging of workloads of multiple S/390 and eServer zSeries, such as G4, G5, G6, and z/900's, onto a single footprint. With MCCS support, such consolidations can be accomplished with minimum effort with respect to I/O capacity and I/O configuration planning. For example, the I/O configuration definitions for each of the smaller machines can simply be assigned to different logical channel subsystem definitions. Without MCSS, each I/O definition set for each of the machines to be merged would have to be integrated/merged together into a single I/O definition set in a manner that supports the specific I/O requirements of each of the predecessor systems being consolidated. As the I/O capacity planning process for any large scale server is often very costly in terms of planning, defining and measuring/testing, the ability to minimize this consolidation effort with as few I/O configuration restrictions as possible is beneficial. MCSS provides this ability with a minimal amount of disruption.


[0531] Prior to MCSS, the primary relationship connecting a program in a logical partition to an I/O device is Logical Partition MIF image. The execution time relationship is one to one and the configuration choice is one to 256. A program in an LPAR specifies the subchannel number which, by virtue of MIF, becomes associated with the subchannel in the MIF image assigned to the logical partition and the channel path (of the one to eight channel paths possible per subchannel) providing connectivity to the device represented by the subchannel. The MIF image assignment is provided by the machine, so the program continues to observe the fiction of a wholly owned subchannel and set of channel paths. The machine understands, for a shared channel path, that the subchannel is really a subchannel image of the associated MIF image that is assigned to the shared channel path. On a maximally configured CPC, there are MIF images, but only one channel subsystem, one channel path set, and thus, only a maximum of 256 channel paths. MIF, by itself, does not increase the aggregate I/O bandwidth of a CPC.


[0532] With MCSS, the primary relationship connecting a program in a logical partition to an I/O device is Logical Partition→CSS→MIF image. For logical partition→CSS (logical channel subsystem), the execution time relationship is one to one and the configuration choice is one to 256, but then a second one to 256 relationship applies (i.e., CSS→MIF image), giving a net one to 65,536 configuration relationship choice. Furthermore, each CSS has a distinct channel path set, thus increasing the maximum number of channel paths from 256 to 65,536. The program continues to observe wholly-owned subchannels and channel paths, even though the machine provides two levels of indirection. It is solely the manager that needs to absorb the new structure.


[0533] The Logical Partition→CSS association is managed by authorized system configuration commands and by manual controls in the service processor, but the association is a hidden, default relationship to the software executing within the logical partition, other than the manager program. Similarly, the CSS MIF image association is established as a default relationship, transparent to software executing within the logical partition, again except for the manager. It is this level of transparency that makes the channel path image appear to be a channel path, and a subchannel image appear to be a subchannel to the software.


[0534] Although various embodiments are described above, these are only examples. Additions, deletions and/or modifications to the above embodiments may be made, without departing from the spirit of aspects of the present invention. For instance, although a computing environment is described above, many different computing environments may be used. For example, a computing environment that includes a plurality of multiple channel subsystems may be provided. Also, the computing environment need not be based on the z/Architecture.


[0535] Further, as another example, depending on the channel path type, channel paths which are configured to a single channel subsystem image may be shared by any of the logical partitions that are associated with that channel subsystem image.


[0536] Moreover, even though in the above embodiments, a channel path includes a control unit, this is not necessary. A channel path may not connect to a control unit or a device, such as with Ethernet channel paths or channel to channel adapters, as examples. These types of channel paths, as well as others are within the spirit of one or more aspects of the present invention.


[0537] As yet another example, although an LPAR hypervisor is given as an example, other hypervisors, such as a virtual machine hypervisor, as well as others, may be used.


[0538] Further, in yet another embodiment, an environment may include an emulator (e.g., software or other emulation mechanisms), in which a particular architecture or subset thereof is emulated. In such an environment, one or more emulation functions of the emulator can implement one or more aspects of the present invention, even though a computer executing the emulator may have a different architecture than the capabilities being emulated. As one example, in emulation mode, the specific instruction or operation being emulated is decoded, and an appropriate emulation function is built to implement the individual instruction or operation.


[0539] Additionally, although the commands described herein have various fields, more, less or different fields may be provided. Further, the positions of the fields in the figures do not necessarily indicate the position within a control block. Other positions may be available. Similarly, although in some contexts, specific bytes or bits are described, these are only examples. Other bytes or bits may be used. Further, other sizes may be provided.


[0540] Moreover, in addition to the commands described above, various other commands may be changed to support MCSS. These changes include, for instance, adding a CSSID value to further qualify a subchannel or channel path specification. Additionally, the LPAR hypervisor and SIE extensions, described herein, apply to coupling facility instructions used to access coupling facility channel paths.


[0541] As another example, although different configuration statements are provided with various parameters, the parameters and/or statements may be different and/or others may be added or deleted.


[0542] Likewise, in a further example, even though data structures of the IOCDS are described, there may be more, different or less structures and information within the structures can vary.


[0543] The above are only some examples of the enhancements/modifications that can be made. Others are possible, without departing from the spirit of one or more aspects of the present invention.


[0544] The use of the term “obtaining” in the claims includes, for instance, having, being provided, providing, creating, defining, configuring, etc. Further, hardware is used herein to include everything in the system that is not software, including, for instance, physical components, firmware, microcode, licensed internal code, etc.


[0545] The present invention can be included in an article of manufacture (e.g., one or more computer program products) having, for instance, computer usable media. The media has embodied therein, for instance, computer readable program code means or logic (e.g., instructions, code, commands, etc.) to provide and facilitate the capabilities of the present invention. The article of manufacture can be included as a part of a computer system or sold separately.


[0546] Additionally, at least one program storage device readable by a machine embodying at least one program of instructions executable by the machine to perform the capabilities of the present invention can be provided.


[0547] The diagrams depicted herein are just examples. There may be many variations to these diagrams or the steps (or operations) described therein without departing from the spirit of the invention. For instance, the steps may be performed in a differing order, or steps may be added, deleted or modified. All of these variations are considered a part of the claimed invention.


[0548] Although preferred embodiments have been depicted and described in detail herein, it will be apparent to those skilled in the relevant art that various modifications, additions, substitutions and the like can be made without departing from the spirit of the invention and these are therefore considered to be within the scope of the invention as defined in the following claims.


Claims
  • 1. A method of providing management within a computing environment, said method comprising: obtaining an input/output subsystem of the computing environment, the input/output subsystem comprising a plurality of input/output subsystem images, wherein an input/output subsystem image appears to a program as an independent input/output subsystem; and managing one or more input/output subsystem images of the plurality of input/output subsystem images.
  • 2. The method of claim 1, wherein the managing comprises managing an input/output (I/O) configuration of an input/output subsystem image of the one or more input/output subsystem images.
  • 3. The method of claim 2, wherein the managing the I/O configuration comprises dynamically managing the I/O configuration, wherein the I/O configuration is modified without a restart of the input/output subsystem to effect a modification.
  • 4. The method of claim 2, wherein the managing the I/O configuration comprises at least one of adding, deleting and modifying an input/output path of the I/O configuration.
  • 5. The method of claim 2, wherein said managing the I/O configuration comprises at least one of adding, deleting and modifying a control unit of the I/O configuration.
  • 6. The method of claim 2, wherein said managing comprises at least one of adding, deleting and modifying an I/O device of the I/O configuration.
  • 7. The method of claim 1, wherein the managing comprises managing utilization of an input/output subsystem image of the one or more input/output subsystem images, said managing utilization comprising specifying the input/output subsystem image to be utilized, said specifying comprising employing an input/output subsystem identifier.
  • 8. The method of claim 7, wherein said managing utilization further comprises validating the input/output subsystem identifier.
  • 9. The method of claim 8, wherein the validating includes at least one of existence checking, range checking and authorization checking.
  • 10. The method of claim 1, wherein said managing comprises determining whether an operating system is authorized to access a particular input/output subsystem image of the plurality of input/output subsystem images.
  • 11. The method of claim 1, wherein the managing is performed by a manager program having one or more configuration capabilities, wherein other programs not having configuration capabilities are isolated from the managing.
  • 12. The method of claim 11, wherein the manager program is located within a logical partition of a central processing complex of the computing environment, and wherein the other programs are located in at least one of the logical partitions and one or more other logical partitions of the central processing complex.
  • 13. The method of claim 1, further comprising obtaining information associated with at least one input/output subsystem image of the plurality of input/output subsystem images, said information usable in the managing.
  • 14. A system of providing management within a computing environment, said system comprising: an input/output subsystem of the computing environment, the input/output subsystem comprising a plurality of input/output subsystem images, wherein an input/output subsystem image appears to a program as an independent input/output subsystem; and means for managing one or more input/output subsystem images of the plurality of input/output subsystem images.
  • 15. The system of claim 14, wherein the means for managing comprises means for managing an input/output (I/O) configuration of an input/output subsystem image of the one or more input/output subsystem images.
  • 16. The system of claim 15, wherein the means for managing the I/O configuration comprises means for dynamically managing the I/O configuration, wherein the I/O configuration is modified without a restart of the input/output subsystem to effect a modification.
  • 17. The system of claim 15, wherein the means for managing the I/O configuration comprises at least one of means for adding, means for deleting and means for modifying an input/output path of the I/O configuration.
  • 18. The system of claim 15, wherein said means for managing the I/O configuration comprises at least one of means for adding, means for deleting and means for modifying a control unit of the I/O configuration.
  • 19. The system of claim 15, wherein said means for managing comprises at least one of means for adding, means for deleting and means for modifying an I/O device of the I/O configuration.
  • 20. The system of claim 14, wherein the means for managing comprises means for managing utilization of an input/output subsystem image of the one or more input/output subsystem images, said means for managing utilization comprising means for specifying the input/output subsystem image to be utilized, said means for specifying comprising means for employing an input/output subsystem identifier.
  • 21. The system of claim 20, wherein said means for managing utilization further comprises means for validating the input/output subsystem identifier.
  • 22. The system of claim 21, wherein the means for validating includes at least one of existence checking, range checking and authorization checking.
  • 23. The system of claim 14, wherein said means for managing comprises means for determining whether an operating system is authorized to access a particular input/output subsystem image of the plurality of input/output subsystem images.
  • 24. The system of claim 14, wherein the means for managing comprises a manager program having one or more configuration capabilities, wherein other programs not having configuration capabilities are isolated from the managing.
  • 25. The system of claim 24, wherein the manager program is located within a logical partition of a central processing complex of the computing environment, and wherein the other programs are located in at least one of the logical partitions and one or more other logical partitions of the central processing complex.
  • 26. The system of claim 14, further comprising means for obtaining information associated with at least one input/output subsystem image of the plurality of input/output subsystem images, said information usable in the managing.
  • 27. A system of providing management within a computing environment, said system comprising: an input/output subsystem of the computing environment, the input/output subsystem comprising a plurality of input/output subsystem images, wherein an input/output subsystem image appears to a program as an independent input/output subsystem; and a manager to manage one or more input/output subsystem images of the plurality of input/output subsystem images.
  • 28. At least one program storage device readable by a machine embodying at least one program of instructions executable by the machine to perform a method of providing management within a computing environment, said method comprising: obtaining an input/output subsystem of the computing environment, the input/output subsystem comprising a plurality of input/output subsystem images, wherein an input/output subsystem image appears to a program as an independent input/output subsystem; and managing one or more input/output subsystem images of the plurality of input/output subsystem images.
  • 29. The at least one program storage device of claim 28, wherein the managing comprises managing an input/output (I/O) configuration of an input/output subsystem image of the one or more input/output subsystem images.
  • 30. The at least one program storage device of claim 29, wherein the managing the I/O configuration comprises dynamically managing the I/O configuration, wherein the I/O configuration is modified without a restart of the input/output subsystem to effect a modification.
  • 31. The at least one program storage device of claim 29, wherein the managing the I/O configuration comprises at least one of adding, deleting and modifying an input/output path of the I/O configuration.
  • 32. The at least one program storage device of claim 29, wherein said managing the I/O configuration comprises at least one of adding, deleting and modifying a control unit of the I/O configuration.
  • 33. The at least one program storage device of claim 29, wherein said managing comprises at least one of adding, deleting and modifying an I/O device of the I/O configuration.
  • 34. The at least one program storage device of claim 28, wherein the managing comprises managing utilization of an input/output subsystem image of the one or more input/output subsystem images, said managing utilization comprising specifying the input/output subsystem image to be utilized, said specifying comprising employing an input/output subsystem identifier.
  • 35. The at least one program storage device of claim 34, wherein said managing utilization further comprises validating the input/output subsystem identifier.
  • 36. The at least one program storage device of claim 35, wherein the validating includes at least one of existence checking, range checking and authorization checking.
  • 37. The at least one program storage device of claim 28, wherein said managing comprises determining whether an operating system is authorized to access a particular input/output subsystem image of the plurality of input/output subsystem images.
  • 38. The at least one program storage device of claim 28, wherein the managing is performed by a manager program having one or more configuration capabilities, wherein other programs not having configuration capabilities are isolated from the managing.
  • 39. The at least one program storage device. of claim 38, wherein the manager program is located within a logical partition of a central processing complex of the computing environment, and wherein the other programs are located in at least one of the logical partitions and one or more other logical partitions of the central processing complex.
  • 40. The at least one program storage device of claim 28, further comprising obtaining information associated with at least one input/output subsystem image of the plurality of input/output subsystem images, said information usable in the managing.
CROSS-REFERENCE TO RELATED APPLICATIONS

[0001] This application contains subject matter which is related to the subject matter of the following applications, each of which is assigned to the same assignee as this application. Each of the below listed applications is hereby incorporated herein by reference in its entirety: [0002] “MULTIPLE LOGICAL INPUT/OUTPUT SUBSYSTEM FACILITY,” Brice et al., (IBM Docket No. POU920020071US1), Ser. No. ______, filed herewith; [0003] “METHOD, SYSTEM AND PROGRAM PRODUCTS FOR ENHANCING INPUT/OUTPUT PROCESSING FOR OPERATING SYSTEM IMAGES OF A COMPUTING ENVIRONMENT,” Brice et al., (IBM Docket No. POU920020141US1), Ser. No. ______, filed herewith; [0004] “METHOD, SYSTEM AND PROGRAM PRODUCTS FOR IDENTIFYING COMMUNICATIONS ADAPTERS OF A COMPUTING ENVIRONMENT,” Brice et al., (IBM Docket No. POU920020142US1), Ser. No. ______, filed herewith; [0005] “MANAGING ACCESS, BY OPERATING SYSTEM IMAGES OF A COMPUTING ENVIRONMENT, OF INPUT/OUTPUT RESOURCES OF THE COMPUTING ENVIRONMENT,” Brice et al., (IBM Docket No. POU920020143US1), Ser. No. ______, filed herewith; and [0006] “SHARING COMMUNICATIONS ADAPTERS ACROSS A PLURALITY OF INPUT/OUTPUT SUBSYSTEM IMAGES,” Brice et al. (IBM Docket No. POU920030025US1), Ser. No. ______, filed herewith.