JP3587631B2 - Virtual computer system - Google Patents

Virtual computer system Download PDF

Info

Publication number
JP3587631B2
JP3587631B2 JP26087696A JP26087696A JP3587631B2 JP 3587631 B2 JP3587631 B2 JP 3587631B2 JP 26087696 A JP26087696 A JP 26087696A JP 26087696 A JP26087696 A JP 26087696A JP 3587631 B2 JP3587631 B2 JP 3587631B2
Authority
JP
Japan
Prior art keywords
input
output
instruction
control information
scds
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP26087696A
Other languages
Japanese (ja)
Other versions
JPH10105419A (en
Inventor
信吾 柴内
明男 佐々木
孝 森川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP26087696A priority Critical patent/JP3587631B2/en
Publication of JPH10105419A publication Critical patent/JPH10105419A/en
Application granted granted Critical
Publication of JP3587631B2 publication Critical patent/JP3587631B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、システム全体の物理資源を複数に分割して複数の論理計算機が動作する仮想計算機システムに係り、特に、入出力に関わる資源の拡張を可能とする入出力構成の拡張を可能とした仮想計算機システムに関する。
【0002】
【従来の技術】
近年、計算機システムの大規模化、システム性能向上に伴い、1つの物理的計算機システムを複数の論理計算機に分割して使用することにより、多様なサービスをユーザに供給することのできる仮想計算機システムが普及してきている。特に、複数の区分(Partition)と呼ばれる分割された計算機システム環境で複数のオペレーティング・システムを独立に動作させる論理計算機(LPAR Logical PARtition)が一般的になってきた。
【0003】
このLPARを実現するハードウェア機構は、1つの物理的計算機システムの資源をLPARに分割してこれを管理するものである。各LPARは、独立したオペレーティング環境をユーザに提供する。各LPARは、物理的計算機システムの資源の一部を独占または共有する。例えば、各LPARは、主記憶装置を排他的に占有するし、入出力装置、及び、中央処理装置と入出力装置とを接続するチャネルパスを排他的あるいは他LPARと共有して使用する。これらの各LPARと物理的資源との接続、従属関係は、予め定められた方法でシステムに与えられる。また、各LPARと入出力装置との従属関係は、入出力構成制御情報(SCDS)としてシステムに与えられている。
【0004】
前述のSCDSは、専用のプログラム(SCCP)を用いて作成され、サービスプロセッサ(SVP)のSCDS格納領域に格納される。ユーザは、利用形態に応じて複数のSCDSを作成しておき、システムのパワーオン時にそれらの内の1つをSVPのSCDS選択フレームを用いて選択する。選択されたSCDSの内容は、パワーオン・リセットの過程で主記憶装置(MS)内のハードウェア・システムエリア(HSA)に、後述で説明するような形式で展開、格納される。HSAのこのエリアはHSAIOAと呼ばれる。HSAIOAは、入出力命令実行に必要なサブチャネル、チャネルパス接続等の情報を含み、中央処理装置を構成する命令処理装置、入出力処理装置によって参照、更新される。
【0005】
入出力処理は、チャネル・サブシステムで実行され、チャネル・サブシステムは、入出力処理装置、チャネル装置、チャネルパス、HSAIOAを含んで構成される。チャネル・サブシステムは、定義されたSCDSに基づいてI/Oオペレーションを実行する。このことは、チャネル・サブシステムがパワーオン時に1つのSCDSと対応付けられることを意味している。
【0006】
LPARモードにおいて、入出力処理の実行は、2つの動作状態の中で行われる。すなわち、第1の状態は、LPARを実現するホストであるハードウェア機構を制御するホストプログラムが動作中の状態であり、第2の状態は、LPARに割り当てられたゲストプログラムが動作中の状態である。ハードウェア機構は、SIE(Start Interpretive Execution)命令によってLPAR上の1つのゲストを起動する。ゲストは、通常、1つのオペレーティング・システム(OS)で動作する基本モードと同じ命令仕様で動作する。
【0007】
前述したように、ゲストは、LPARを実現するハードウェア機構によって与えられたOS環境の下で命令を直接実行するが、ある種の命令はシステム全体に影響を与えるために直接実行することができない場合がある。このような場合、ゲストからホストに制御が移り、ホストがゲスト命令のシミュレーションを行う。ホスト環境において、厳密にホストとゲストのアーキテクチャは同一である必要はない。何故なら、それはユーザから見えないからであるが、一般的には同一の命令はゲストでもホストでも同一仕様で動作する。
【0008】
計算機システムのアーキテクチャは、命令の形式を定義するが、逆に、一旦定められた命令形式がシステムのアーキテクチャの制約となる。例えば、31ビットアドレスは仮想空間を2GBに制限し、チャネルパスを指定する8ビットのチャネル識別子(CHPID)はチャネルパス数を256以下に制限する。そして、チャネルパス数の制限は各LPAR環境の制限に留まらずシステム全体としての制限になっている。
【0009】
以下、前述のような従来技術を図面により説明する。
【0010】
図1は従来技術による、また、本発明が適用される仮想計算機システムの構成を示すブロック図、図7は従来技術によるSCDS選択フレーム画面を示す図、図8は従来技術によるHSAIOAの格納形式を示す図、図9は図8の詳細を示す図、図10は入出力処理装置(IOP)が持っている内部情報を示す図、図11は命令処理装置(IP)の汎用レジスタの内容を示す図である。図1において、1−1〜1−2はOS、2は複数のOSを独立して動作させるホストとしてのハードウェア機構、3−1〜3−2はIP、4はMS、5−1〜5−4はIOP、6−1〜6−2はLPAR、7はSVP、8はディスクファイル装置(HD)である。
【0011】
図1に示す仮想計算機システムは、物理的には1つである計算機システムのハードウェア資源を論理的な複数の区分に分割し、複数のOS1−1〜OS1−2を独立して動作させるハードウェア機構2と、OSが発行する入出力命令(I/O命令)等の命令を実行するIP3−1〜3−2、プログラム及び処理データを格納するMS4、及び、I/O命令に従い入出力動作を行うIOP5−1〜5−4によるハードウェア資源をハードウェア機構2により論理的な複数の区分に分割して複数のOSが独立に動作するLPAR6−1〜6−2と、SCDSを選択して使用するSVP7と、SVP7によって選択されたSCDSを格納するHD8とを備えて構成される。SCDSは、システムの電源投入時、あるいは、システムの初期設定時に、ハードウェアによってHD8からMS4のHSAの入出力構成制御情報領域(HSAIOA)にロードされる。
【0012】
次に、図1に示す仮想計算機システムにおける従来技術によるI/O命令実行の動作を説明する。システム立ち上げ時にどのSCDSを使用するかは、SVPフレームによって選択される。すなわち、SVP7のSCDS選択フレーム画面は、図7(a)、(b)に例示すようなものであるが、図7(a)に示す例のSCDS選択フレーム画面には、20−1として示すSCDS番号を入力する領域が設定されており、この領域20−1にSCDS番号を入力することによりSCDSを選択することができ、また、図7(b)に示す例のSCDS選択フレーム画面には、30−1〜30−iとして示すSCDS番号を入力する複数の領域が設定されており、i個までのSCDS番号を入力することにより複数のSCDSを選択することができる。
【0013】
従来技術によるHSAIOAの格納形式が図8に、また、HSIOAに格納される各テーブルの詳細が図9示されており、HSAIOAは、DIRECTORY、UCWQ、IQB、PCW、UCWの5つのテーブルから構成される。テーブルDIRECTORYには、HSAに格納されるテーブルUCWQ、IQB、PCW、UCWのそれぞれの先頭のMSアドレスが、図9に示すように、SUCWQ、SIQB、SPCW、SUCWとして設定される。
【0014】
テーブルUCWQとIQBとは、IP3−1〜3−2とIOP5−1〜5−4との間の入出力動作の起動、割り込み処理において情報交換を行う領域である。テーブルPCWは、該当IOグループ対応のSCDSにより構成定義された個々のCHに対応して設けられており、該当PCWの有効性を示す情報Vと、該当IOグループ対応のSCDS内でユニークなCH番号CHNOとを有している。テーブルUCWは、該当IOグループ対応のSCDSにより構成定義された個々のIOデバイスに対応して設けられており、該当UCWの有効性を示す情報Vと、該当IOグループ対応のSCDS内でユニークなIOデバイス番号DEVNOと、ハードウェアがIOデバイス情報をMS4に格納する際に割り当てる該当IOグループ対応のHSAIOA内でユニークなIOデバイス番号UCWNOと、IOデバイスをアクセス可能なCHをビット対応に示すCHマスクPMと、IOデバイスをアクセス可能なCHを示すCH番号CHNOと、IOデバイスがどのLPARからの入出力動作を実行しているかを示すLPAR番号LPARNOとを有している。
【0015】
図10に示すように、IOP5−1〜5−4も、それぞれ、HSAIOAのDIRECTORYを持っており、これらの情報は、システムの初期設定時にSVP7より先頭HSAIOAアドレスによりIOPに伝達される。これにより、各IOP5−1〜5−4は、自らHSAIOAをアクセスして内部にDIRECTORYを設定する。
【0016】
次に、図1、図7〜図11を参照して従来技術によるI/O命令実行の動作を説明する。
【0017】
まず、図7(a)に示すSVPフレーム画面を使用して、システムの初期設定に使用するSCDSNOを選択する。この場合、SCDSNOの入力欄に“0”と入力され、SCDS“0”が選択される。この選択されたSCDSは、SVP7によってHD8に格納される。ここで、SCDS“0”には、LPARNO“1”、CHNO“20”、DEVNO“0020”が構成定義されているものとする。SCDSは、ハードウェアの初期設定が実行されると図8、図9、図10に示すような形式で、HSAIOA及びIOP内部に格納される。
【0018】
図8に示すようにHSAIOAの先頭MSアドレスは“10000”と割り当てられ、これら各領域の詳細は図9に示すようにMSアドレス“10000”からDIRECTORY、UCWQ、IQB、PCW、UCWの順に格納される。初期設定時、I/O命令は実行されないため、UCWQ、IQBはオール0に設定される。PCWは、SCDS“0”にCHNO“20”が構成定義されているため、CHNO“20”の領域にVとCHNO“20”とが設定される。
【0019】
UCWは、そのSCDS“0”にDEVNO“0020”が構成定義されており、DEVNO“0020”がSCDS“0”の入出力デバイスの中で10番目にUCWに格納されたとすると、UCWNO“000A”の領域に、V、DEVNO“0020”、UCWNO“000A”が設定される。DEVNO“0020”は、CHNO“20”のCHに接続されるものとすると、UCWNO“000A”の領域にPM“80”、CHNO“20”が設定される。各IOP5−1〜5−4の内部情報は、SVP7が各IOPに先頭HSAIOAアドレスを伝達し、各IOPが図10に示すように自IOP内部にHSAIOAのDIRECTORYを設定することにより生成される。
【0020】
LPARモードでは、ゲストプログラムが入出力処理を実行する場合と、ホストプログラムが入出力処理を実行する場合とがあるが、IP3−1〜3−2及びIOP5−1〜5−4は、ゲスト/ホストを意識することなく入出力処理を実行する。そして、どの入出力デバイスに対してI/O命令を実行するかは、プログラムにより、図11に示すように、IPの汎用レジスタ1(GR1)にUCWNOを設定することによりIPが認識することができる。
【0021】
従来技術は、前述した制御情報に基づいて、プログラムとハードウェアとの間で入出力動作の制御が行われる。以下に、LPAR6−1からDEVNO“0020”にI/O命令が発行されたものとして、その動作を説明する。
【0022】
LPARモードでのI/O命令の実行は、ハードウェア機構2がSIE命令によりLPAR6−1を起動し、IP3−1がLPAR6−1のI/O命令を実行することにより行われる。IP3−1は、LPAR6−1の指示によりGR1に“0001000A”を設定し、UCWNO“000A”対応のUCWを、HSAIOA上のDIRECTORY内のSUCWに示されるMSアドレスに従ってアクセスし、このI/O命令がLPAR6−1で直接実行可能か否かをチェックし、実行可能であれば引き続きこのI/O命令を続行する。
【0023】
IP3−1は、前述のアクセスにより得たUCWのLPARNOに“01”を設定し、さらに、UCWQのNUMUCWQに“1”を、TUCWNOに“000A”を、BUCWNO“000A”を設定してIOP5−1または5−2を起動する。起動されたIOPは、内部情報のSUCWQに従いUCWQをアクセスし、DEVNO“0020”への処理要求があることを認識する。そして、TUCWNO“000A”に従い、UCWをアクセスしてPM“80”対応のCHNO“20”のCHを起動する。これにより、LPAR6−1が発行したI/O命令がDEVNO“0020”の入出力装置で実行される。
【0024】
DEVNO“0020”の入出力装置が入出力命令の実行を終了すると、CHNO“20”のCHがIOPに対しDEVNO“0020”の入出力命令の実行終了を報告し、IOPは、UCWのLPARNOに従いHSAIOA上のLPAR6−1(図9(c)参照)対応のIQBのNUMIQBに“1”、TUCWNOに“000A”、BUCWNOに“000A”を設定する。IP3−1は、LPAR6−1対応のIQB内のNUMIQBが“1”であることにより、TUCWNOの“000A”に従いUCWをアクセスし、UCWのLPARNOが“01”であることから、LPAR6−1に対してDEVNO“0020”の入出力装置による入出力命令の実行終了を報告する。
【0025】
前述において、発行されたI/O命令がLPAR6−1により直接実行することが不可能な場合、ホストがこのI/O命令をインターセプトし、ホストがこのI/O命令を発行する。IPは、UCWのLPARNOに“00”を設定し、さらに、UCWQのNUMUCWQに“1”を、TUCWNOに“000A”を、BUCWNOに“000A”を設定してIOPを起動する。IOPは、内部情報のSUCWQに従いUCWQをアクセスし、DEVNO“0020”の入出力装置への処理要求があることを認識する。
【0026】
そして、IOPは、TUCWNOの“000A”に従い、UCWをアクセスしPM“80”対応のCHNO“20”のCHを起動することによって、ホストが発行したI/O命令をDEVNO“0020”の入出力装置に実行させる。DEVNO“0020”の入出力装置が入出力命令の実行を終了すると、CHNO“20”のCHがIOPに対しDEVNO“0020”の入出力命令の実行終了を報告し、IOPはUCWのLPARNOに従いHSAIOA上のホスト(図9(d)参照)対応のIQBのNUMIQBに“1”を、TUCWNOに“000A”を、BUCWNOに“000A”を設定する。
【0027】
IPは、ホスト対応のIQB内NUMIQBが“1”であることにより、TUCWNOの“000A”に従いUCWをアクセスし、UCWのLPARNOが“00”であることにより、ホストに対しDEVNO“0020”の入出力装置による入出力命令の実行が終了したことを報告する。
【0028】
【発明が解決しようとする課題】
前述した従来技術は、各LPARで動作するゲストのそれぞれがあたかも1つの計算機システムを占有するが如く振る舞っているが、システム全体のI/O構成を定義しているのは1つのSCDSであり、このSCDSは、1つのチャネル・サブシステムに対応付けられため、チャネルパスの数に制約を受けるという問題点を有している。
【0029】
従来技術の場合、CHPIDが8ビットであり、この大きさが計算機システムのアーキテクチャ上の制約により決められているものである。前述の従来技術は、このため、チャネルパスの数が1つのLPARからみても、システム全体でみても最大256に制約されてしまうという問題点を生じている。
【0030】
近年、命令処理装置における、単体プロセッサの大幅な性能向上、マルチプロセッサ化に伴い、入出力処理における前述した制約が、システム全体としての命令処理装置と入出力装置の負荷とにアンバランスを生じてきている。
【0031】
本発明の目的は、前記従来技術の問題点を解決し、ユーザからみえる計算機システムのアーキテクチャを変更することなく、LPAR環境で入出力に関わる資源、特に、チャネルパス数の制限をなくすことのできる仮想計算機システムを提供することにある。
【0032】
【課題を解決するための手段】
本発明によれば前記目的は、1または複数の命令処理装置と、主記憶装置と、複数の入出力処理装置と、サービスプロセッサと、複数の入出力装置と、複数の論理計算機を制御するハードウェア機構とを備え、複数の入出力構成制御情報に基づいて入出力動作が実行される仮想計算機システムにおいて、前記サービスプロセッサが、前記複数の入出力処理装置のそれぞれと前記複数の入出力構成制御情報の中の1つとを対応付ける手段、及び、この対応付けの第1の制御情報を生成する手段を備え、前記ハードウェア機構が、前記複数の論理計算機のそれぞれと前記複数の入出力構成制御情報の中の1つとを対応付ける第2の制御情報を生成する手段を備え、前記主記憶装置上のハードウェア専用領域に、前記ハードウェア機構が参照可能な形式で、前記複数の入出力構成制御情報を各入出力構成制御情報単位に格納する入出力制御情報格納領域と、前記第1及び第2の制御情報とを格納する領域とを備え、前記サービスプロセッサ、命令処理装置及びハードウェア機構が、前記入出力制御情報、前記第1及び第2の制御情報を主記憶装置上のハードウェア専用領域へ格納する手段を備え、前記命令処理装置が、ハードウェア機構の入出力命令発行時、複数の前記入出力制御情報の中から入出力動作に使用する1つを対応付ける第3の制御情報を指示する手段を備え、前記命令処理装置が、各論理計算機あるいはハードウェア機構が発行する入出力命令の実行時、前記第2及び第3の制御情報を参照し、複数の入出力制御情報の中から入出力動作に使用する1つを選択使用する手段を備え、前記入出力処理装置が、入出力動作の実行時に前記第1の制御情報を参照し、複数の前記入出力制御情報の中から入出力動作に使用する1つを選択使用する手段を備えたことにより達成される。
【0033】
具体的には、本発明は、それぞれの入出力処理装置と複数のSCDSの中の1つを対応付ける手段と、この対応付けの制御情報(IOPINFO)を生成する手段とをSVPに備え、それぞれのLPARと複数のSCDSの中の1つとを対応付ける制御情報(LPARINFO)を生成する手段をハードウェア機構に備え、複数のSCDSをハードウェアが参照可能な形式で各SCDS単位に格納する領域(この領域に格納する情報をHSAIOAという)とIOPINFO及びLPARINFOをハードウェアが参照可能な形式で格納する領域とを主記憶装置上のハードウェア専用領域に具備し、前記HSAIOA、IOPINFO及びLPARINFOを主記憶装置上のハードウェア専用領域へ格納する手段をSVP、IP及びハードウェア機構に備え、ハードウェア機構が入出力命令発行時に、複数の前記HSAIOAの中から入出力動作に使用する1つを対応付ける制御情報(SID)を指示する手段、及び、各LPARあるいはハードウェア機構が発行する入出力命令の実行時に前記LPARINFO及びSIDを参照し、複数の前記HSAIOAの中から入出力動作に使用する1つを選択使用する手段をIPに備え、入出力動作実行時に前記IOPINFOを参照し、複数の前記HSAIOAの中から入出力動作に使用する1つを選択使用する手段をIOPに備えて構成される。
【0034】
本発明においては、それぞれの入出力処理装置と複数のSCDSの対応付けと、該対応付けの制御情報(IOPINFO)の生成とをSVPが行い、それぞれのLPARと複数のSCDSを対応付ける制御情報(LPARINFO)の生成をホストが行い、システム立ち上げ時に、前記IOPINFO、LPARINFO及び複数のSCDSを各SCDS単位に主記憶装置上のハードウェア専用領域に、SVP、IP、ハードウェア機構が格納し、ハードウェア機構が入出力命令発行時に、複数の前記HSAIOAの中から入出力動作に使用する1つを対応付ける制御情報(SID)を指示し、IPが各LPARあるいはハードウェア機構が発行する入出力命令の実行時に前記LPARINFO及びSIDを参照し、複数の前記HSAIOAの中から入出力動作に使用する1つを選択使用し、IOPが入出力動作の実行時に前記IOPINFOを参照し、複数の前記HSAIOAの中から入出力動作に使用する1つを選択使用している。
【0035】
本発明は、前述により、ユーザからみえるアーキテクチャの変更なしに入出力に関わる資源、特に、チャネルパス数の制限をなくすことが可能となる。
【0036】
【発明の実施の形態】
以下、本発明による仮想計算機システムの実施形態を図面により詳細に説明する。
【0037】
図2はSCDSとIOPとを対応付けるSVPフレーム画面を示す図、図3は本発明の一実施形態においてHSA共通領域(HSACOA)と各IOグループ単位に設けられたHSAIOG固有領域(HSAIOA)とのMS内への格納形式を示す図、図4は図3の詳細形式を示す図、図5はIOPが持っている内部情報を示す図、図6はIPの汎用レジスタの内容を示す図である。
【0038】
本発明が適用される仮想計算機システムは、図1によりすでに従来技術の欄で説明したと同一の構成を有している。そして、SCDS選択フレーム画面も図7に示した従来技術の場合と同一である。
【0039】
次に、図1の仮想計算機システムに対して、本発明により入出力構成の拡張を行った場合のI/O命令実行の動作を説明する。
【0040】
システム立ち上げ時にどのSCDSを使用するかは、従来技術の場合と同様に、図7(b)に示すSVPフレームにおいて、SCDS番号の入力領域30−1〜30−iにSCDS番号を入力して複数のSCDSを選択することにより決定され、これにより入出力動作を実行する。
【0041】
本発明の一実施形態は、選択した複数のSCDSと、複数のIOPの対応付けをSVPフレームにより行い、入出力動作におけるハードウェア資源を各SCDS単位に割り当てることを可能としている。すなわち、SCDSとIOPとを対応付ける図2に示すSVPフレーム画面において、図2(a)に41として示す領域と、図2(b)に51として示す領域にSCDS番号を入力し、図2(a)に42−1〜42−8として示す領域と、図2(b)に52−1〜52−8として示す領域にIOP番号を入力することにより、SCDSとIOPとを対応付けることができる。このように、複数のSCDSを選択し、さらにそれぞれのSCDSにIOPを対応付けることにより、各SCDS単位に入力装置グループ(IOG)を形成することができる。
【0042】
本発明の一実施形態では、ハードウェアのシステムの初期設定時に、これら複数のSCDS情報及びSCDSとIOPとの対応情報を、MSのHSA共通領域であるHSACOAと各IOG単位に設けられたHSAIOG固有領域であるHSAIOAとに格納する。
【0043】
HSACOAは、図3に示すように、LPARINFO、IOPINFOの2つのテーブルから構成される。LPARINFOは、各SCDSにより構成定義されたLPAR情報を格納する領域であり、各LPARがどのIOGに対してI/O命令を発行するかを示す情報である。また、IOPINFOは、図2で説明したように、SVPフレームにより選択した情報であり、各IOPがどのIOGからのI/O命令を実行するかを示す情報である。
【0044】
各IOG単位のHSAIOAには、各SCDS固有の情報が従来技術の場合のHSAIOAと同様の形式で設定されている。また、図5に示すように、IOPも、前述したIOPINFOに示されるIOGのDIRECTORYを持っており、これらの情報は、システムの初期設定時にSVP7より該当IOGの先頭HSAIOAアドレスをIOPに伝達することにより、IOPが自ら該当IOGのHSAIOAをアクセスしてDIRECTORYを設定する。
【0045】
以下、図1〜図4を参照して、本発明の一実施形態により入出力構成の拡張を行った仮想計算機システムのI/O命令実行の動作を説明する。
【0046】
まず、図7(b)に示すSVPフレームを用いて、システムの初期設定に使用するSCDSNOを選択する。この例の場合、SCDSNOの入力欄に“0”、“1”と入力されるためSCDSとして“0”と“1”とが選択される。さらに、ここで選択したSCDSとIOPとの対応付けをSVPフレームを使用して設定する。SCDS“0”に対しては、図2(a)に例示するようにIOPNOの入力欄に“0”、“1”とを入力しているため、SCDS“0”とIOP“0”及び“1”とが対応付けられる。また、SCDS“1”に対しては、図2(b)に例示するように、IOPNOの入力欄に“2”、“3”と入力しているため、SCDS“1”とIOP“2”及び“3”とが対応付けられる。これらの選択された情報は、SVP7によってHD8に格納される。ここで、SCDS“0”には、LPARNO“1”、CHNO“20”、DEVNO“0020”が構成定義され、SCDS“1”には、LPARNO“2”、CHNO“20”、DEVNO“0020”が構成定義されているものとする。
【0047】
本発明の一実施形態において注意すべき点は、前述のように異なるSCDS内に定義される同一CHNOのチャネルパス及び同一DEVNOのI/O装置は、それぞれ物理的には異なるものである点である。
【0048】
そして、SCDS及びSCDSとIOPとの対応情報は、ハードウェアの初期設定が実行されると、図3、図5、図4に示すような形式で、HSACOA、HSAIOA及びIOP内部に格納される。図3に示すように、HSACOAの先頭MSアドレスは“01000”、IOG“0”のHSAIOAの先頭MSアドレスは“10000”、IOG“1”のHSAIOA領域の先頭MSアドレスは“20000”と割り当てられ、これら各領域の詳細が図4に示すように設定される。以下、図4を参照してこれらの詳細を説明する。
【0049】
HSACOAのLPARINFOは、SCDS“0”にLPARNO“1”、SCDS“1”にLPARNO“2”が構成定義されているとしているため、LPARNO“1”の領域にIOGNO“00”、LPARNO“2”の領域にIOGNO“01”が設定される。IOPINFOは、SVPフレームにより図2(a)、(b)に示すような設定がされているため、IOPNO“0”、“1”の領域にIOGNO“00”、IOPNO“2”、“3”の領域にIOGNO“01”が設定される。
【0050】
IOG“0”のHSAIOAは、図3により説明したように、MSアドレス“10000”からDIRECTORY、UCWQ、IQB、PCW、UCWの順に格納される。初期設定時、入出力命令は実行されないため、UCWQ、IQBはオール0に設定される。PCWは、SCDS“0”にCHNO“20”が構成定義されているため、CHNO“20”の領域にVとCHNO“20”が設定される。UCWは、SCDS“0”にDEVNO“0020”が構成定義されており、DEVNO“0020”がSCDS“0”のDEVの中で10番目にUCWに格納されたとすると、UCWNO“000A”の領域にV、DEVNO“0020”、UCWNO“000A”が設定される。
【0051】
また、IOG“0”のDEVNO“0020”の入出力装置がIOG“0”のCHNO“20”に接続されるものとすると、UCWNO“000A”の領域にPM“80”、CHNO“20”が設定される。
【0052】
IOG“1”のHSAIOAは、MSアドレス“20000”からDIRECTORY、UCWQ、IQB、PCW、UCWの順に格納される。IOG“1”は、IOG“0”と同様に、CHNO“20”、DEVNO“0020”が構成定義されており、UCWの設定条件がSCDS“0”と同様であり、かつ、IOG“1”のDEVNO“0020”の入出力装置がIOG“1”のCHNO“20”に接続されるものとすると、UCWは、IOG“0”の領域のCHNO“20”のPCW、DEVNO“0020”と同様の情報が設定される。
【0053】
IOPの内部情報としては、IOP“0”、“1”がIOPINFOによりIOG“0”に設定されているため、IOG“0”のHSAIOAのDIRECTORYが設定され、IOP“2”、“3”がIOPINFOでIOG“1”に設定されているため、IOG“1”のHSAIOAのDIRECTORYが設定される。
【0054】
従来技術のI/O命令実行の動作で説明したように、LPARモードでは、ゲストプログラムがI/O命令を実行する場合と、ホストプログラムがI/O命令を実行する場合とがあり、本発明の実施形態は、これらのI/O命令をどちらのIOGで実行すべきかをIPが判断しながら処理を実行する。ゲストがI/O命令を直接実行する場合、IPは、HSACOAのLPARINFOからSIE命令のSDに記述されているLPAR番号に対応するIOG番号を求め、そのIOGに対応したHSAIOAを使用しI/O命令を実行する。これに対し、ホストがI/O命令を実行する場合、ホストプログラムによりIPのGR1にIOG情報を図6に示すように指定し、IPがこの情報に基づいて、そのIOGに対応したHSAIOAを使用しI/O命令を実行する。
【0055】
本発明の一実施形態による仮想計算機システムは、以上説明したように入出力構成を拡張することができ、プログラムとハードウェアとの間でI/O命令を実行することができる。
【0056】
以下、LPAR6−1とLPAR6−2とからDEVNO“0020”の入力装置に対してI/O命令が発行されたものとして本発明の一実施形態の動作を説明する。本発明の一実施形態におけるLPARモードでのI/O命令は、ホスト機構22がSIE命令によりLPAR6−1とLPAR6−2とを起動することにより開始される。
【0057】
LPAR6−1のI/O命令を実行するIPは、LPAR6−1の指示によりGR1に“0001000A”を設定し、SIE命令のSDに示されるLPAR6−1対応のHSACOA上のLPARINFOがIOG“0”を示していることにより、IOG“0”のHSAIOA上のUCWNO“000A”対応のUCWを、IOG“0”のHSAIOA上のDIRECTORY内のSUCWに示されるMSアドレスに従ってアクセスして、このI/O命令がLPAR6−1で直接実行可能か否かをチェックし、実行可能であれば引き続きこのI/O命令の処理を続行する。
【0058】
LPAR6−2のI/O命令を実行するIPは、LPAR6−2の指示によりGR1に“0001000A”を設定し、SIE命令のSDに示されるLPAR6−2対応のHSACOA上のLPARINFOがIOG“1”を示していることにより、IOG“1”のHSAIOA上のUCWNO“000A”対応のUCWを、IOG“1”のHSAIOA上のDIRECTORY内のSUCWに示されるMSアドレスに従ってアクセスして、このI/O命令がLPAR6−2で直接実行可能か否かをチェックし、実行可能であれば引き続きこのI/O命令の処理を続行する。
【0059】
LPAR6−1のI/O命令を実行するIPは、IOG“0”のUCWのLPARNOに“01”を設定(図4(a)参照)し、さらに、UCWQにNUMUCWQ“1”、TUCWNO“000A”、BUCWNO“000A”を設定して、IOP5−1及び5−2(IOG0IOP)を起動する。また、LPAR6−2のI/O命令を実行するIPは、IOG“1”のUCWのLPARNOに“02”を設定(図4(a)参照)し、さらにUCWQにNUMUCWQ“1”、TUCWNO“000A”、BUCWNO“000A”を設定してIOP5−35−4(IOG1IOP)を起動する。
【0060】
IOG0IOPは、内部情報のSUCWQに従いUCWQをアクセスし、DEVNO“0020”への処理要求があることを認識し、TUCWNO“000A”に従ってUCWをアクセスしてPM“80”対応のCHNO“20”を起動することにより、LPAR6−1が発行したI/O命令をDEVNO“0020”の入出力装置に実行させる。IOG1IOPも、前述と同様に、内部情報のSUCWQに従いUCWQをアクセスし、DEVNO“0020”への処理要求があることを認識し、TUCWNO“000A”に従ってUCWをアクセスしPM“80”対応のCHNO“20”を起動することにより、LPAR6−2が発行したI/O命令をDEVNO“0020”の入出力装置に実行させる。
【0061】
DEVNO“0020”の入出力装置がLPAR6−1が発行したI/O命令の実行を終了すると、CHNO“20”は、IOG0IOPに対してDEVNO“0020”の入出力装置による入出力命令の実行終了を報告し、IOG0IOPは、UCWのLPARNOに従いHSAIOA上のLPAR6−1(図4(c)参照)対応のIQBにNUMIQB“1”、TUCWNO“000A”、BUCWNO“000A”を設定する。また、DEVNO“0020”の入出力装置がLPAR6−2が発行したI/O命令の実行を終了すると、CHNO“20”は、IOG1IOPに対してDEVNO“0020”の入出力装置による入出力命令の実行終了を報告し、IOG1IOPは、UCWのLPARNOに従いHSAIOA上のLPAR6−2(図4(c)参照)対応のIQBにNUMIQB“1”、TUCWNO“000A”、BUCWNO“000A”を設定する。
【0062】
LPAR6−1のI/O命令を実行するIPは、IOG“0の“LPAR6−1対応のIQB内NUMIQBが“1”であることにより、TUCWNO“000A”に従ってUCWをアクセスし、UCWのLPARNOが“01”であることにより、LPAR6−1に対してDEVNO“0020”の入出力装置による入出力命令の実行終了を報告する。また、LPAR6−2のI/O命令を実行するIPは、IOG“1”のLPAR6−2対応のIQB内NUMIQBが“1”であることにより、TUCWNO“000A”に従ってUCWをアクセスし、UCWのLPARNOが“02”であることにより、LPAR6−2に対してDEVNO“0020”の入出力装置による入出力命令の実行終了を報告する。
【0063】
前述のI/O命令がLPAR6−1及びLPAR6−2でともに直接実行不可である場合、ホスト機構2は、このI/O命令をインターセプトし、ホスト機構2自身がこのI/O命令を発行する。ホスト機構2は、LPAR6−1がIOG“0”に属するため、LPAR6−1のI/O命令を実行するIPのGR1に“0001000A”を指定する。また、ホスト機構2は、LPAR6−2がIOG“1”に属するため、LPAR6−2のI/O命令を実行するIPのGR1に“0002000A”を指定する。
【0064】
LPAR6−1のI/O命令を実行するIPは、GR1が“0001000A”であることにより、IOG“0”のUCWのLPARNOに“00”(ホストI/O命令実行中を示す)を設定(図4(b)参照)し、さらに、UCWQにNUMUCWQ“1”、TUCWNO“000A”、BUCWNO“000A”を設定してIOG0IOPを起動する。同様に、LPAR6−2のI/O命令を実行するIPは、GR1が“0002000A”であることにより、IOG“1”のUCWのLPARNOに“00”(ホストI/O命令実行中を示す)を設定(図4(b)参照)し、さらに、UCWQにNUMUCWQ“1”、TUCWNO“000A”、BUCWNO“000A”を設定してIOG1IOPを起動する。
【0065】
IOG0IOPは、内部情報のSUCWQに従ってUCWQをアクセスし、DEVNO“0020”の入出力装置に対する処理要求があることを認識する。そして、IOG0IOPは、TUCWNO“000A”に従ってUCWをアクセスしてPM“80”対応のCHNO“20”を起動することにより、IOG“0”に対してホストが発行したI/O命令をDEVNO“0020”の入出力装置に実行させる。IOG1IOPも、前述と同様に、内部情報のSUCWQに従ってUCWQをアクセスし、DEVNO“0020”の入出力装置に対する処理要求があることを認識する。そして、IOG1IOPは、TUCWNO“000A”に従ってUCWをアクセスしてPM“80”対応のCHNO“20”を起動することにより、IOG“1”に対してホストが発行したI/O命令をDEVNO“0020”の入出力装置に実行させる。
【0066】
IOG“0”のDEVNO“0020”の入出力装置がI/O命令の実行を終了すると、CHNO“20”は、IOG0IOPに対しDEVNO“0020”の入出力装置による入出力命令の実行終了を報告し、IOG0IOPは、UCWのLPARNOに従いHSAIOA上のホスト(図4(d)参照)対応のIQBにNUMIQB“1”、TUCWNO“000A”、BUCWNO“000A”を設定する。また、IOG“1”のDEVNO“0020”の入出力装置がI/O命令の実行を終了すると、CHNO“20”は、IOG1IOPに対しDEVNO“0020”の入出力装置による入出力命令の実行終了を報告し、IOG1IOPは、UCWのLPARNOに従いHSAIOA上のホスト(図4(d)参照)対応のIQBにNUMIQB“1”、TUCWNO“000A”、BUCWNO“000A”を設定する。
【0067】
LPAR6−1のI/O命令を実行するIPは、IOG“0”のホスト対応のIQB内のNUMIQBが“1”であることにより、TUCWNO“000A”に従ってUCWをアクセスし、UCWのLPARNOが“00”であることにより、ホスト機構2に対してIOG“0”のDEVNO“0020”の入出力装置によるI/O命令の実行終了を報告する。また、LPAR6−2のI/O命令を実行するIPは、IOG“1”のホスト対応のIQB内のNUMIQBが“1”であることにより、TUCWNO“000A”に従ってUCWをアクセスし、UCWのLPARNOが“00”であることにより、ホスト機構2に対してIOG“1”のDEVNO“0020”の入出力装置によるI/O命令の実行終了を報告する。
【0068】
前述したように、本発明の一実施形態によれば、複数のSCDSを使用して入出力に係る資源の構成定義を行っているので、複数のLPARから同一CHNOに接続される同一のDEVNOを持つI/O(これらの同一CHNOのチャネルパス及び同一DEVNOのI/Oは、それぞれ物理的には異なるものである)に対してI/O命令が発行された場合、たとえ、それらのI/O命令がゲスト/ホストから発行されたものであっても、各IOGのLPAR毎に独立してI/O命令の実行を行うことができる。
【0069】
すなわち、従来技術の場合、入出力に係る資源は、システム全体からみて1つのSCDSににより構成定義可能な範囲に制限されていたものが、本発明の一実施形態の場合、入出力に係る資源を複数のSCDSににより構成定義可能な範囲にまで拡張することが可能となり、これにより、よって、各LPAR毎の入出力に係る資源も拡張することが可能である。
【0070】
以上、本発明の実施形態に基づいて具体的に説明したが、本発明は、前述の実施形態に限られるものではなく、その要旨を逸脱しない範囲において変更可能である。
【0071】
【発明の効果】
以上説明したように本発明によれば、複数のIOPと複数のSCDSとの対応付けと、この対応付けの制御情報(IOPINFO)の生成とをSVPが行い、複数のLPARと複数のSCDSとを対応付ける制御情報(LPARINFO)の生成をホスト機構が行い、SVP、IP及びホスト機構が、前記IOPINFO、LPARINFO及び複数のSCDSを、各SCDS単位(格納された情報をHSAIOAという)に主記憶装置上のハードウェア専用領域に格納し、ホスト機構が入出力命令発行時に、前記複数のHSAIOAの中から入出力動作に使用する1つを対応付ける制御情報(SID)を指示し、IPが各論理計算機あるいはホスト機構が発行する入出力命令の実行時に、前記LPARINFO及びSIDを参照して、前記複数のHSAIOAの中から入出力動作に使用する1つを選択、使用し、IOPが入出力動作の実行時に、前記IOPINFOを参照して、前記複数のHSAIOAの中から入出力動作に使用する1つを選択、使用することができる。
【0072】
本発明によれば、前述により、ユーザから見えるアーキテクチャの変更を行うことなく、入出力に関わる資源、特にチャネルパス数の制限をなくすことが可能となり、システムの入出力構成を拡張することができる。
【図面の簡単な説明】
【図1】従来技術による、また、本発明が適用される仮想計算機システムの構成を示すブロック図である。
【図2】SCDSとIOPとを対応付けるSVPフレーム画面を示す図である。
【図3】本発明の一実施形態においてHSA共通領域(HSACOA)と各IOグループ単位に設けられたHSAIOG固有領域(HSAIOA)とのMS内への格納形式を示す図である。
【図4】図3の詳細形式を示す図である。
【図5】IOPが持っている内部情報を示す図である。
【図6】IPの汎用レジスタの内容を示す図である。
【図7】従来技術による入出力構成情報(SCDS)選択フレーム画面を示す図である。
【図8】従来技術によるHSAIOAの格納形式を示す図である。
【図9】図8の詳細を示す図である。
【図10】入出力処理装置(IOP)が持っている内部情報を示す図である。
【図11】命令処理装置(IP)の汎用レジスタの内容を示す図である。
【符号の説明】
1−1〜1−2 オペレーティングシステム(OS)
2 ハードウェア機構
3−1〜3−2 命令処理装置(IP)
4 主記憶装置(MS)
5−1〜5−4 入出力処理装置(IOP)
6−1〜6−2 論理計算機(LPAR)
7 サービスプロセッサ(SVP)
8 ディスクファイル装置(HD)
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a virtual computer system in which physical resources of the entire system are divided into a plurality of units and a plurality of logical computers operate, and in particular, an input / output configuration that enables expansion of resources related to input / output is enabled. It relates to a virtual computer system.
[0002]
[Prior art]
In recent years, with the increase in the scale of computer systems and improvement in system performance, virtual computer systems that can supply various services to users by dividing one physical computer system into a plurality of logical computers and using them have been developed. It is becoming popular. In particular, a logical computer (LPAR Logical PARtion) that operates a plurality of operating systems independently in a divided computer system environment called a plurality of partitions has become popular.
[0003]
The hardware mechanism for implementing the LPAR divides the resources of one physical computer system into LPARs and manages them. Each LPAR provides the user with an independent operating environment. Each LPAR monopolizes or shares some of the resources of the physical computer system. For example, each LPAR exclusively occupies the main storage device, and uses the I / O device and the channel path connecting the central processing unit and the I / O device exclusively or shares it with other LPARs. Connections and dependencies between these LPARs and physical resources are provided to the system in a predetermined manner. The dependency between each LPAR and the input / output device is given to the system as input / output configuration control information (SCDS).
[0004]
The above-mentioned SCDS is created using a dedicated program (SCCP), and is stored in the SCDS storage area of the service processor (SVP). The user creates a plurality of SCDSs in accordance with the usage form, and selects one of them using the SVP SCDS selection frame when the system is powered on. The contents of the selected SCDS are developed and stored in a hardware system area (HSA) in the main storage device (MS) in the process of power-on reset in a format described later. This area of HSA is called HSAIOA. The HSAIOA includes information such as sub-channels and channel path connections required for executing an input / output instruction, and is referred to and updated by the instruction processing unit and the input / output processing unit that constitute the central processing unit.
[0005]
The input / output processing is executed by a channel subsystem, and the channel subsystem includes an input / output processing device, a channel device, a channel path, and an HSAIOA. The channel subsystem performs I / O operations based on the defined SCDS. This means that the channel subsystem is associated with one SCDS at power-on.
[0006]
In the LPAR mode, the execution of the input / output processing is performed in two operation states. That is, the first state is a state in which a host program that controls a hardware mechanism that is a host realizing the LPAR is operating, and the second state is a state in which a guest program assigned to the LPAR is operating. is there. The hardware mechanism activates one guest on the LPAR according to an SIE (Start Interpretive Execution) instruction. A guest typically operates with the same instruction specifications as the basic mode, which operates on one operating system (OS).
[0007]
As mentioned above, guests execute instructions directly under the OS environment provided by the hardware mechanism that implements LPAR, but certain instructions cannot be executed directly because they affect the entire system. There are cases. In such a case, control is transferred from the guest to the host, and the host simulates the guest instruction. In a host environment, the architecture of the host and the guest need not be exactly the same. In general, the same instructions operate on the same specifications in the guest and the host, because they are invisible to the user.
[0008]
The architecture of a computer system defines the format of an instruction. Conversely, the once determined instruction format is a constraint on the architecture of the system. For example, a 31-bit address limits the virtual space to 2 GB, and an 8-bit channel identifier (CHPID) that specifies a channel path limits the number of channel paths to 256 or less. The limitation on the number of channel paths is not limited to each LPAR environment, but is a limitation of the entire system.
[0009]
Hereinafter, the prior art as described above will be described with reference to the drawings.
[0010]
FIG. 1 is a block diagram showing the configuration of a virtual computer system according to the prior art and to which the present invention is applied, FIG. 7 is a diagram showing a SCDS selection frame screen according to the prior art, and FIG. 8 is a diagram showing the storage format of the HSAIOA according to the prior art. 9 is a diagram showing details of FIG. 8, FIG. 10 is a diagram showing internal information held by the input / output processing device (IOP), and FIG. 11 is a diagram showing contents of general-purpose registers of the instruction processing device (IP). FIG. In FIG. 1, 1-1 to 1-2 are OSs, 2 is a hardware mechanism as a host for operating a plurality of OSs independently, 3-1 to 3-2 are IPs, 4 is MS, 5-1 to 5-1. 5-4 is an IOP, 6-1 to 6-2 are LPARs, 7 is an SVP, and 8 is a disk file device (HD).
[0011]
The virtual computer system shown in FIG. 1 divides hardware resources of a physically single computer system into a plurality of logical partitions, and operates a plurality of OS1-1 to OS1-2 independently. Hardware mechanism 2, IP3-1 to 3-2 for executing instructions such as input / output instructions (I / O instructions) issued by the OS, MS4 for storing programs and processing data, and input / output according to I / O instructions. The hardware resources of the IOPs 5-1 to 5-4 that perform the operation are divided into a plurality of logical partitions by the hardware mechanism 2, and the LPARs 6-1 to 6-2 in which a plurality of OSs operate independently and the SCDS are selected. And an HD 8 for storing the SCDS selected by the SVP 7. The SCDS is loaded from the HD 8 into the input / output configuration control information area (HSAIOA) of the HSA of the MS 4 by hardware when the system is powered on or when the system is initialized.
[0012]
Next, an operation of executing an I / O instruction according to the related art in the virtual machine system shown in FIG. 1 will be described. Which SCDS to use at system startup is selected by the SVP frame. That is, the SCDS selection frame screen of the SVP 7 is as shown in FIGS. 7A and 7B, but is shown as 20-1 in the SCDS selection frame screen of the example shown in FIG. 7A. An area for inputting the SCDS number is set, and the SCDS can be selected by inputting the SCDS number in this area 20-1, and the SCDS selection frame screen of the example shown in FIG. , 30-1 to 30-i are set, and a plurality of SCDS numbers can be selected by inputting up to i SCDS numbers.
[0013]
FIG. 8 shows the storage format of HSAIOA according to the prior art, and FIG. 9 shows details of each table stored in HSIOA. HSAIOA is composed of five tables, DIRECTORY, UCWQ, IQB, PCW, and UCW. You. In the table DIRECTORY, the head MS addresses of the tables UCWQ, IQB, PCW, and UCW stored in the HSA are set as SUCWQ, SIQB, SPCW, and SUCW, as shown in FIG.
[0014]
The tables UCWQ and IQB are areas for exchanging information in activation of input / output operations and interrupt processing between the IPs 3-1 to 3-2 and the IOPs 5-1 to 5-4. The table PCW is provided corresponding to each CH configured by the SCDS corresponding to the corresponding IO group, and includes information V indicating the validity of the corresponding PCW and a unique CH number within the SCDS corresponding to the corresponding IO group. CHNO. The table UCW is provided corresponding to each IO device configured and defined by the SCDS corresponding to the corresponding IO group, and information V indicating the validity of the corresponding UCW and an IO unique to the SCDS corresponding to the corresponding IO group. The device number DEVNO, the unique IO device number UCWNO in the HSAIOA corresponding to the IO group assigned when the hardware stores the IO device information in the MS 4, and the CH mask PM indicating the CH that can access the IO device bit by bit And a CH number CHNO indicating a CH that can access the IO device, and an LPAR number LPARNO indicating from which LPAR the IO device is executing an input / output operation.
[0015]
As shown in FIG. 10, each of the IOPs 5-1 to 5-4 also has an HSAIOA DIRECTORY, and this information is transmitted from the SVP 7 to the IOP by the head HSAIOA address at the time of system initialization. Accordingly, each of the IOPs 5-1 to 5-4 accesses the HSAIOA by itself and sets DIRECTORY therein.
[0016]
Next, an operation of executing an I / O instruction according to the related art will be described with reference to FIGS. 1 and 7 to 11.
[0017]
First, using the SVP frame screen shown in FIG. 7A, SCDSNO to be used for the initial setting of the system is selected. In this case, "0" is input in the input field of SCDSNO, and SCDS "0" is selected. The selected SCDS is stored in the HD 8 by the SVP 7. Here, it is assumed that LPARNO "1", CHNO "20", and DEVNO "0020" are defined in the SCDS "0". The SCDS is stored in the HSAIOA and the IOP in the format shown in FIGS. 8, 9, and 10 when the hardware initialization is performed.
[0018]
As shown in FIG. 8, the head MS address of the HSAIOA is assigned as "10000", and details of these areas are stored in the order of DIRECTORY, UCWQ, IQB, PCW, and UCW from the MS address "10000" as shown in FIG. You. At the time of initial setting, since no I / O instruction is executed, UCWQ and IQB are set to all 0s. In the PCW, since CHNO "20" is defined in SCDS "0", V and CHNO "20" are set in the area of CHNO "20".
[0019]
In the UCW, DEVNO "0020" is defined in the SCDS "0". If the DEVNO "0020" is stored in the UCW tenth among the input / output devices of the SCDS "0", the UCWNO "000A" V, DEVNO “0020”, and UCWNO “000A” are set in the area of. Assuming that DEVNO “0020” is connected to CH of CHNO “20”, PM “80” and CHNO “20” are set in the area of UCWNO “000A”. The internal information of each of the IOPs 5-1 to 5-4 is generated by the SVP 7 transmitting the head HSAIOA address to each IOP, and each IOP setting the DIRECTORY of the HSAIOA in its own IOP as shown in FIG.
[0020]
In the LPAR mode, there are a case where the guest program executes input / output processing and a case where the host program executes input / output processing. The IP 3-1 to 3-2 and the IOPs 5-1 to 5-4 are connected to the guest / program. Execute input / output processing without considering the host. The I / O device to which the I / O instruction is to be executed can be recognized by the IP by setting UCWNO in the general-purpose register 1 (GR1) of the IP as shown in FIG. it can.
[0021]
In the related art, input / output operations are controlled between a program and hardware based on the control information described above. Hereinafter, the operation will be described assuming that an I / O instruction has been issued from LPAR 6-1 to DEVNO “0020”.
[0022]
The execution of the I / O instruction in the LPAR mode is performed by the hardware mechanism 2 activating the LPAR 6-1 by the SIE instruction and the IP 3-1 executing the I / O instruction of the LPAR 6-1. The IP 3-1 sets “0001000A” in the GR1 according to the instruction of the LPAR 6-1 and accesses the UCW corresponding to the UCWNO “000A” in accordance with the MS address indicated in the SUCW in the DIRECTORY on the HSAIOA. Is checked whether it can be directly executed by the LPAR 6-1. If it can be executed, the I / O instruction is continued.
[0023]
The IP 3-1 sets LPARNO of the UCW obtained by the above access to "01", further sets "1" to NUMUCWQ of UCWQ, sets "000A" to TUCWNO, and sets "000A" to BUCWNO "000A". Start 1 or 5-2. The activated IOP accesses the UCWQ according to the SUCWQ of the internal information and recognizes that there is a processing request to DEVNO “0020”. Then, according to TUCWNO “000A”, the UCW is accessed to activate the CHNO “20” CH corresponding to PM “80”. As a result, the I / O instruction issued by the LPAR 6-1 is executed by the input / output device of DEVNO “0020”.
[0024]
When the input / output device of DEVNO “0020” completes the execution of the input / output instruction, the CH of CHNO “20” reports the completion of the execution of the input / output instruction of DEVNO “0020” to the IOP, and the IOP follows the LPARNO of UCW. The NUMIQB of the IQB corresponding to the LPAR 6-1 (see FIG. 9C) on the HSAIOA is set to “1”, the TUCWNO is set to “000A”, and the BUCWNO is set to “000A”. The IP 3-1 accesses the UCW according to “000A” of the TUCWNO when the NUMIQB in the IQB corresponding to the LPAR 6-1 is “1”, and the LPARNO of the UCW is “01”. On the other hand, the end of execution of the input / output instruction by the input / output device of DEVNO “0020” is reported.
[0025]
In the above description, when the issued I / O instruction cannot be directly executed by the LPAR 6-1, the host intercepts the I / O instruction, and the host issues the I / O instruction. The IP sets “00” in LPARNO of UCW, sets “1” in NUMUCWQ of UCWQ, sets “000A” in TUCWNO, and sets “000A” in BUCWNO to start the IOP. The IOP accesses the UCWQ according to the SUCWQ of the internal information and recognizes that there is a processing request to the input / output device of DEVNO “0020”.
[0026]
Then, the IOP accesses the UCW and activates the CH of CHNO “20” corresponding to PM “80” in accordance with “000A” of TUCWNO, so that the I / O instruction issued by the host is input / output to / from DEVNO “0020”. Let the device run. When the input / output device of DEVNO “0020” completes the execution of the input / output instruction, the CH of CHNO “20” reports the completion of the execution of the input / output instruction of DEVNO “0020” to the IOP, and the IOP follows the LPARNO of UCW. "1" is set to NUMIQB, "000A" is set to TUCWNO, and "000A" is set to BUCWNO of the IQB corresponding to the above host (see FIG. 9D).
[0027]
The IP accesses the UCW according to “000A” of the TUCWNO when the NUMIQB in the IQB corresponding to the host is “1”, and inputs the DEVNO “0020” to the host when the LPARNO of the UCW is “00”. Reports that the output device has finished executing an I / O instruction.
[0028]
[Problems to be solved by the invention]
In the above-described prior art, each guest operating in each LPAR behaves as if it occupies one computer system. However, one SCDS defines the I / O configuration of the entire system. This SCDS has a problem that the number of channel paths is limited because it is associated with one channel subsystem.
[0029]
In the case of the prior art, the CHPID is 8 bits, and the size is determined by the architectural restrictions of the computer system. For this reason, the above-described prior art has a problem that the number of channel paths is limited to 256 at the maximum from the viewpoint of one LPAR or the entire system.
[0030]
In recent years, as the performance of a single processor has been greatly improved and the use of multiprocessors has been increased in the instruction processing apparatus, the above-described restriction on input / output processing has caused an imbalance between the load of the instruction processing apparatus and the load of the input / output apparatus as a whole system. ing.
[0031]
SUMMARY OF THE INVENTION It is an object of the present invention to solve the problems of the prior art and eliminate the limitation on the resources related to input / output in an LPAR environment, particularly the number of channel paths, without changing the architecture of the computer system seen from the user. It is to provide a virtual computer system.
[0032]
[Means for Solving the Problems]
According to the present invention, the object is: One or more instruction processing devices, a main storage device, a plurality of input / output processing devices, a service processor, a plurality of input / output devices, and a hardware mechanism for controlling a plurality of logical computers are provided. In a virtual machine system in which an input / output operation is performed based on output configuration control information, the service processor associates each of the plurality of input / output processing devices with one of the plurality of input / output configuration control information. And means for generating first control information of the association, wherein the hardware mechanism associates each of the plurality of logical computers with one of the plurality of input / output configuration control information. Means for generating control information for the plurality of input / output structures in a hardware-dedicated area on the main storage device in a format that can be referred to by the hardware mechanism. An input / output control information storage area for storing control information in each input / output configuration control information unit; and an area for storing the first and second control information, wherein the service processor, the instruction processing device, and the hardware mechanism are provided. Comprises means for storing the input / output control information and the first and second control information in a hardware-dedicated area on a main storage device, wherein the instruction processing device issues an input / output instruction of a hardware mechanism. Means for designating third control information for associating one to be used for an input / output operation from among the plurality of input / output control information, wherein the instruction processing device is configured to execute an input / output command issued by each logical computer or a hardware mechanism. Means for referring to the second and third control information when executing an instruction and selecting and using one of a plurality of input / output control information to be used for an input / output operation; Refers to the first control information when the input operation performed with the means for selecting use one to be used for input and output operations from a plurality of said output control information This is achieved by:
[0033]
Specifically, the present invention provides a means for associating each input / output processing device with one of a plurality of SCDSs, and a means for generating control information (IOPINFO) for this association in the SVP. An area for storing control information (LPARINFO) for associating an LPAR with one of a plurality of SCDSs in a hardware mechanism, and storing a plurality of SCDSs in units of each SCDS in a format that can be referred to by hardware (this area) The HSAIOA, the IOPINFO, and the LPARINFO are stored in a hardware-dedicated area on the main storage device, and the HSAIOA, the IOPINFO, and the LPARINFO are stored on the main storage device. The means for storing in the hardware dedicated area of SVP, IP and hardware Means for instructing control information (SID) for associating one of the plurality of HSAIOAs to be used for input / output operations when the hardware mechanism issues an input / output instruction, and each LPAR or hardware mechanism The IP includes means for referring to the LPARINFO and SID at the time of execution of the input / output instruction issued by the IP and selecting and using one of the plurality of HSAIOAs to be used for the input / output operation, and executing the IOPINFO at the time of execution of the input / output operation. The IOP is provided with means for referring to and selecting and using one of the plurality of HSAIOAs to be used for the input / output operation.
[0034]
In the present invention, the SVP associates each input / output processing device with a plurality of SCDSs and generates control information (IOPINFO) for the association, and controls information (LPARINFO) that associates each LPAR with the plurality of SCDSs. ) Is generated by the host, and at the time of system startup, the IOPINFO, LPARINFO, and a plurality of SCDSs are stored in a hardware-dedicated area on the main storage device for each SCDS in the SVP, IP, and hardware mechanism. When the I / O instruction is issued, the mechanism indicates control information (SID) for associating one used for the I / O operation from the plurality of HSAIOAs, and the IP executes the I / O instruction issued by each LPAR or hardware mechanism. Sometimes, referring to the LPARINFO and the SID, a plurality of the HSAIOA One used for input / output operation is selected and used from among the IOPs, and the IOP refers to the IOPINFO at the time of execution of the input / output operation, and selects and uses one used for the input / output operation from among the plurality of HSAIOAs. .
[0035]
As described above, according to the present invention, it is possible to eliminate the limitation on resources related to input / output, in particular, the number of channel paths without changing the architecture seen from the user.
[0036]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, an embodiment of a virtual machine system according to the present invention will be described in detail with reference to the drawings.
[0037]
FIG. 2 is a diagram showing an SVP frame screen for associating SCDS and IOP, and FIG. 3 is an MS of an HSA common area (HSACOA) and an HSAIOG unique area (HSAIOA) provided for each IO group in one embodiment of the present invention. FIG. 4 is a diagram showing a detailed format of FIG. 3, FIG. 5 is a diagram showing internal information held by the IOP, and FIG. 6 is a diagram showing contents of a general-purpose register of IP.
[0038]
The virtual computer system to which the present invention is applied has the same configuration as that already described in the section of the prior art with reference to FIG. The SCDS selection frame screen is the same as that of the prior art shown in FIG.
[0039]
Next, the operation of executing an I / O instruction when the input / output configuration of the virtual machine system of FIG. 1 is expanded according to the present invention will be described.
[0040]
Which SCDS is used at system startup is determined by inputting the SCDS number into the SCDS number input area 30-1 to 30-i in the SVP frame shown in FIG. It is determined by selecting a plurality of SCDSs, thereby performing an input / output operation.
[0041]
According to an embodiment of the present invention, a plurality of selected SCDSs are associated with a plurality of IOPs by using an SVP frame, and hardware resources in input / output operations can be allocated to each SCDS unit. That is, in the SVP frame screen shown in FIG. 2 for associating the SCDS with the IOP, an SCDS number is input into an area shown as 41 in FIG. 2A and an area shown as 51 in FIG. )) And an area indicated as 52-1 to 52-8 in FIG. 2 (b) by inputting an IOP number, the SCDS can be associated with the IOP. In this way, by selecting a plurality of SCDSs and associating each SCDS with an IOP, an input device group (IOG) can be formed for each SCDS.
[0042]
In one embodiment of the present invention, when the hardware system is initialized, the plurality of SCDS information and the correspondence information between the SCDS and the IOP are stored in the HSACOA, which is the HSA common area of the MS, and in the HSAIOG provided in each IOG unit. It is stored in the area HSAIOA.
[0043]
HSACOA is composed of two tables, LPARINFO and IOPINFO, as shown in FIG. The LPARINFO is an area for storing LPAR information configured and defined by each SCDS, and is information indicating to which IOG each LPAR issues an I / O instruction. Also, as described in FIG. 2, the IOPINFO is information selected by the SVP frame, and is information indicating from which IOG each IOP executes an I / O instruction.
[0044]
Information specific to each SCDS is set in the HSAIOA of each IOG in the same format as that of the HSAIOA in the conventional technology. Also, as shown in FIG. 5, the IOP also has the IOG DIRECTORY indicated in the above-mentioned IOPINFO, and this information is transmitted from the SVP 7 at the time of initializing the system to the IOP by transmitting the head HSAIOA address of the IOG to the IOP. As a result, the IOP itself accesses the HSAIOA of the corresponding IOG and sets DIRECTORY.
[0045]
Hereinafter, with reference to FIGS. 1 to 4, an operation of executing an I / O instruction of a virtual machine system in which an input / output configuration has been extended according to an embodiment of the present invention will be described.
[0046]
First, using the SVP frame shown in FIG. 7B, the SCDSNO to be used for the initial setting of the system is selected. In this example, "0" and "1" are input in the SCDSNO input field, so "0" and "1" are selected as SCDS. Further, the correspondence between the selected SCDS and IOP is set using the SVP frame. As for SCDS "0", since "0" and "1" are input in the input field of IOPNO as illustrated in FIG. 2A, SCDS "0" and IOP "0" and " 1 ". As illustrated in FIG. 2B, for the SCDS “1”, since “2” and “3” are input in the input field of the IOPNO, the SCDS “1” and the IOP “2” are input. And "3" are associated with each other. The selected information is stored in the HD 8 by the SVP 7. Here, LPARNO "1", CHNO "20" and DEVNO "0020" are structurally defined for SCDS "0", and LPARNO "2", CHNO "20" and DEVNO "0020" for SCDS "1". Is defined.
[0047]
A point to be noted in one embodiment of the present invention is that the channel path of the same CHNO and the I / O device of the same DEVNO defined in different SCDSs are physically different from each other as described above. is there.
[0048]
The SCDS and the correspondence information between the SCDS and the IOP are stored in the HSACOA, HSAIOA, and IOP in a format as shown in FIGS. 3, 5, and 4 when hardware initialization is performed. As shown in FIG. 3, the head MS address of the HSACOA is “01000”, the head MS address of the HSAIOA of IOG “0” is “10000”, and the head MS address of the HSAIOA area of the IOG “1” is “20000”. The details of each of these areas are set as shown in FIG. Hereinafter, these details will be described with reference to FIG.
[0049]
In the LPARINFO of HSACOA, since LPARNO "1" is defined in SCDS "0" and LPARNO "2" is defined in SCDS "1", IOGNO "00" and LPARNO "2" are in the area of LPARNO "1". Is set to IOGNO "01". Since IOPINFO is set as shown in FIGS. 2A and 2B by the SVP frame, IOGNO “00”, IOPNO “2”, and “3” are set in the areas of IOPNO “0” and “1”. Is set to IOGNO "01".
[0050]
As described with reference to FIG. 3, the HSAIOA of IOG “0” is stored in the order of DIRECTORY, UCWQ, IQB, PCW, and UCW from the MS address “10000”. At the time of initial setting, since no input / output instruction is executed, UCWQ and IQB are set to all 0s. In the PCW, since CHNO "20" is defined in SCDS "0", V and CHNO "20" are set in the area of CHNO "20". In the UCW, DEVNO "0020" is defined in SCDS "0", and if DEVNO "0020" is stored in the UCW as the tenth DEV among SCDS "0" DEVs, the UCWNO "000A" area V, DEVNO “0020” and UCWNO “000A” are set.
[0051]
Assuming that the input / output device of the DEVNO “0020” of the IOG “0” is connected to the CHNO “20” of the IOG “0”, the PM “80” and the CHNO “20” are located in the area of the UCWNO “000A”. Is set.
[0052]
The HSAIOA of IOG “1” is stored in the order of DIRECTORY, UCWQ, IQB, PCW, and UCW from the MS address “20000”. As for IOG “1”, similarly to IOG “0”, CHNO “20” and DEVNO “0020” are configured and defined, UCW setting conditions are the same as SCDS “0”, and IOG “1”. If the input / output device of the DEVNO “0020” is connected to the CHNO “20” of the IOG “1”, the UCW is the same as the PCW and DEVNO “0020” of the CHNO “20” in the region of the IOG “0”. Is set.
[0053]
As the internal information of the IOP, since the IOP “0” and “1” are set to the IOG “0” by the IOPINFO, the DIRECTORY of the HSAIOA of the IOG “0” is set, and the IOP “2” and “3” are set. Since IOGINFO is set to IOG "1", the HSAIOA DIRECTORY of IOG "1" is set.
[0054]
In the LPAR mode, as described in the operation of executing the I / O instruction of the related art, there are a case where the guest program executes the I / O instruction and a case where the host program executes the I / O instruction. In the embodiment, the IP executes the processing while determining which IOG should execute these I / O instructions. When the guest directly executes the I / O instruction, the IP obtains an IOG number corresponding to the LPAR number described in the SD of the SIE instruction from the LPARINFO of the HSACOA, and uses the I / O using the HSAIOA corresponding to the IOG. Execute the instruction. On the other hand, when the host executes the I / O instruction, the host program specifies the IOG information in the GR1 of the IP as shown in FIG. 6, and the IP uses the HSAIOA corresponding to the IOG based on this information. And execute the I / O instruction.
[0055]
The virtual machine system according to the embodiment of the present invention can extend the input / output configuration as described above, and can execute I / O instructions between a program and hardware.
[0056]
Hereinafter, the operation of the embodiment of the present invention will be described assuming that the I / O instruction has been issued from the LPAR 6-1 and the LPAR 6-2 to the input device of DEVNO "0020". The I / O command in the LPAR mode according to the embodiment of the present invention is started when the host mechanism 22 activates the LPAR 6-1 and the LPAR 6-2 by the SIE command.
[0057]
The IP executing the I / O instruction of the LPAR 6-1 sets “0001000A” in the GR1 according to the instruction of the LPAR 6-1 and the LPARINFO on the HSACOA corresponding to the LPAR 6-1 indicated by the SD of the SIE instruction sets the IOG “0”. , The UCW corresponding to the UCWNO “000A” on the HSAIOA of IOG “0” is accessed according to the MS address indicated in the SUCW in the DIRECTORY on the HSAIOA of IOG “0”, and this I / O It is checked whether the instruction is directly executable by the LPAR 6-1. If the instruction is executable, the processing of the I / O instruction is continued.
[0058]
The IP executing the I / O instruction of the LPAR6-2 sets “0001000A” in GR1 according to the instruction of the LPAR6-2, and the LPARINFO on the HSACOA corresponding to the LPAR6-2 indicated in the SD of the SIE instruction is IOG “1”. , The UCW corresponding to UCWNO “000A” on the HSAIOA of IOG “1” is accessed according to the MS address indicated in the SUCW in the DIRECTORY on the HSAIOA of IOG “1”, and this I / O It is checked whether or not the instruction can be directly executed by the LPAR 6-2. If the instruction can be executed, the processing of the I / O instruction is continued.
[0059]
The IP executing the I / O instruction of the LPAR 6-1 sets the LPARNO of the UCW of the IOG "0" to "01" (see FIG. 4A), and further sets the UCWQ to NUMUCWQ "1" and the TUCWNO "000A. ", BUCWNO" 000A "is set, and IOPs 5-1 and 5-2 (IOG0IOP) are started. Also, the IP executing the I / O instruction of the LPAR 6-2 sets the LPARNO of the UCW of the IOG "1" to "02" (see FIG. 4A), and further sets the UCWQ to NUMUCWQ "1", TUCWNO " 000A "and BUCWNO" 000A "are set, and IOP5-35-4 (IOG1IOP) is started.
[0060]
The IOG0 IOP accesses the UCWQ according to the SUCWQ of the internal information, recognizes that there is a processing request to the DEVNO “0020”, accesses the UCW according to the TUCWNO “000A”, and activates the CHNO “20” corresponding to the PM “80”. This causes the I / O device of DEVNO "0020" to execute the I / O instruction issued by the LPAR 6-1. Similarly to the above, the IOG1 IOP accesses the UCWQ according to the SUCWQ of the internal information, recognizes that there is a processing request to the DEVNO "0020", accesses the UCW according to the TUCWNO "000A", and accesses the CHNO "corresponding to the PM" 80 ". By activating “20”, the I / O instruction issued by the LPAR 6-2 is executed by the input / output device of DEVNO “0020”.
[0061]
When the input / output device of DEVNO “0020” finishes executing the I / O instruction issued by the LPAR 6-1, the CHNO “20” terminates the execution of the input / output instruction by the input / output device of DEVNO “0020” for the IOG0IOP. The IOG0IOP sets NUMIQB “1”, TUCWNO “000A”, and BUCWNO “000A” in the IQB corresponding to the LPAR 6-1 (see FIG. 4C) on the HSAIOA according to the LPARNO of the UCW. When the input / output device of DEVNO “0020” finishes executing the I / O instruction issued by the LPAR 6-2, the CHNO “20” issues an I / O instruction of the input / output device of DEVNO “0020” to the IOG1 IOP. The end of execution is reported, and the IOG1IOP sets NUMQB “1”, TUCWNO “000A”, and BUCWNO “000A” in the IQB corresponding to LPAR6-2 (see FIG. 4C) on HSAIOA according to LPARNO of UCW.
[0062]
The IP executing the I / O instruction of the LPAR 6-1 accesses the UCW according to the TUCWNO “000A” because the NUMIQB in the IQB corresponding to the LPAR 6-1 of the IOG “0” is “1”, and the LPARNO of the UCW By being “01”, the end of execution of the input / output instruction by the input / output device of DEVNO “0020” is reported to the LPAR 6-1. Further, the IP executing the I / O instruction of the LPAR 6-2 accesses the UCW according to the TUCWNO “000A” because the NUMIQB in the IQB corresponding to the LPAR 6-2 of the IOG “1” is “1”, and Since LPARNO is "02", the end of execution of the input / output instruction by the input / output device of DEVNO "0020" is reported to LPAR6-2.
[0063]
When the above-mentioned I / O instruction cannot be directly executed by both the LPAR 6-1 and the LPAR 6-2, the host mechanism 2 intercepts the I / O instruction, and the host mechanism 2 itself issues the I / O instruction. . Since the LPAR 6-1 belongs to the IOG “0”, the host mechanism 2 specifies “0001000A” as the GR1 of the IP that executes the I / O instruction of the LPAR 6-1. Further, since the LPAR6-2 belongs to the IOG "1", the host mechanism 2 designates "0002000A" as the GR1 of the IP executing the I / O instruction of the LPAR6-2.
[0064]
The IP executing the I / O instruction of the LPAR 6-1 sets “00” (indicating that the host I / O instruction is being executed) to the LPARNO of the UCW of the IOG “0” because the GR1 is “0001000A” ( Referring to FIG. 4B), the UCWQ is set to NUMUCWQ “1”, TUCWNO “000A”, and BUCWNO “000A”, and the IOG0IOP is started. Similarly, the IP executing the I / O instruction of the LPAR 6-2 has “00” (indicating that the host I / O instruction is being executed) in the LPARNO of the UCW of the IOG “1” because the GR1 is “0002000A”. Is set (see FIG. 4B), and NUMCWQ “1”, TUCWNO “000A”, and BUCWNO “000A” are set in UCWQ, and the IOG1 IOP is started.
[0065]
The IOG0 IOP accesses the UCWQ according to the SUCWQ of the internal information and recognizes that there is a processing request for the input / output device of DEVNO “0020”. Then, the IOG0 IOP accesses the UCW according to the TUCWNO “000A” and activates the CHNO “20” corresponding to the PM “80”, thereby transmitting the I / O instruction issued by the host to the IOG “0” by the DEVNO “0020”. "Of the input / output device. Similarly to the above, the IOG1 IOP accesses the UCWQ according to the SUCWQ of the internal information and recognizes that there is a processing request for the input / output device of DEVNO “0020”. Then, the IOG1 IOP accesses the UCW according to the TUCWNO “000A” and activates the CHNO “20” corresponding to the PM “80”, thereby transmitting the I / O instruction issued by the host to the IOG “1” by the DEVNO “0020”. "Of the input / output device.
[0066]
When the input / output device of DEVNO “0020” of IOG “0” finishes executing the I / O instruction, the CHNO “20” reports the completion of the execution of the input / output instruction by the input / output device of DEVNO “0020” to IOG0IOP. Then, IOG0IOP sets NUMIQB “1”, TUCWNO “000A”, and BUCWNO “000A” in the IQB corresponding to the host (see FIG. 4D) on the HSAIOA according to the LPARNO of the UCW. When the input / output device of DEVNO “0020” of IOG “1” finishes executing the I / O command, the CHNO “20” terminates the execution of the input / output command of DEVNO “0020” for IOG1 IOP. The IOG1 IOP sets NUMIQB “1”, TUCWNO “000A”, and BUCWNO “000A” in the IQB corresponding to the host (see FIG. 4D) on the HSAIOA according to the LPARNO of the UCW.
[0067]
The IP executing the I / O instruction of the LPAR 6-1 accesses the UCW according to the TUCWNO “000A” because the NUMQB in the IQB corresponding to the host of the IOG “0” is “1”, and the LPARNO of the UCW becomes “1”. 00 ”, the host mechanism 2 is notified of the completion of the execution of the I / O instruction by the input / output device of DEVNO“ 0020 ”of IOG“ 0 ”. Also, the IP executing the I / O instruction of the LPAR 6-2 accesses the UCW according to the TUCWNO “000A” because the NUMIQB in the IQB corresponding to the host of the IOG “1” is “1”, and the LPARNO of the UCW Is "00", the completion of execution of the I / O instruction by the input / output device of DEVNO "0020" of IOG "1" is reported to the host mechanism 2.
[0068]
As described above, according to the embodiment of the present invention, since the configuration of the input / output resources is defined using a plurality of SCDSs, the same DEVNO connected to the same CHNO from a plurality of LPARs is used. When an I / O instruction is issued to an I / O having the same (the channel path of the same CHNO and the I / O of the same DEVNO are physically different), even if those I / O instructions are issued, Even if the O instruction is issued from the guest / host, the I / O instruction can be executed independently for each LPAR of each IOG.
[0069]
In other words, in the prior art, the input / output resources are limited to a range that can be defined by one SCDS when viewed from the whole system. However, in the embodiment of the present invention, the input / output resources are limited. Can be extended to a range that can be configured by a plurality of SCDSs, and therefore, the resources related to input / output for each LPAR can also be extended.
[0070]
As described above, the present invention has been specifically described based on the embodiment. However, the present invention is not limited to the above-described embodiment, and can be changed without departing from the scope of the invention.
[0071]
【The invention's effect】
As described above, according to the present invention, the SVP performs association between a plurality of IOPs and a plurality of SCDSs and generation of control information (IOPINFO) for this association, and associates the plurality of LPARs with the plurality of SCDSs. The host mechanism generates the associated control information (LPARINFO), and the SVP, IP, and host mechanism convert the IOPINFO, LPARINFO, and the plurality of SCDSs into a unit of each SCDS (the stored information is referred to as HSAIOA) in the main storage device. When the host mechanism issues an I / O command, the host mechanism indicates control information (SID) for associating one of the plurality of HSAIOAs to be used for the I / O operation. At the time of execution of the I / O instruction issued by the mechanism, referring to the LPARINFO and the SID, One of a plurality of HSAIOAs is selected and used from among a plurality of HSAIOAs, and when the IOP executes the input / output operation, the IOP refers to the IOPINFO to use one of the plurality of HSAIOAs for the input / output operation. One can be selected and used.
[0072]
According to the present invention, as described above, it is possible to eliminate the limitation on the resources related to input / output, particularly the number of channel paths, without changing the architecture seen by the user, and expand the input / output configuration of the system. .
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of a virtual computer system according to a conventional technique and to which the present invention is applied.
FIG. 2 is a diagram showing an SVP frame screen for associating an SCDS with an IOP.
FIG. 3 is a diagram showing a storage format in an MS of an HSA common area (HSACOA) and an HSAIOG unique area (HSAIOA) provided for each IO group in one embodiment of the present invention.
FIG. 4 is a diagram showing a detailed format of FIG. 3;
FIG. 5 is a diagram showing internal information possessed by an IOP.
FIG. 6 is a diagram showing the contents of a general-purpose register of an IP.
FIG. 7 is a diagram showing an input / output configuration information (SCDS) selection frame screen according to the related art.
FIG. 8 is a diagram showing a storage format of an HSAIOA according to the related art.
FIG. 9 is a diagram showing details of FIG. 8;
FIG. 10 is a diagram showing internal information possessed by an input / output processing device (IOP).
FIG. 11 is a diagram showing contents of a general-purpose register of the instruction processing device (IP).
[Explanation of symbols]
1-1-1-2 Operating System (OS)
2 Hardware mechanism
3-1 to 3-2 Instruction processing device (IP)
4 Main storage device (MS)
5-1 to 5-4 input / output processing unit (IOP)
6-1 to 6-2 Logical Computer (LPAR)
7 Service Processor (SVP)
8 Disk file device (HD)

