JPH02105227A - System for informing even attending with input/output operation in virtual computer system - Google Patents

System for informing even attending with input/output operation in virtual computer system

Info

Publication number
JPH02105227A
JPH02105227A JP25790288A JP25790288A JPH02105227A JP H02105227 A JPH02105227 A JP H02105227A JP 25790288 A JP25790288 A JP 25790288A JP 25790288 A JP25790288 A JP 25790288A JP H02105227 A JPH02105227 A JP H02105227A
Authority
JP
Japan
Prior art keywords
input
computer
virtual
event
output
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.)
Pending
Application number
JP25790288A
Other languages
Japanese (ja)
Inventor
Tetsuyoshi Senda
千田 哲秀
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP25790288A priority Critical patent/JPH02105227A/en
Publication of JPH02105227A publication Critical patent/JPH02105227A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce an overhead at the time of informing the event of an input/output operation by a virtual computer to both the virtual computer and a real computer by providing a register in which the address of a notice destination in the real computer and that of the notice destination in the virtual computer, etc., are stored. CONSTITUTION:The address 41 of the notice destination in the real computer 1, the number 42 of the virtual computer 8, the address 43 of the notice destination in the computer 8, and an input/output channel number 44 on the computer 8 are stored in each entry of the register 4 in the real computer 1. Thereby, when the event attending with the input/output operation in the computer 8 is generated, a message related to a generated event is informed to the notice destination 3 in the computer 1 based on a content held at the register 4 corresponding to the unit of the input/output operation related to the generated event by firmware, etc. Also, the message in which an input/output channel number on the computer 8 is converted to the input/output channel number on a specified computer 8 is informed to the notice destination on the specified computer 8. In such a manner, it is possible to reduce the overhead at the time of informing the event according to the input/output operation in the computer 8.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は仮想計算機システムに関し、特に仮想計算機上
で実行された命令により起動される入出力動作に伴って
発生する事象を、実計算機内および仮想計算機内の両方
の通知先に通知する方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a virtual computer system, and in particular, the present invention relates to a virtual computer system, and in particular, the present invention relates to a virtual computer system, in which events occurring in conjunction with input/output operations initiated by instructions executed on a virtual computer are This relates to a method of notifying both notification destinations within a virtual machine.

〔従来の技術〕[Conventional technology]

第5図に従来の事象通知方式を通用した仮想計算機シス
テムの構成を示す、この仮想計算機システムは、実計算
機1と入出力装置2とを有し、実計算機1上で複数の仮
想計算機8を実現している。
FIG. 5 shows the configuration of a virtual computer system using the conventional event notification method. This virtual computer system has a real computer 1 and an input/output device 2, and multiple virtual computers 8 are operated on the real computer 1. It has been realized.

実計算機lには、実計算機内の通知先3.レジスタ4.
ソフトウェアのテーブル5およびチャネルプログラム9
があり、仮想計算機8内には、仮想計算機内の通知先7
およびチャネルプログラム6がある。一般に、仮想計算
機システムでは、実計算機1または仮想計算4!18が
主記憶上のチャネルプログラム9,6を実行するように
入出力装置2に指示することにより、入出力動作を実現
している。
The real computer l has notification destinations 3. Register 4.
Software table 5 and channel program 9
There is a notification destination 7 in the virtual machine in the virtual machine 8.
and channel program 6. Generally, in a virtual computer system, input/output operations are realized by the real computer 1 or the virtual computer 4!18 instructing the input/output device 2 to execute the channel programs 9, 6 on the main memory.

先ず始めに、実計算機1が入出力動作を指示する場合に
ついて説明する。
First, a case will be described in which the actual computer 1 instructs input/output operations.

実計算機lのソフトウェアが、事象の通知先3と、入出
力動作に伴う事象の通知先としてその通知先3を措定す
るチャネルプログラム9とを主記憶上に用意し、入出力
装置2に対しチャネルプログラム9の実行を指示すると
、仮想計算機システムのハードウェア及び/又はファー
ムウェア(以下ファームウェア等と略す)は、チャネル
プログラム9により指定された事象の通知先3のアドレ
スを、今回の入出力動作の単位(例えば論理チャネル単
位)に対応してレジスタ4に格納する。その後、チャネ
ルプログラム9で指定された入出力動作の実行に関して
何らかの事象、例えば終了。
The software of the real computer 1 prepares in the main memory a notification destination 3 of an event and a channel program 9 that sets the notification destination 3 as a notification destination of an event associated with an input/output operation, and sends a channel to the input/output device 2. When the execution of the program 9 is instructed, the hardware and/or firmware (hereinafter abbreviated as firmware) of the virtual computer system sends the address of the notification destination 3 of the event specified by the channel program 9 as the unit of the current input/output operation. (for example, in units of logical channels). Thereafter, some event occurs regarding the execution of the input/output operations specified in the channel program 9, such as termination.

中間、注意1例外等の事象が発生すると、仮想計算機シ
ステムのファームウェア等は、その事象にかかる入出力
単位に対応してレジスタ4に格納された事象の通知先3
のアドレスを参照し、その通知先3に対して事象メツセ
ージを通知する。このとき通知されるメツセージ中には
、入出力動作の対象となった入出力チャネル番号が含め
られている。なお、通知先3がセマフォである場合、そ
のセマフォには事象メツセージの格納先および事象発生
時に起動されるべきプロセスを示す情報が少なくとも含
められており、そのセマフォに事象メツセージが通知さ
れることにより該当するプロセスが起動されるものであ
る。
When an event such as an intermediate or caution 1 exception occurs, the firmware of the virtual computer system sends the notification destination 3 of the event stored in the register 4 corresponding to the input/output unit related to the event.
, and notifies the event message to the notification destination 3. The message notified at this time includes the input/output channel number targeted for the input/output operation. Note that when the notification destination 3 is a semaphore, the semaphore includes at least information indicating the storage location of the event message and the process that should be activated when the event occurs, and when the event message is notified to the semaphore, The corresponding process is started.

次に、仮想計算機が入出力動作を指示する場合を説明す
る。
Next, a case where the virtual machine instructs input/output operations will be described.

仮想計算機8内のソフトウェアが、事象の通知先7と、
入出力動作に伴う事象の通知先としてその通知先7を指
定するチャネルプログラム6とを主記憶上に用意し、入
出力装置2に対してチャネルプログラム6の実行を指示
すると、これを契機にプログラム割り込みが発生して実
計算機1のソフトウェア(例えば仮想計算機モニタ)に
処理が移行する。実計算機1の上記のソフトウェアは、
入出大袋N2からの事象の通知先として、仮想計算機8
内のチャネルプログラム6が事象の通知先として指定す
る仮想計算機8内の事象の通知先7とは別の通知先3を
実計算機lの主記憶内に用意する。また、入出力チャネ
ル番号は、実計算機1と仮想計算機8とでは独立に付与
されている。即ち、仮想計算機8上での入出力チャネル
番号と実計算機1上での人出力チャネル番号とは必ずし
も一敗しない、そこで、仮想計算機8上での入出力チャ
ネル番号と実計算機1上での入出力チャネル番号との対
応を記憶しておき、事象の通知を行うときに実計算機1
と仮想計算機8とでは事象メツセージ中の入出力チャネ
ル番号を違える必要がある。このために実計算機lのソ
フトウェアは、事象の通知先3のアドレスと、予め仮想
計算機8に付与された番号(仮想計算機番号)と、仮想
計算機8内の事象の通知先7のアドレスとに加え、仮想
計算機8上での入出力チャネル番号をソフトウェアのテ
ーブル5に記憶する。そして、事象の通知先として通知
先3を指定して仮想計算機8の主記憶内のチャネルプロ
グラム6の実行を入出力装置2に指示する。これにより
、仮想計算機システムのファームウェア等は、事象の通
知先3の実計算機l内のアドレスを、今回の入出力動作
の単位に対応してレジスタ4に格納する。
The software in the virtual machine 8 communicates with the event notification destination 7,
A channel program 6 that specifies the notification destination 7 as the notification destination of events associated with input/output operations is prepared in the main memory, and when the input/output device 2 is instructed to execute the channel program 6, this triggers the program execution. An interrupt occurs and processing is transferred to the software of the real computer 1 (for example, a virtual computer monitor). The above software of real computer 1 is
The virtual computer 8 is used as the notification destination for events from the I/O large bag N2.
A notification destination 3 different from the event notification destination 7 in the virtual computer 8 specified as the event notification destination by the channel program 6 in the real computer 1 is prepared in the main memory of the real computer 1. Further, input/output channel numbers are assigned independently to the real computer 1 and the virtual computer 8. In other words, the input/output channel number on the virtual computer 8 and the human output channel number on the real computer 1 do not always match, so the input/output channel number on the virtual computer 8 and the input/output channel number on the real computer 1 The correspondence with the output channel number is memorized and the actual computer 1 is used when notifying an event.
It is necessary to use different input/output channel numbers in the event message between the virtual machine 8 and the virtual machine 8. For this purpose, the software of the real computer 1 adds the address of the event notification destination 3, the number assigned to the virtual computer 8 in advance (virtual computer number), and the address of the event notification destination 7 in the virtual computer 8. , the input/output channel numbers on the virtual machine 8 are stored in the software table 5. Then, it specifies the notification destination 3 as the event notification destination and instructs the input/output device 2 to execute the channel program 6 in the main memory of the virtual machine 8. As a result, the firmware of the virtual computer system stores the address in the real computer 1 of the event notification destination 3 in the register 4 in correspondence with the unit of the current input/output operation.

この後、入出力動作に伴い何らかの事象が発生し、その
報告が行われると、仮想計算機システムのファームウェ
ア等は、その事象にかかる入出力動作の単位に対応する
レジスタ4の内容(通知先3のアドレス)を参照して、
通知先3に事象メツセージを通知する。これにより、通
知先3に対する事象の通知を待ち合わせていた実計算機
1のソフトウェア(プロセス)に処理が移行する。なお
、通知先3に通知された事象メツセージ中には、該当す
る入出力動作の対象となった入出力チャネルの実計算機
l上での入出力チャネル番号が表示される。
After that, when some event occurs due to an input/output operation and is reported, the firmware of the virtual machine system updates the contents of the register 4 corresponding to the unit of input/output operation related to the event (notification destination 3). address),
Notify destination 3 of the event message. As a result, the processing shifts to the software (process) of the actual computer 1 that has been waiting for notification of the event to the notification destination 3. In addition, in the event message notified to the notification destination 3, the input/output channel number on the actual computer l of the input/output channel that was the target of the corresponding input/output operation is displayed.

次に、通知先3への事象の通知により起動された実計算
4411の上記のソフトウェアは、ソフトウェアのテー
ブル5を参照し、上記事象メツセージ中の入出力チャネ
ル番号を仮想計算elB上での入出力チャネル番号に変
換し、ソフトウェアのテーブル5中の仮想計算機8の番
号と通知先7のアドレスとに従い、仮想計算機8の主記
憶内の通知先7に上記事象メツセージを通知する。これ
により、通知先7に対する事象の通知を待ち合わせてい
た仮想計算機8のソフトウェア(プロセス)に処理が移
行する。
Next, the above software of the actual calculation 4411 started by the notification of the event to the notification destination 3 refers to the table 5 of the software, and uses the input/output channel number in the above event message as the input/output channel number on the virtual calculation elB. The event message is converted into a channel number, and the event message is notified to the notification destination 7 in the main memory of the virtual machine 8 according to the number of the virtual machine 8 in the software table 5 and the address of the notification destination 7. As a result, the processing is transferred to the software (process) of the virtual machine 8 that has been waiting for notification of the event to the notification destination 7.

以上のようにして仮想計算機8の命令により起動された
入出力動作に伴う事象が仮想計算機8に通知される。
As described above, the virtual machine 8 is notified of an event associated with an input/output operation activated by a command from the virtual machine 8.

このように、従来の仮想計算機システムでは、仮想計算
機システムのファームウェア等による事象の通知は常に
実計算機1の通知先に対して行われていた。
In this manner, in the conventional virtual computer system, event notifications by the firmware of the virtual computer system, etc. are always sent to the notification destination of the real computer 1.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

ところで、仮想計算機システムでは、仮想計算機が実行
を指示した入出力動作の状態を実計算機上の管理プログ
ラムが常に認識していることが必要となる場合がある。
By the way, in a virtual computer system, it may be necessary for a management program on a real computer to always recognize the state of an input/output operation that the virtual computer has instructed to execute.

このためには、仮想計算機によりチャネルプログラムの
実行が指示されると、実計算機に制御を移行して入出力
動作の実行を実計算機が管理するとともに、仮想計算機
の指示により実行された入出力動作に伴う事象の通知を
実計算機と仮想計算機の両方に対して行う必要がある。
To do this, when a virtual computer instructs the execution of a channel program, control is transferred to the real computer and the real computer manages the execution of input/output operations, and the input/output operations executed according to instructions from the virtual computer It is necessary to notify both the real computer and the virtual computer of the event associated with this.

このように仮想計算機の入出力動作に伴う事象の通知を
実計算機と仮想計算機の両方に対して行おうとする場合
、従来の仮想計算機システムでは、そのファームウェア
等は、−旦実計算機内の通知先に対して事象の通知を行
うので、その後実計算機上のソフトウェアが事象メツセ
ージ中の人出力チャネル番号を仮想計算機上での入出力
チャネル番号に変換した上で、仮想計算機内の通知先に
対して事象メツセージを通知しなければならない、この
ため、入出力動作に伴う事象の通知において仮想計算機
は実計算機に比べて実計算機のソフトウェアが介入する
分だけ余計に時間がかかり、仮想計算機の入出力動作の
オーバーヘッドが増加する。
In this way, when attempting to notify both the real computer and the virtual computer of events associated with the input/output operations of the virtual machine, in conventional virtual computer systems, the firmware etc. After that, the software on the real computer converts the human output channel number in the event message to the input/output channel number on the virtual computer, and then sends the notification to the notification destination on the virtual computer. Therefore, when notifying an event associated with an input/output operation, a virtual computer takes more time than a real computer due to the intervention of the real computer's software, and the virtual computer's input/output operation overhead increases.

本発明の目的は、仮想計算機上で実行された命令により
起動される入出力動作に伴い発生する事象を実計算機内
および仮想計算機内の両方の通知先に通知する際のオー
バーヘッドを低減することにある。
An object of the present invention is to reduce the overhead when notifying notification destinations in both the real computer and the virtual computer of events that occur due to input/output operations activated by instructions executed on a virtual computer. be.

〔課題を解決するための手段〕[Means to solve the problem]

本発明の仮想計算機システムにおける入出力動作に伴う
事象の通知方式は、実計算機上で複数の仮想計算機を実
現する仮想計算機システムにおいて、仮想計算機上で実
行された命令により起動される入出力動作の単位に対応
して、その仮想計算機を識別する第1の情報、その仮想
計算機上での入出力チャネル番号を示す第2の情報、そ
の入出力動作に伴う事象を通知すべき前記実計算機内お
よび前記仮想計算機内の二つの通知先の格納位置をそれ
ぞれ示す第3および第4の情報を保持する記憶手段を設
け、前記入出力動作に伴う事象が発生したときに、仮想
計算機システムのファームウェア等により、その発生し
た事象にかかる入出力動作の単位に対応して前記記憶手
段に保持された前記第3の情報で示される格納位置の前
記実計算機°内の通知先に前記発生した事象にかかるメ
ツセージを通知すると共に、前記メツセージ中の入出力
チャネル番号を前記第2の情報が示す仮想計算機上での
入出力チャネル番号に変換したメツセージを前記第1の
情報により特定される仮想計算機内の前記第4の情報で
示される格納位置の通知先に通知する構成を有する。
The method for notifying events associated with input/output operations in a virtual computer system of the present invention is a system for notifying events associated with input/output operations in a virtual computer system that implements multiple virtual computers on a real computer. Corresponding to the unit, first information identifying the virtual computer, second information indicating the input/output channel number on the virtual computer, and information in the real computer to which events associated with the input/output operation should be notified. Storage means is provided for holding third and fourth information indicating the storage locations of the two notification destinations in the virtual computer, and when an event associated with the input/output operation occurs, the firmware of the virtual computer system , a message related to the event that occurred to a notification destination within the actual computer at a storage location indicated by the third information held in the storage means corresponding to the unit of input/output operation related to the event that occurred; At the same time, the input/output channel number in the message is converted to the input/output channel number on the virtual machine indicated by the second information, and the message is sent to the virtual machine specified by the first information. It has a configuration that notifies the notification destination of the storage location indicated by the information No. 4.

〔作用〕[Effect]

本発明の仮想計算機システムにおける入出力動作に伴う
事象の通知方式においては、仮想計算機上で実行された
命令により入出力動作が起動されると、その入出力動作
の単位に対応して、記憶手段が、その仮想計算機を識別
する第1の情報、その仮想計算機上での入出力チャネル
番号を示す第2の情報、その入出力動作に伴う事象を通
知すべき前記実計算機内および前記仮想計算機内の二つ
の通知先の格納位置をそれぞれ示す第3および第4の情
報を保持し、前記入出力動作に伴う事象が発生すると、
仮想計算機システムのファームウェア等が、その発生し
た事象にかかる入出力動作に対応して前記記憶手段に保
持された前記第3の情報で示される格納位置の前記実計
算機内の通知先に前記発生した事象にかかるメツセージ
を通知すると共に、前記メツセージ中の人出力チャネル
番号を前記第2の情報が示す仮想計算機上での入出力チ
ャネル番号に変換したメツセージを前記第1の情報によ
り特定される仮想計算機内の前記第4の情報で示される
格納位置の通知先に通知する。
In the event notification method associated with an input/output operation in a virtual computer system of the present invention, when an input/output operation is started by an instruction executed on a virtual computer, a storage device is is first information that identifies the virtual computer, second information that indicates the input/output channel number on the virtual computer, and information within the real computer and virtual computer that should be notified of events associated with the input/output operation. holds third and fourth information respectively indicating the storage locations of the two notification destinations, and when an event associated with the input/output operation occurs,
The firmware or the like of the virtual computer system causes the occurrence of the above-mentioned event to occur at a notification destination within the real computer at the storage location indicated by the third information held in the storage means in response to the input/output operation related to the event that has occurred. The virtual computer specified by the first information notifies the message related to the event and also sends a message in which the human output channel number in the message is converted to the input/output channel number on the virtual computer indicated by the second information. A notification is sent to the notification destination at the storage location indicated by the fourth information.

〔実施例] 次に、本発明の実施例について図面を参照して詳細に説
明する。
[Example] Next, an example of the present invention will be described in detail with reference to the drawings.

第1図を参照すると、本発明を適用した仮想計算機シス
テムの一実施例は、実計算機1と入出力装置2とを有し
、実計算機1上で複数の仮想計算機8を実現している。
Referring to FIG. 1, an embodiment of a virtual computer system to which the present invention is applied has a real computer 1 and an input/output device 2, and a plurality of virtual computers 8 are realized on the real computer 1.

実計算機1には実計算機内の通知先3.レジスタ4.チ
ャネルプログラム9があり、仮想計算機8には仮想計算
機内の通知先7、チャネルプログラム6がある。レジス
タ4は、実計算機1或いは仮想計算機8上で実行された
命令により起動される入出力動作の単位(例えば論理チ
ャネル単位)に対応するエントリの集まりであり、各エ
ントリには実計算機内の通知先のアドレス41.仮想計
算機番号42.仮想計算機内の通知先のアドレス43.
仮想計算機上での人出力チャネル番号44が格納される
。ここで、仮想計算機番号42は、当該仮想計算機シス
テム内で実現される複数の仮想計算機8に1から始まる
番号を付与したときのその番号である。また、仮想計算
機番号が0のときは、その入出力動作が実計算機lによ
り指示されたものを示す。
Real computer 1 has notification destination 3 within the real computer. Register 4. There is a channel program 9, and the virtual machine 8 has a notification destination 7 and a channel program 6 within the virtual machine. The register 4 is a collection of entries corresponding to a unit of input/output operation (for example, a logical channel unit) activated by an instruction executed on the real computer 1 or the virtual computer 8, and each entry includes a notification in the real computer. Destination address 41. Virtual machine number 42. Notification destination address within the virtual machine 43.
A human output channel number 44 on the virtual machine is stored. Here, the virtual machine number 42 is a number when a number starting from 1 is given to a plurality of virtual machines 8 realized within the virtual machine system. Further, when the virtual machine number is 0, it indicates that the input/output operation is instructed by the real computer l.

次に、第1図、第2図および第3図を参照して、仮想計
算機が入出力動作を指示する場合の動作を説明する。
Next, with reference to FIG. 1, FIG. 2, and FIG. 3, the operation when the virtual machine instructs input/output operations will be described.

仮想計算機8内のソフトウェアが、事象の通知先7と、
入出力動作に伴う事象の通知先としてその通知先7を指
定するチャネルプログラム6とを主記憶上に用意し、第
2図のステップSlに示す如く入出力装置2に対してチ
ャネルプログラム6の実行を指示すると、それを契機に
プログラム割り込みが発生して実計算機lのソフトウェ
ア(仮想計算機モニタ等)に処理が移行する。
The software in the virtual machine 8 communicates with the event notification destination 7,
A channel program 6 that specifies the notification destination 7 as the notification destination of an event associated with an input/output operation is prepared in the main memory, and the channel program 6 is executed for the input/output device 2 as shown in step Sl in FIG. When this instruction is given, a program interrupt is generated and the processing is transferred to the software (virtual computer monitor, etc.) of the real computer I.

実計算機lの上記ソフトウェアは、事象の通知先として
仮想計算機8に予め付与された番号(仮想計算機番号)
と、実計算機l内の事象の通知先3のアドレスと、仮想
計算機8内のチャネルプログラム6により指定される仮
想計算機8内の事象の通知先7のアドレスと、仮想計算
機8上での人出力チャネル番号とを指定して、仮想計算
機8の主記憶内のチャネルプログラム6の実行を入出力
装置2に指示する。この動作は実際は、第2図のステッ
プSllに示す如く、仮想計算機8の番号と、チャネル
プログラム6のアドレスと、実計算機1内の事象の通知
先3のアドレスと、仮想計算機8内の事象の通知先7の
アドレスと、仮想計算機8上での入出力チャネル番号と
をそれぞれ引数とするソフトウェア命令を実計算機1が
実行することに相当する。
The above software on the real computer l uses a number (virtual computer number) assigned in advance to the virtual computer 8 as the event notification destination.
, the address of the event notification destination 3 in the real computer 1, the address of the event notification destination 7 in the virtual computer 8 specified by the channel program 6 in the virtual computer 8, and the human output on the virtual computer 8. The input/output device 2 is instructed to execute the channel program 6 in the main memory of the virtual machine 8 by specifying the channel number. This operation actually involves the number of the virtual machine 8, the address of the channel program 6, the address of the event notification destination 3 in the real computer 1, and the event notification in the virtual computer 8, as shown in step Sll in FIG. This corresponds to the real computer 1 executing a software instruction that takes the address of the notification destination 7 and the input/output channel number on the virtual computer 8 as arguments, respectively.

上記の如きソフトウェア命令が実行されることにより、
実計算機lのファームウェア等は、第2図のボックスB
1に示す如く、実計算機1内の事象の通知先3のアドレ
スと、通知を行う仮想計算機8の番号と、仮想計算機8
内の事象の通知先7のアドレスと、仮想計算機8上での
入出力チャネル番号とを、今回の入出力動作の単位に対
応させてレジスタ4の一つのエントリ中に第1図の41
゜42.43.44として格納する。
By executing the above software instructions,
The firmware, etc. of the actual computer is shown in box B in Figure 2.
1, the address of the event notification destination 3 in the real computer 1, the number of the virtual computer 8 to which notification is to be made, and the virtual computer 8
41 in FIG.
Store as ゜42.43.44.

この後、入出力動作に関して何らかの事象が発生し、そ
の報告が行われると、仮想計算機システムのファームウ
ェア等は、第3図を参照して以下に説明する如き動作を
行うことにより、通知先3と通知先7に同時に事象メツ
セージを通知する。
After this, when an event related to input/output operation occurs and is reported, the firmware of the virtual computer system communicates with the notification destination 3 by performing the operations described below with reference to FIG. The notification destination 7 is notified of the event message at the same time.

先ず、事象の報告が行われると、レジスタ4中のその事
象にかかる入出力動作の単位に対応するエントリにおけ
る実計算機1内の通知先3のアドレス41に従って通知
先3に対してその事象メツセージを通知する(ボックス
B11)、なお、この事象メツセージ中には実計算機l
上での入出力チャネル番号が含められる9次いで、レジ
スタ4中の該当エントリにおける仮想計算機番号42が
0か否かを判別しくボックスB12)、Oであれば今回
の動作を終了する。今の場合は、仮想計算機番号42は
仮想計算機8に対応する値であり、0でないので、ボッ
クスB13に進み、レジスタ4中の該当エントリにおけ
る仮想計算機B上での入出力チャネル番号44により事
象メツセージ中の入出力チャネル番号を変更し、ボック
スB14において、レジスタ4中の二亥当エントリにお
ける(反想計算機番号42と通知先7のアドレス43に
従って、通知先7に事象メツセージを通知する。以上の
ようにして、実計算機1のソフトウェアの介入なしに、
入出力装置2からの事象が実計算機1と仮想計算機8に
同時に且つ直接に通知される。
First, when an event is reported, the event message is sent to the notification destination 3 according to the address 41 of the notification destination 3 in the real computer 1 in the entry corresponding to the input/output operation unit related to the event in the register 4. (Box B11). Note that during this event message, the actual
9, which includes the above input/output channel number. Next, it is determined whether the virtual machine number 42 in the corresponding entry in the register 4 is 0 or not (box B12). If it is 0, the current operation is ended. In this case, the virtual machine number 42 is a value corresponding to virtual machine 8 and is not 0, so proceed to box B13 and send an event message using the input/output channel number 44 on virtual machine B in the corresponding entry in register 4. In box B14, the event message is notified to the notification destination 7 according to the reflection computer number 42 and the address 43 of the notification destination 7 in the second entry in the register 4. In this way, without the intervention of the software of the real computer 1,
Events from the input/output device 2 are notified to the real computer 1 and the virtual computer 8 simultaneously and directly.

一方、実計算機1が入出力動作を指示する場合について
、第1図、第3図および第4図を参照して説明する。
On the other hand, a case where the real computer 1 instructs input/output operations will be explained with reference to FIGS. 1, 3, and 4.

先ず、実計算機1のソフトウェアは、事象の通知先3と
、入出力動作に伴う事象の通知先としζその通知先3を
指定するチャネルプログラム9とを主記憶上に用意し、
入出力袋N2に対し実計算機l内の事象の通知先3と、
値が0の仮想計算機番号とを指定してチャネルプログラ
ム9の実行を指示する。これは実際には、第4図のステ
ップS21に示す如く、仮想計算機番号=0と、チャネ
ルプログラム9のアドレスと、実計算機1内の事象の通
知先3のアドレスとをそれぞれ引数とするソフトウェア
命令を実計算機1が実行することに相当する。
First, the software of the real computer 1 prepares in the main memory a notification destination 3 of an event and a channel program 9 that specifies the notification destination ζ as a notification destination of an event associated with an input/output operation.
For the input/output bag N2, a notification destination 3 of an event in the actual computer l,
The channel program 9 is instructed to be executed by specifying a virtual machine number with a value of 0. In reality, this is a software command that takes as arguments the virtual machine number = 0, the address of the channel program 9, and the address of the event notification destination 3 in the real computer 1, as shown in step S21 in FIG. This corresponds to the actual computer 1 executing.

上記の如きソフトウェア命令が実行されることにより、
実計算機1のファームウェア等は、第4図のボックスB
21に示す如く、実計算機1内の事象の通知先3のアド
レスと、仮想計算機番号−〇とを、今回の入出力動作の
単位に対応させてレジスタ4の一つのエントリ中に第1
図の41,42として格納する。なお、このときレジス
タ4中の43.44にはどのような値が格納されてもか
まわない。
By executing the above software instructions,
The firmware, etc. of the actual computer 1 is located in box B in Figure 4.
21, the address of the notification destination 3 of the event in the real computer 1 and the virtual machine number -0 are stored in one entry of the register 4 in the first entry in correspondence with the unit of the current input/output operation.
It is stored as 41 and 42 in the figure. Note that at this time, any value may be stored in 43.44 in register 4.

その後、チャネルプログラム9で指定された入出力動作
の実行に関して何らかの事象が発生し、その報告が行わ
れると、仮想計算機システムのファームウェア等は、第
3図の動作を行う、即ち、先ずボックスBllで、レジ
スタ4中のその事象にかかる入出力単位に対応するエン
トリにおける実計算機1内の通知先3のアドレス41に
従って通知先3に対して事象メツセージを通知する。な
お、この事象メツセージ中には実計算機1上での入出力
チャネル番号が含められている0次いで、レジスタ4中
の該当エントリにおける仮想計算機番号42がOか否か
を判別しくボックスB12)、0であるので今回の動作
を終了する。
After that, when some event occurs regarding the execution of the input/output operation specified by the channel program 9 and is reported, the firmware of the virtual computer system performs the operation shown in FIG. , an event message is notified to the notification destination 3 according to the address 41 of the notification destination 3 in the real computer 1 in the entry corresponding to the input/output unit related to the event in the register 4. This event message includes the input/output channel number on the real computer 1. Next, it is determined whether the virtual computer number 42 in the corresponding entry in the register 4 is 0 or not (box B12), 0. Therefore, this operation ends.

なお、論理チャネルに対応して入出力動作が行われるシ
ステムにおいては、レジスタ4は実計算機から見た論理
チャネル番号と仮想計算機の番号および通知先のアドレ
ス、仮想計算機上のチャネル番号を対応させる変換テー
ブルの形で主記憶上の保護された領域に設けることも可
能である。
In addition, in a system in which input/output operations are performed in correspondence with logical channels, register 4 is used for conversion to correspond the logical channel number seen from the real computer, the virtual computer number, the notification destination address, and the channel number on the virtual computer. It is also possible to provide it in the form of a table in a protected area on main memory.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明の仮想計算機システムの入
出力動作に伴う事象の通知方式によれば、入出力チャネ
ル番号が実計算機からみた場合と仮想計算機からみた場
合とで異なっているときでも、仮想計算機内の入出力動
作に伴う事象の通知が、実計算機のソフトウェアの介入
を伴わない一段階の通知動作により直接に実計算機と仮
想計算機の両方の通知先に行われるようになり、仮想計
算機による入出力動作のオーバーヘッドが低減されると
いう効果がある。
As explained above, according to the event notification method associated with the input/output operation of the virtual computer system of the present invention, even when the input/output channel number is different from the perspective of the real computer and the virtual computer, Notifications of events associated with input/output operations within a virtual computer are now directly sent to both the real computer and the virtual computer through a one-step notification operation that does not require intervention from the software of the real computer. This has the effect of reducing the overhead of input/output operations.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明を通用した仮想計算機システムの一実施
例のブロック図、 第2図は仮想計算機が入出力動作を指示したときの仮想
計算機上のソフトウェア、実計算機上のソフトウェアお
よび仮想計算機システムのファームウェア等による動作
例を示す流れ図、第3図は入出力動作に伴う事象発生時
に仮想計算機システムのファームウェア等が行う処理例
を示す流れ図、 第4図は実計算機が入出力動作を措示したときの実計算
機上のソフトウェア、仮想計算機システムのファームウ
ェア等による動作例を示す図および、 第5図は従来の仮想計算機システムのブロック図である
。 図において、 l・・・実計算機 2・・・入出力装置 3・・・実計算機内の通知先 4・・・レジスタ 41・・・実計算機内の通知先のアドレス42・・・仮
想計算機番号 43・・・仮想計算機内の通知先のアドレス44・・・
仮想計算機上での入出力チャネル番号 5・・・ソフトウェアのテーブル 69・・・チャネルプログラム 7・・・仮想計算機内の通知先 8・・・仮想計算機
Fig. 1 is a block diagram of an embodiment of a virtual computer system to which the present invention is applied, and Fig. 2 shows the software on the virtual computer, the software on the real computer, and the virtual computer system when the virtual computer instructs input/output operations. Figure 3 is a flowchart showing an example of the processing performed by the firmware, etc. of a virtual computer system when an event associated with an input/output operation occurs, and Figure 4 is a flowchart showing an example of the processing performed by the firmware, etc. of a virtual computer system when an event associated with an input/output operation occurs. FIG. 5 is a block diagram of a conventional virtual computer system. In the figure, l... Real computer 2... Input/output device 3... Notification destination in real computer 4... Register 41... Address of notification destination in real computer 42... Virtual computer number 43...Address of the notification destination in the virtual machine 44...
Input/output channel number on virtual machine 5...Software table 69...Channel program 7...Notification destination in virtual machine 8...Virtual computer

Claims (1)

【特許請求の範囲】 実計算機上で複数の仮想計算機を実現する仮想計算機シ
ステムにおいて、 仮想計算機上で実行された命令により起動される入出力
動作の単位に対応して、その仮想計算機を識別する第1
の情報、その仮想計算機上での入出力チャネル番号を示
す第2の情報、その入出力動作に伴う事象を通知すべき
前記実計算機内および前記仮想計算機内の二つの通知先
の格納位置をそれぞれ示す第3および第4の情報を保持
する記憶手段を設け、前記入出力動作に伴う事象が発生
したときに、仮想計算機システムのハードウェア及び/
又はファームウェアにより、その発生した事象にかかる
入出力動作の単位に対応して前記記憶手段に保持された
前記第3の情報で示される格納位置の前記実計算機内の
通知先に前記発生した事象にかかるメッセージを通知す
ると共に、前記メッセージ中の入出力チャネル番号を前
記第2の情報が示す仮想計算機上での入出力チャネル番
号に変換したメッセージを前記第1の情報により特定さ
れる仮想計算機内の前記第4の情報で示される格納位置
の通知先に通知することを特徴とする仮想計算機システ
ムにおける入出力動作に伴う事象の通知方式。
[Claims] In a virtual computer system that realizes a plurality of virtual computers on a real computer, a virtual computer is identified in correspondence to a unit of input/output operation activated by an instruction executed on the virtual computer. 1st
information, second information indicating the input/output channel number on the virtual computer, and storage locations of two notification destinations within the real computer and within the virtual computer to which events associated with the input/output operation should be notified, respectively. storage means is provided to hold third and fourth information indicating the input/output operation, and when an event associated with the input/output operation occurs, the hardware and/or
Or, by firmware, a notification destination in the actual computer at a storage location indicated by the third information held in the storage means corresponding to the unit of input/output operation related to the occurred event is sent to the notification destination in the real computer. In addition to notifying such a message, a message in which the input/output channel number in the message is converted to the input/output channel number on the virtual machine indicated by the second information is sent to the virtual machine specified by the first information. A notification method of an event associated with an input/output operation in a virtual computer system, characterized in that a notification destination of a storage location indicated by the fourth information is notified.
JP25790288A 1988-10-13 1988-10-13 System for informing even attending with input/output operation in virtual computer system Pending JPH02105227A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25790288A JPH02105227A (en) 1988-10-13 1988-10-13 System for informing even attending with input/output operation in virtual computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25790288A JPH02105227A (en) 1988-10-13 1988-10-13 System for informing even attending with input/output operation in virtual computer system

Publications (1)

Publication Number Publication Date
JPH02105227A true JPH02105227A (en) 1990-04-17

Family

ID=17312776

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25790288A Pending JPH02105227A (en) 1988-10-13 1988-10-13 System for informing even attending with input/output operation in virtual computer system

Country Status (1)

Country Link
JP (1) JPH02105227A (en)

Similar Documents

Publication Publication Date Title
US9594522B2 (en) Backup method and information processing apparatus
JPS6364144A (en) Inter-memory data transfer system
JPH02105227A (en) System for informing even attending with input/output operation in virtual computer system
JPS6042980B2 (en) Multi-work station processing system
JPH02105226A (en) System for informing event attending with input/output operation in virtual computer system
JPS6386035A (en) Stack pool managing system
JPH01120639A (en) Virtual computer system
JP2580970B2 (en) Control method of calling process by schedule start
JP2763657B2 (en) Figure database management method
JP2690486B2 (en) Program execution status monitoring method
JPH07182261A (en) Information processor
JP2001157235A (en) Storage program control type automatic exchange
JPH0228814A (en) Message display system
JPH0512585A (en) Plant monitoring device
JPH0235536A (en) Update processing system for on-line file index part
JPH04138535A (en) Source level debugging system
JPH05276553A (en) Monitor control system
JPH0273430A (en) Informing method for event caused by input action of virtual computer system
JPS62164134A (en) Hardware stack control system
JPH02144654A (en) Message output instruction control system
JPS59110244A (en) Polling control system of network with dummy terminal
JPH06309253A (en) Computer system
JPH0241548A (en) I/o interrupt control system
JPS638946A (en) Program debug supporting system
JPH03134758A (en) Decentralized processing system