Claims (1)

1または複数の命令処理装置と、主記憶装置と、複数の入出力処理装置と、サービスプロセッサと、複数の入出力装置と、複数の論理計算機を制御するハードウェア機構とを備え、複数の入出力構成制御情報に基づいて入出力動作が実行される仮想計算機システムにおいて、前記サービスプロセッサは、前記複数の入出力処理装置のそれぞれと前記複数の入出力構成制御情報の中の1つとを対応付ける手段、及び、この対応付けの第1の制御情報を生成する手段を備え、前記ハードウェア機構は、前記複数の論理計算機のそれぞれと前記複数の入出力構成制御情報の中の1つとを対応付ける第2の制御情報を生成する手段を備え、前記主記憶装置上のハードウェア専用領域に、前記ハードウェア機構が参照可能な形式で、前記複数の入出力構成制御情報を各入出力構成制御情報単位に格納する入出力制御情報格納領域と、前記第1及び第2の制御情報とを格納する領域とを備え、前記サービスプロセッサ、命令処理装置及びハードウェア機構は、前記入出力制御情報、前記第1及び第2の制御情報を主記憶装置上のハードウェア専用領域へ格納する手段を備え、前記命令処理装置は、ハードウェア機構の入出力命令発行時、複数の前記入出力制御情報の中から入出力動作に使用する1つを対応付ける第3の制御情報を指示する手段を備え、前記命令処理装置は、各論理計算機あるいはハードウェア機構が発行する入出力命令の実行時、前記第2及び第3の制御情報を参照し、複数の入出力制御情報の中から入出力動作に使用する1つを選択使用する手段を備え、前記入出力処理装置は、入出力動作の実行時に前記第1の制御情報を参照し、複数の前記入出力制御情報の中から入出力動作に使用する1つを選択使用する手段を備えたことを特徴とする仮想計算機システム。One or more instruction processing devices, a main storage device, a plurality of input / output processing devices, a service processor, a plurality of input / output devices, and a hardware mechanism for controlling a plurality of logical computers are provided. in a virtual computer system input and output operation based on the output configuration control information is executed, before SL service processor associates the one in the respective said plurality of input and output configuration control information of a plurality of input and output processing unit Means, and means for generating first control information of the association, wherein the hardware mechanism associates each of the plurality of logical computers with one of the plurality of input / output configuration control information. Means for generating the control information of the plurality of input / output structures in a hardware-dedicated area on the main storage device in a format that can be referred to by the hardware mechanism. An input / output control information storage area for storing control information in each input / output configuration control information unit; and an area for storing the first and second control information, wherein the service processor, the instruction processing device, and the hardware mechanism are provided. Comprises means for storing the input / output control information and the first and second control information in a hardware-dedicated area on a main storage device, wherein the instruction processing device comprises: Means for designating third control information for associating one to be used for an input / output operation from a plurality of the input / output control information, wherein the instruction processing device comprises: Means for referring to the second and third control information when executing an instruction and selecting and using one of a plurality of input / output control information to be used for an input / output operation; Means for referring to the first control information at the time of execution of an input / output operation, and selecting and using one of a plurality of the input / output control information to be used for the input / output operation. system.
JP26087696A 1996-10-01 1996-10-01 Virtual computer system Expired - Fee Related JP3587631B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26087696A JP3587631B2 (en) 1996-10-01 1996-10-01 Virtual computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26087696A JP3587631B2 (en) 1996-10-01 1996-10-01 Virtual computer system

Publications (2)

Publication Number Publication Date
JPH10105419A JPH10105419A (en) 1998-04-24
JP3587631B2 true JP3587631B2 (en) 2004-11-10

Family

ID=17353988

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26087696A Expired - Fee Related JP3587631B2 (en) 1996-10-01 1996-10-01 Virtual computer system

Country Status (1)

Country Link
JP (1) JP3587631B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002157092A (en) * 2000-11-17 2002-05-31 Hitachi Ltd Storage system, and method of transferring data between storage systems
US7023459B2 (en) * 2001-03-01 2006-04-04 International Business Machines Corporation Virtual logical partition terminal
US8185907B2 (en) 2007-08-20 2012-05-22 International Business Machines Corporation Method and system for assigning logical partitions to multiple shared processor pools

Also Published As

Publication number Publication date
JPH10105419A (en) 1998-04-24

Similar Documents

Publication Publication Date Title
JP4291964B2 (en) Virtual computer system
JP3225804B2 (en) I / O channel expansion method
US7743389B2 (en) Selecting between pass-through and emulation in a virtual machine environment
RU2412468C2 (en) Systems and methods for multilevel processing of interceptions in virtual machine environment
JP4665040B2 (en) Computer and access control method
US7558723B2 (en) Systems and methods for bimodal device virtualization of actual and idealized hardware-based devices
US8856781B2 (en) Method and apparatus for supporting assignment of devices of virtual machines
CN102591715B (en) Implementing method for optimizing network performance of virtual machine by using multiqueue technology
US10642539B2 (en) Read/write path determining method and apparatus
JPH04348434A (en) Virtual computer system
WO1997010549A1 (en) Electronic computer system
US8738890B2 (en) Coupled symbiotic operating system
WO2020063432A1 (en) Method and apparatus for upgrading virtualized emulator
JP3587631B2 (en) Virtual computer system
CN115413336A (en) Hypervisor warm reboot
JP4743529B2 (en) OS switching system, virtual machine system, OS switching method, and OS switching program
JPH06332803A (en) Tlb control method in virtual computer system
JP5754294B2 (en) Information processing apparatus, information processing method, and information processing program
JP2001175486A (en) Computer system
JP6035993B2 (en) Information processing apparatus, apparatus management method, and apparatus management program
JP2010128943A (en) Information processing apparatus and method of controlling the same
US20230161650A1 (en) Method and apparatus for inter-process communication, and computer storage medium
JPH06110717A (en) Complex computer system
JP4292220B2 (en) Virtual computer system
JP2556018B2 (en) Channel path group management method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20031226

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040120

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040318

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040803

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040810

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313115

R371 Transfer withdrawn

Free format text: JAPANESE INTERMEDIATE CODE: R371

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313115

R371 Transfer withdrawn

Free format text: JAPANESE INTERMEDIATE CODE: R371

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313115

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070820

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080820

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080820

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090820

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100820

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100820

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110820

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120820

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130820

Year of fee payment: 9

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees