JP2517977B2 - Input / output interrupt control method in virtual machine - Google Patents

Input / output interrupt control method in virtual machine

Info

Publication number
JP2517977B2
JP2517977B2 JP17410987A JP17410987A JP2517977B2 JP 2517977 B2 JP2517977 B2 JP 2517977B2 JP 17410987 A JP17410987 A JP 17410987A JP 17410987 A JP17410987 A JP 17410987A JP 2517977 B2 JP2517977 B2 JP 2517977B2
Authority
JP
Japan
Prior art keywords
input
direct execution
operating system
output
area
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
JP17410987A
Other languages
Japanese (ja)
Other versions
JPS6417130A (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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP17410987A priority Critical patent/JP2517977B2/en
Publication of JPS6417130A publication Critical patent/JPS6417130A/en
Application granted granted Critical
Publication of JP2517977B2 publication Critical patent/JP2517977B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、仮想計算機における入出力割込み制御方式
に関し、特に、入出力制御を高速化することが可能な仮
想計算機における入出力割込み制御方式に関する。
The present invention relates to an input / output interrupt control method in a virtual computer, and more particularly to an input / output interrupt control method in a virtual computer capable of speeding up input / output control. .

〔従来技術〕[Prior art]

従来の仮想計算機の制御では、入出力装置は全て仮想
計算機を制御する制御プログラム(以下VMモニタと称
す)の管理下にあり、VMモニタ下で動作するオペレーテ
ィング・システム(以下OSと略す)が発行するI/O命令
は一旦トラップされて、VMモニタがシュミレーションを
行う。
In conventional virtual machine control, all I / O devices are under the control of a control program (hereinafter referred to as VM monitor) that controls the virtual machine, and an operating system (hereinafter referred to as OS) that operates under VM monitor is issued. The I / O instruction to be executed is once trapped, and the VM monitor simulates it.

また、入出力装置からの入出力割込みはVMモニタが使
用するプレフィックス域(PXA)を使用し、一旦VMモニ
タが入出力割込みを受付け、その後、I/O命令発行元に
返却する方式を採用していた。
The input / output interrupt from the input / output device uses the prefix area (PXA) used by the VM monitor, and the VM monitor accepts the input / output interrupt once and then returns it to the I / O instruction issuer. Was there.

このような仮想計算機は、例えば第5図のように、CP
U501、主メモリ制御部502、チャネル制御部503、入出力
装置541,542、主メモリ505を備える。
Such a virtual machine is, for example, as shown in FIG.
A U501, a main memory control unit 502, a channel control unit 503, input / output devices 541 and 542, and a main memory 505 are provided.

また、主メモリ505は、VMモニタ551、OS#1用メモリ
域552、およびOS#2用メモリ域553に分割され、それら
の領域にはチャネルプログラム格納域5521、およびプレ
フィックス域(PXA)5510,5520,5530を備える。
Further, the main memory 505 is divided into a VM monitor 551, an OS # 1 memory area 552, and an OS # 2 memory area 553, and a channel program storage area 5521 and a prefix area (PXA) 5510, It is equipped with 5520 and 5530.

また、主メモリ制御部502は、VMモニタ域551の先頭ア
ドレス保持回路521、プレフィックス変換回路522、デー
タ保持回路523、VMID保持回路524、デコーダ回路525、
バッファ回路(FXB)526、ラッチ回路527、およびチェ
ック回路528を備える。
Further, the main memory control unit 502 includes a head address holding circuit 521 of the VM monitor area 551, a prefix conversion circuit 522, a data holding circuit 523, a VMID holding circuit 524, a decoder circuit 525,
A buffer circuit (FXB) 526, a latch circuit 527, and a check circuit 528 are provided.

このバッファ回路526には、第6図のように、加算す
べき値(AAA)、および上限アドレス(UUU)が各OS対応
に格納される。
As shown in FIG. 6, the buffer circuit 526 stores the value to be added (AAA) and the upper limit address (UUU) corresponding to each OS.

また、ラッチ回路527はデコーダ回路525で示された当
該OSのエントリがバッファ回路526から読み出された時
にラッチする。
The latch circuit 527 latches when the entry of the OS indicated by the decoder circuit 525 is read from the buffer circuit 526.

また、チェック回路528では、ラッチ回路527の内容と
信号5312の内容とが加算され、かつ、上限アドレス(UU
U)を越えていないことをチェックする。この場合、上
限アドレス(UUU)を越えていない時のみ、チャネルプ
ログラム格納域5521のチャネルプログラムにアクセスで
きる。
Further, in the check circuit 528, the contents of the latch circuit 527 and the contents of the signal 5312 are added, and the upper limit address (UU
Check that U) is not exceeded. In this case, the channel program in the channel program storage area 5521 can be accessed only when the upper limit address (UUU) is not exceeded.

このように主メモリ505が分割して使用される場合、
チャネル制御部503から主メモリ505へのアクセスは2種
に分類される。
When the main memory 505 is divided and used in this way,
Access from the channel control unit 503 to the main memory 505 is classified into two types.

つまり、信号5311,5312で示されるアクセスはチャネ
ルプログラム格納域5521における各OSのチャネルプログ
ラム、およびデータへのアクセスパスを示す。この場
合、信号5312は各OSが示すチャネルプログラム、および
データの下記鵜OSが意識する主メモリアドレスである。
また、信号5311は当該OSを識別する表示子(以下VMIDと
略す)である。
That is, the access indicated by the signals 5311 and 5312 indicates the access path to the channel program and data of each OS in the channel program storage area 5521. In this case, the signal 5312 is the main program memory address indicated by each OS and the main memory address recognized by the following cormorant OS.
A signal 5311 is an indicator (hereinafter abbreviated as VMID) that identifies the OS.

しかし、信号5312のアドレスで主メモリ505をアクセ
スしても、チャネルプログラム格納域5521の目的のチャ
ネルプログラムにアクセスすることができない。これ
は、実際に該チャネルプログラムが格納されているの
は、当該OSが認識するアドレスとは異なり、ある値が加
算されたアドレスが指す領域であることによる。なお、
その値はVMモニタがシステム構築の初期に設定する。
However, even if the main memory 505 is accessed with the address of the signal 5312, the target channel program in the channel program storage area 5521 cannot be accessed. This is because the channel program is actually stored in the area indicated by the address to which a certain value is added, unlike the address recognized by the OS. In addition,
The value is set by the VM monitor at the initial stage of system construction.

従って、信号5312のアドレスを用いてチャネルプログ
ラムにアクセスするためには、ある値を加算する必要が
あり、各回路524〜528により、必要な処理が行われる。
Therefore, in order to access the channel program using the address of the signal 5312, it is necessary to add a certain value, and the necessary processing is performed by each of the circuits 524 to 528.

一方、信号5301、および5302は、チャネル制御部503
からの割込み時の主メモリ格納情報である。
On the other hand, signals 5301 and 5302 are transmitted to the channel control unit 503.
This is the information stored in the main memory at the time of an interrupt from.

また、入出力割込みは全てVMモニタ域551で処理され
るため、例えば、当該OSがOS#1であっても、OS#1用
メモリ域552のプレフィックス域5520ではなく、VMモニ
タ域551のプレフィックス域5510に格納する必要があ
る。
Further, since all input / output interrupts are processed in the VM monitor area 551, for example, even if the OS is OS # 1, the prefix of the VM monitor area 551 is not the prefix area 5520 of the memory area 552 for OS # 1. Must be stored in area 5510.

このため、入出力割込み情報はVMIDに拘らず、プレフ
ィックス域5510の先頭アドレスを保持する先頭アドレス
保持回路521、プレフィックス変換回路522、およびデー
タ保持回路523を介して、プレフィックス域5510に格納
される。
Therefore, the input / output interrupt information is stored in the prefix area 5510 via the head address holding circuit 521 holding the head address of the prefix area 5510, the prefix conversion circuit 522, and the data holding circuit 523 regardless of the VMID.

従って、VMモニタは、その情報に基づいてシミュレー
ションを行った後、その情報を各OSに渡す。
Therefore, the VM monitor passes the information to each OS after performing the simulation based on the information.

このように、仮想計算機を高速に動作させるため、主
メモリ505を分割し、OS毎に連続域を割り当て、チャネ
ル制御部503からの主メモリアクセスについても、各OS
が発行するチャネルプログラムのアドレスに、各OS毎に
予め設定された値を保持するバッファを備え、主メモリ
アクセス時、その値を加算してアクセスする方式を採用
している。
In this way, in order to operate the virtual machine at high speed, the main memory 505 is divided, a continuous area is allocated for each OS, and the main memory access from the channel control unit 503 is also performed by each OS.
The address of the channel program issued by is provided with a buffer that holds a preset value for each OS, and when the main memory is accessed, the value is added and accessed.

また、プレフィックス域を各OS対応に割り当てる方式
を採用している場合でも、入出力割込みに関しては、VM
モニタのプレフィックス域を用いて割込み受付け処理を
行っている。
Even if the system that allocates the prefix area to each OS is adopted, the VM is
Interrupt acceptance processing is performed using the prefix area of the monitor.

すなわち、入出力割込みを受付けると、VMモニタのプ
レフィックス域に入出力情報(チャネル状態語(CS
W))を格納し、そのプレフィックス域から入出力割込
みの新プログラム状態語(以下PSWと略す)を現PSWにロ
ードして、割込み受付け処理を行った後、割込みを起こ
した入出力装置へのI/O命令を発行したOSへ、その割込
みを返すため、そのOSに合うように、その割込み情報を
変換するシミュレーションを行い、その後、その割込み
情報をそのOSのプレフィックス域の入出力割込み情報格
納領域に移し、その後、そのプレフィックス域の入出力
割込みの新PSWを現PSWにロードして擬似的に割込みを起
こしていた。
That is, when an I / O interrupt is accepted, I / O information (channel status word (CS
W)) is stored, the new program status word of I / O interrupt (hereinafter abbreviated as PSW) is loaded from the prefix area to the current PSW, the interrupt acceptance processing is performed, and then the I / O device that caused the interrupt Since the interrupt is returned to the OS that issued the I / O instruction, simulation is performed to convert the interrupt information so that it matches the OS, and then the interrupt information is stored in the input / output interrupt information of the OS prefix area. After moving to the area, the new PSW of the input / output interrupt of the prefix area was loaded into the current PSW and a pseudo interrupt was generated.

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

上記従来技術では、VMモニタが割込みに関して多くの
処理を行う必要があり、仮想計算機の性能を低下させる
大きな原因となっていた。
In the above conventional technique, the VM monitor needs to perform a lot of processing regarding interrupts, which is a major cause of reducing the performance of the virtual machine.

本発明の目的は、このような問題点を改善し、入出力
処理を要求したOSのプレフィックス例に割込み情報をダ
イレクトに格納することにより、入出力割込み時のオー
バーヘッドを減少することが可能な仮想計算機における
入出力割込み制御方式を提供することにある。
An object of the present invention is to improve such a problem and to directly store the interrupt information in the OS prefix requesting the I / O processing, thereby reducing the overhead at the time of the I / O interrupt. It is to provide an input / output interrupt control system in a computer.

〔問題を解決するための手段〕[Means for solving problems]

上記目的を達成するため、本発明の仮想計算機におけ
る入出力割込み制御方式は、入出力装置と、主メモリ
と、仮想計算機の制御プログラム、および各オペレーテ
ィング・システムに対応して割当てられた主メモリ領域
を示すアドレス情報を格納する手段(バッファ回路)と
を備え、主メモリを分割して、各オペレーティング・シ
ステム対応に連続域を割当て、かつ、該領域内には各オ
ペレーティング・システムが使用するプレフィックス域
を割当てて、仮想計算機の制御を行う電子計算機におい
て、上記バッファ回路には、上記オペレーティング・シ
ステム毎に入出力制御の直接実行を指定する情報を格納
する手段(直接実行情報格納回路)、各オペレーティン
グ・システムのプレフィック域の先頭アドレスを格納す
る手段(先頭アドレス保持回路)、および、当該オペレ
ーティング・システムが動作中が否かを示す表示子を格
納する手段(動作中表示子格納回路)を設け、かつ、そ
の直接実行情報格納回路からのデータをラッチするラッ
チ回路、上記入出力装置対応に特定オペレーティング・
システムによる入出力制御の直接実行を指定する情報を
保持する手段(制御指示情報格納回路)、バッファ回路
からのデータをラッチするラッチ回路、および、各OSの
直接実行指定情報をラッチするラッチ回路と制御指示情
報格納回路の信号により、そのオペレーティング・シス
テムのプレフィックス域の選択を判定する手段(判定回
路)を設けて、入出力装置から入出力割込みがあると、
オペレーティング・システム毎の直接実行指定情報、お
よび入出力装置対応の直接実行指定情報が共に直接実行
を指示し、かつ、当該オペレーティング・システムが動
作中でない場合には、制御プログラム用のプレフィック
ス域に入出力割込み情報を格納して、そのプレフィック
ス域の入出力割込みの新プログラム状態語(以下PSWと
略す)により、入出力割込み制御を行い、また、オペレ
ーティング・システム毎の直接実行指定情報、および入
出力装置対応の直接実行指定情報が共に直接実行を指示
し、かつ、該オペレーティング・システムが動作中であ
る場合のみ、当該オペレーティング・システム用のプレ
フィックス域に入出力割込み情報を直接格納して、その
プレフィックス域の入出力割込みの新PSWに基づき、入
出力割込み処理を行い、また、入出力装置対応の直接実
行指定情報が直接実行を指示し、かつ、オペレーティン
グ・システム毎の直接実行指定情報が直接実行を指示し
ない場合、あるいは、それらの情報が両方とも直接実行
を指示しない場合には、制御プログラム用のプレフィッ
クス域で入出力割込みの制御を行い、また、入出力装置
対応の直接実行指定情報が直接実行を指示せず、かつ、
オペレーティング・システム毎の直接実行指定情報が直
接実行を指示する場合には、入出力割込み制御を行わ
ず、エラーとして報告することに特徴がある。
In order to achieve the above object, an input / output interrupt control method in a virtual computer according to the present invention is an input / output device, a main memory, a control program of a virtual computer, and a main memory area allocated corresponding to each operating system. And a means (buffer circuit) for storing address information indicating that the main memory is divided to allocate a continuous area for each operating system, and a prefix area used by each operating system is provided in the area. In the electronic computer which controls the virtual computer by allocating the above, in the buffer circuit, means for storing information designating direct execution of input / output control for each operating system (direct execution information storage circuit), each operating system -Means for storing the start address of the prefix area of the system (start address Holding circuit), and means for storing an indicator indicating whether the operating system is in operation (operating indicator storage circuit), and a latch for latching data from the direct execution information storage circuit. Circuit, specific operating system for the above I / O devices
A means for holding information designating direct execution of input / output control by the system (control instruction information storage circuit), a latch circuit for latching data from the buffer circuit, and a latch circuit for latching direct execution designation information of each OS When there is an input / output interrupt from the input / output device by providing means (judgment circuit) for judging the selection of the prefix area of the operating system by the signal of the control instruction information storage circuit
If both the direct execution specification information for each operating system and the direct execution specification information for the input / output device indicate direct execution and the operating system is not running, the prefix area for the control program is entered. Output interrupt information is stored, and I / O interrupt control is performed by the new program status word (hereinafter abbreviated as PSW) of the input / output interrupt in the prefix area, and direct execution designation information for each operating system and input / output Only when both the direct execution designation information corresponding to the device indicates direct execution and the operating system is operating, the input / output interrupt information is directly stored in the prefix area for the operating system, and the prefix is stored. I / O interrupt processing is performed based on the new PSW of the area I / O interrupt In addition, when the direct execution designation information corresponding to the input / output device indicates the direct execution, and the direct execution designation information for each operating system does not instruct the direct execution, or both of the information do not instruct the direct execution. In this case, the I / O interrupt is controlled in the prefix area for the control program, the direct execution designation information corresponding to the I / O device does not directly instruct the execution, and
When the direct execution designation information for each operating system indicates direct execution, it is characterized by not performing input / output interrupt control and reporting as an error.

〔作用〕[Action]

本発明においては、入出力制御を直接実行することが
許されたOSに対し、その入出力割込み情報を直接、その
OSのプレフィックス域に格納するため、バッファ回路に
は、各OS対応のプレフィックス域先頭アドレスを保持
し、プレフィックス変換機能により、その先頭アドレス
を読み出し、その値によりプレフィックス変換を行う。
In the present invention, the input / output interrupt information is directly output to the OS that is allowed to directly execute the input / output control.
In order to store in the prefix area of the OS, the buffer circuit holds the prefix area start address corresponding to each OS, the prefix conversion function reads the start address, and performs the prefix conversion by the value.

なお、従来の仮想計算機では、どのOSからの入出力起
動に対しても、ハードウェアは入出力割込みの情報を一
旦、VMモニタのプレフィックス域へ格納して、プリフィ
ックス変換を行っていた。
In a conventional virtual machine, the hardware temporarily stores the input / output interrupt information in the prefix area of the VM monitor and performs the prefix conversion when the input / output is started by any OS.

〔実施例〕〔Example〕

以下、本発明の一実施例を図面により説明する。 An embodiment of the present invention will be described below with reference to the drawings.

第1図は、本発明の一実施例における電子計算機シス
テムの構成図、第2図は本発明の一実施例におけるバッ
ファ回路(FXB)の説明図、第3図は本発明の一実施例
における判定回路の構成図、第4図は本発明の一実施例
における入出力制御フローチャートである。
FIG. 1 is a block diagram of an electronic computer system in one embodiment of the present invention, FIG. 2 is an explanatory diagram of a buffer circuit (FXB) in one embodiment of the present invention, and FIG. 3 is a view of one embodiment of the present invention. FIG. 4 is a configuration diagram of the decision circuit, and FIG. 4 is an input / output control flowchart in one embodiment of the present invention.

本実施例の電子計算機システムは、第1図のように、
CPU1、主メモリ制御部2、チャネル制御部3、入出力装
置41,42、主メモリ5を備える。
As shown in FIG. 1, the electronic computer system of this embodiment is
A CPU 1, a main memory control unit 2, a channel control unit 3, input / output devices 41 and 42, and a main memory 5 are provided.

また、チャネル制御部3から送られる信号301,302,31
1,313は、それぞれ、データの主メモリ格納先アドレ
ス、主メモリ格納データ、VMID、直接実行指示を示す信
号である。
In addition, the signals 301, 302, 31 sent from the channel control unit 3
1, 313 are signals indicating a main memory storage destination address of data, main memory storage data, VMID, and a direct execution instruction, respectively.

また、主メモリ5は、特定領域50、VMモニタ域51、OS
#1用メモリ域52、およびOS#2用メモリ域53に分割さ
れ、特定領域50にはサブチャネル格納域500、VMモニタ
域51、およびOS#1用メモリ域52にはプリフィックス域
510、および520を備える。
Further, the main memory 5 includes a specific area 50, a VM monitor area 51, an OS
It is divided into a memory area 52 for # 1 and a memory area 53 for OS # 2, a subchannel storage area 500 for the specific area 50, a VM monitor area 51, and a prefix area for the memory area 52 for OS # 1.
Includes 510 and 520.

また、主メモリ制御部2は、入出力割込マスク制御回
路20、VMモニタ域での先頭アドレス保持回路21、プレフ
ィックス変換回路22、データ保持回路23、VMID保持回路
24、デコーダ回路25、バッファ回路(以下FXBと略す)2
6、ラッチ回路27,271,272,273、チェック回路28、判定
回路211、制御指示情報格納回路241、直接実行情報格納
回路261、OS用メモリ域での先頭アドレス保持回路262、
動作中表示子格納回路263、および割込み制御部2121を
備える。
The main memory control unit 2 also includes an input / output interrupt mask control circuit 20, a head address holding circuit 21 in the VM monitor area, a prefix conversion circuit 22, a data holding circuit 23, and a VMID holding circuit.
24, decoder circuit 25, buffer circuit (hereinafter abbreviated as FXB) 2
6, latch circuit 27, 271, 272, 273, check circuit 28, determination circuit 211, control instruction information storage circuit 241, direct execution information storage circuit 261, the start address holding circuit 262 in the OS memory area,
An operating indicator storage circuit 263 and an interrupt control unit 2121 are provided.

この制御指示情報格納回路241は、入出力装置41,42に
対し、VMID保持回路24が示す特定OSが直接制御すること
を許可されたことを示す直接実行指示信号313を格納す
る。
The control instruction information storage circuit 241 stores, in the input / output devices 41 and 42, the direct execution instruction signal 313 indicating that the specific OS indicated by the VMID holding circuit 24 is permitted to directly control.

なお、この情報は通常、主メモリ5の特定領域50にお
いて、入出力装置対応の情報を格納するサブチャネル格
納域500にVMIDと共に格納され、チャネル制御部3は入
出力起動時、サブチャネル格納域500から、この情報を
リードしておく。
It should be noted that this information is normally stored together with the VMID in the sub-channel storage area 500 that stores the information corresponding to the input / output device in the specific area 50 of the main memory 5, and the channel control unit 3 starts the input / output at the sub-channel storage area. Lead this information from 500.

また、バッファ回路26には、第2図のように、直接実
行情報格納回路261、先頭アドレス格納回路262、および
動作中表示子格納回路263が付加されている。
Further, as shown in FIG. 2, a direct execution information storage circuit 261, a head address storage circuit 262, and an operating indicator storage circuit 263 are added to the buffer circuit 26.

この直接実行情報格納回路261は直接実行指定ビット
Xにより、入出力制御の直接実行を許可されているか否
かを示す。
The direct execution information storage circuit 261 indicates by the direct execution designation bit X whether or not the direct execution of the input / output control is permitted.

また、先頭アドレス格納回路262には、当該OSのプレ
フィックス域先頭アドレスYYYが、各OSが認識するプレ
フィックス値で格納されている。
Further, the head address storage circuit 262 stores the prefix area head address YYY of the OS as a prefix value recognized by each OS.

さらに、動作中表示子格納回路263には、現在、当該O
Sが動作中か否かを示す動作中表示子Zが格納されてい
る。
Further, the operating indicator storage circuit 263 is currently
An in-operation indicator Z indicating whether or not S is in operation is stored.

また、ラッチ回路271,272,273は直接実行情報格納回
路261、先頭アドレス格納回路262、および動作中表示子
格納回路263からのデータをラッチする。
The latch circuits 271, 272, 273 directly latch the data from the execution information storage circuit 261, the head address storage circuit 262, and the operating indicator storage circuit 263.

また、判定回路211は、第3図のように、ANDゲート21
10〜2113,2115,2116,2210,2211、ORゲート2114,2119、
およびセレクタ2117,2118から構成され、ラッチ回路27
1,273、および制御指示情報格納回路241からの信号によ
り、プレフィックス域として先頭アドレス保持回路21の
内容を選択するか、あるいは、ラッチ回路272の内容を
選択するかを判定する。
Further, the determination circuit 211, as shown in FIG.
10 ~ 2113,2115,2116,2210,2211, OR gate 2114,2119,
And a selector circuit 2117, 2118.
1, 273 and a signal from the control instruction information storage circuit 241 determine whether the content of the head address holding circuit 21 or the content of the latch circuit 272 is selected as the prefix area.

すなわち、ラッチ回路271、および制御指示情報格納
回路241からの信号が共に入出力制御の直接実行を許可
し、かつ、ラッチ回路273により当該OS、例えばOS#1
が動作中であることが示されると、ラッチ回路272の内
容、つまり、OS#1メモリ領域52のプリフィックス域先
頭アドレスを選択する。
That is, both the signals from the latch circuit 271 and the control instruction information storage circuit 241 permit the direct execution of the input / output control, and the latch circuit 273 causes the OS, for example, OS # 1.
Is indicated to be operating, the contents of the latch circuit 272, that is, the prefix area start address of the OS # 1 memory area 52 is selected.

また、ラッチ回路271からの信号が不許可を示し、制
御指示情報格納回路241からの信号が許可を示していれ
ば、エラー報告を行う。
If the signal from the latch circuit 271 indicates non-permission and the signal from the control instruction information storage circuit 241 indicates permission, an error report is made.

さらに、ラッチ回路271、および制御指示情報格納回
路241からの信号が共に入出力制御の直接実行を許可
し、かつ、ラッチ回路273により当該OS#1が動作中で
ないことが示された場合、ラッチ回路271からの信号が
許可を示し、制御指示情報格納回路241からの信号が不
許可を示す場合、あるいは、それらの信号が共に不許可
を示す場合には、先頭アドレス保持回路21の内容を選択
するように制御する。
Further, when the signals from the latch circuit 271 and the control instruction information storage circuit 241 both permit direct execution of input / output control, and the latch circuit 273 indicates that the OS # 1 is not in operation, When the signal from the circuit 271 indicates permission and the signal from the control instruction information storage circuit 241 indicates non-permission, or when both of these signals indicate non-permission, the contents of the head address holding circuit 21 are selected. Control to do.

なお、入出力割込みの新PSWについては、OR回路2119
の内容がCPU1に送られ、OR回路2119が指定するプレフィ
ックス域からCPU1のPSWにロードされる。
For the new I / O interrupt PSW, see OR circuit 2119.
Is sent to the CPU1 and loaded into the PSW of the CPU1 from the prefix area specified by the OR circuit 2119.

また、プレフィックス変換回路22は、判定回路211に
より選択されたプレフィックス先頭アドレスを使用して
プレフィックス変換を行う。
The prefix conversion circuit 22 also performs prefix conversion using the prefix start address selected by the determination circuit 211.

また、割込み制御部2121は判定回路211から送られた
判定信号2120に従い、割込み処理を制御する。
Further, the interrupt control unit 2121 controls interrupt processing according to the determination signal 2120 sent from the determination circuit 211.

第4図は、本発明の一実施例における入出力割込み制
御のフローチャートである。
FIG. 4 is a flow chart of input / output interrupt control in one embodiment of the present invention.

本実施例の電子計算機では、入出力割込み原因が発生
すると(401)、チャネル制御部3から送られたVMIDに
基づき、バッファ回路の当該OS用エントリから直接実行
指定ビット、プレフィックス域(PXA)先頭アドレス、
および動作中表示子を読出す(402)。
In the computer of the present embodiment, when an input / output interrupt cause occurs (401), based on the VMID sent from the channel control unit 3, the direct execution designation bit and the prefix area (PXA) head from the OS entry of the buffer circuit. address,
And reading out the operating indicator (402).

次に、チャネル制御部3からの制御指示と当該OSの直
接実行指定とを比較し(403)、まず、当該OSが直接実
行を指示しているか否かを判定する(404)。
Next, the control instruction from the channel control unit 3 is compared with the direct execution designation of the OS (403), and first, it is determined whether or not the OS directs the direct execution (404).

その判定の結果(404)、直接実行が指示されていれ
ば、次に、チャネル制御部3からの指示が直接実行か否
かを判定する(405)。
As a result of the determination (404), if direct execution is instructed, then it is determined whether the instruction from the channel control unit 3 is direct execution (405).

その判定の結果(405)、チャネル制御部3からの指
示が直接実行であれば、次に当該OSは動作中か否かを判
定する(406)。
As a result of the determination (405), if the instruction from the channel control unit 3 is directly executed, it is next determined whether or not the OS is operating (406).

その判定の結果(406)、当該OSが動作中であれば、
そのプレフィックス域(PXA)先頭アドレスに基づいて
プレフィックス変換(PX変換)を行う(407)。
As a result of the determination (406), if the OS is operating,
Prefix conversion (PX conversion) is performed based on the prefix area (PXA) start address (407).

次に、そのプレプィックス域(PXA)に入出力割込み
情報を格納し(408)、そのプレフィックス域520内の新
PSWにより入出力割込み処理を実行する(409)。
Next, the I / O interrupt information is stored in the pre-pix area (PXA) (408) and the new information in the prefix area 520 is stored.
I / O interrupt processing is executed by PSW (409).

また、当該OSが直接実行を指示しているか否かを判定
した結果(404)、直接実行が指示されていなければ、
次に、チャネル制御部3からの指示が直接実行か否かを
判定する(410)。
In addition, as a result of determining whether the OS is directly instructing execution (404), if direct execution is not instructed,
Next, it is determined whether the instruction from the channel control unit 3 is directly executed (410).

その判定の結果(410)、チャネル制御部3からの指
示が直接実行であれば、エラー報告を行う。
As a result of the determination (410), if the instruction from the channel control unit 3 is directly executed, an error report is made.

また、その判定の結果(410)、チャネル制御部3か
らの指示が直接実行でなければ、仮想計算機の制御プロ
グラムのプレフィックス域(PXA)先頭アドレスに基づ
き、プレフィックス変換(PX変換)を行う(411)。
As a result of the determination (410), if the instruction from the channel control unit 3 is not directly executed, the prefix conversion (PX conversion) is performed based on the prefix area (PXA) start address of the control program of the virtual machine (411). ).

次に、そのプレフィックス域(PXA)に入力割込み情
報を格納して(412)、そのプレフィックス域の新PSWに
より入出力割込み処理を実行する(413)。
Next, the input interrupt information is stored in the prefix area (PXA) (412), and the input / output interrupt processing is executed by the new PSW in the prefix area (413).

なお、本実施例では、第5図の信号5312と同様の信号
が信号301と同一ラインで送られるが、プレフィックス
域へのアクセスでないため、プレフィックス変換回路22
でプレフィックス変換を受けることなく、チェック回路
28に入力されるパスを通る。
In this embodiment, a signal similar to the signal 5312 in FIG. 5 is sent on the same line as the signal 301, but since it is not an access to the prefix area, the prefix conversion circuit 22
Check circuit without undergoing prefix conversion in
Take the path entered at 28.

また、入出力割込み情報はチャネル制御部3から格納
される際、プレフィックス変換、およびアドレス加算さ
れているが、サブチャネル群が主メモリ5の特性領域50
に格納されている場合には、一旦、チャネル制御部3か
ら特定領域50のサブチャネル格納域500に格納し、CPU1
により入出力割込みが許可された時、サブチャネル格納
域500からVMID、および直接実行可ビットと共にCPU1等
により読み出し、アドレス変換パス(回路24〜28)を通
って、当該プレフィックス域に格納する方法を採る。
Further, when the input / output interrupt information is stored from the channel controller 3, the prefix conversion and the address addition are performed, but the sub-channel group is the characteristic area 50 of the main memory 5.
If it is stored in the sub-channel storage area 500 of the specific area 50 from the channel control unit 3, the CPU 1
When the input / output interrupt is enabled by, the CPU1 or the like reads the VMID from the sub-channel storage area 500 along with the directly executable bit, and stores it in the prefix area through the address translation path (circuits 24 to 28). take.

さらに、入出力割込マスク制御回路20は、入出力制御
の直接実行が許可されたOS毎に設定される。
Further, the input / output interrupt mask control circuit 20 is set for each OS for which direct execution of input / output control is permitted.

また、本実施例では、動作中表示子格納回路263、お
よびラッチ回路273により、当該OSが動作中である場合
のみ、当該OS用のプレフィックス域に入出力割込み情報
を格納することができるが、このような機能を持たない
場合には、ラッチ回路271、および制御指示情報格納回
路241の信号により、プレフィックス域の選択について
の判定を行う。つまり、それらの信号が共に入出力制御
の直接実行を許可していれば、ラッチ回路272の内容を
選択して、当該OS用のプレフィックス域に入出力割込み
情報を格納する。
Further, in this embodiment, the operating indicator storage circuit 263 and the latch circuit 273 can store the input / output interrupt information in the prefix area for the OS only when the OS is operating. When such a function is not provided, the selection of the prefix area is determined by the signals of the latch circuit 271 and the control instruction information storage circuit 241. That is, if both of these signals permit direct execution of input / output control, the contents of the latch circuit 272 are selected and the input / output interrupt information is stored in the prefix area for the OS.

〔発明の効果〕〔The invention's effect〕

本発明によれば、入出力割込み時に、入出力処理を要
求したOSのプレフィックス域に入出力割込み情報を直接
格納できるため、VMモニタによる仲介が不要となり、入
出力割込みのオーバーヘッドを減少することが可能であ
る。
According to the present invention, at the time of an input / output interrupt, the input / output interrupt information can be directly stored in the prefix area of the OS requesting the input / output processing. Therefore, the mediation by the VM monitor is unnecessary, and the overhead of the input / output interrupt can be reduced. It is possible.

【図面の簡単な説明】[Brief description of drawings]

第1図は、本発明の一実施例における電子計算機システ
ムの構成図、第2図は本発明の1実施例におけるFXBの
説明図、第3図は本発明の一実施例における判定回路の
構成図、第4図は本発明の一実施例における入出力制御
フローチャート、第5図は従来の電子計算機システムの
構成図、第6図は従来のFXBの説明図である。 1,501:CPU,2,502:主メモリ制御部,3,503:チャネル制御
部,5,505:主メモリ,20:入出力割込マスク制御回路,21,5
21:先頭アドレス保持回路(VMモニタ域),22,522:プレ
フィックス変換回路,23,523:データ保持回路,24,524:VM
ID保持回路,25,525:デコーダ回路,26,526:バッファ回路
(FXB),27,271,272,273,527:ラッチ回路,28,528:チェ
ック回路,41,42,541,542:入出力装置,50:特定領域,51,5
51:VMモニタ域,52,552:OS#1用メモリ域,53,553:OS#
2用メモリ域,211:判定回路,241:制御指示情報格納回
路,261:直接実行情報格納回路,262:先頭アドレス保持回
路(OS用メモリ域),263:動作中表示子格納回路,301,30
2,311,5301,5302,5311,5312:信号,313:直接実行指示信
号,2120:判定信号,500:サブチャネル格納域,510,5510:V
Mモニタ域のプレフィックス域(PXA),520,5520,5530:O
S用メモリ域のプレフィックス域(PXA),2121:割込み制
御部,2110〜2113,2115,2116,2210,2211:ANDゲート,211
4,2119:ORゲート,2117,2118:セレクタ,5521:チャネルプ
ログラム格納域,AAA:先頭アドレス,UUU:リミットアドレ
ス,X:直接実行指定ビット,YYY:当該OSのプレフィックス
域先頭アドレス,Z:動作中表示子。
FIG. 1 is a configuration diagram of an electronic computer system in one embodiment of the present invention, FIG. 2 is an explanatory diagram of FXB in one embodiment of the present invention, and FIG. 3 is a configuration of a determination circuit in one embodiment of the present invention. FIG. 4, FIG. 4 is an input / output control flowchart in one embodiment of the present invention, FIG. 5 is a block diagram of a conventional computer system, and FIG. 6 is an explanatory diagram of a conventional FXB. 1,501: CPU, 2,502: Main memory controller, 3,503: Channel controller, 5,505: Main memory, 20: I / O interrupt mask control circuit, 21,5
21: Start address holding circuit (VM monitor area), 22,522: Prefix conversion circuit, 23,523: Data holding circuit, 24,524: VM
ID holding circuit, 25,525: Decoder circuit, 26,526: Buffer circuit (FXB), 27,271,272,273,527: Latch circuit, 28,528: Check circuit, 41,42,541,542: Input / output device, 50: Specific area, 51,5
51: VM monitor area, 52,552: Memory area for OS # 1, 53,553: OS #
2 memory area, 211: judgment circuit, 241: control instruction information storage circuit, 261: direct execution information storage circuit, 262: start address holding circuit (OS memory area), 263: operating indicator storage circuit, 301, 30
2,311,5301,5302,5311,5312: Signal, 313: Direct execution instruction signal, 2120: Judgment signal, 500: Sub channel storage area, 510, 5510: V
M monitor area prefix area (PXA), 520,5520,5530: O
Prefix area (PXA) of S memory area, 2121: Interrupt controller, 2110 to 2113, 2115, 2116, 2210, 2211: AND gate, 211
4,2119: OR gate, 2117, 2118: Selector, 5521: Channel program storage area, AAA: Start address, UUU: Limit address, X: Direct execution designation bit, YYY: Prefix area start address of the OS, Z: Operation Middle indicator.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 魚住 栄市 神奈川県横須賀市武1丁目2356番地 日 本電信電話株式会社情報通信処理研究所 内 (56)参考文献 特開 昭62−31437(JP,A) 特開 昭61−240333(JP,A) ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Sakae Uozumi, City of Takeshi 1-2356, Yokosuka City, Kanagawa Nihon Telegraph and Telephone Corporation (56) Reference JP-A-62-31437 (JP, A) JP-A-61-240333 (JP, A)

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】入出力装置と、主メモリと、仮想計算機の
制御プログラム、および各オペレーティング・システム
に対応して割当てられた主メモリ領域を示すアドレス情
報を格納する手段とを備え、該主メモリを分割して、各
オペレーティング・システム対応に連続域を割当て、か
つ、該領域内には各オペレーティング・システムが使用
するプレフィックス域を割当てて、仮想計算機の制御を
行う電子計算機において、上記アドレス情報格納手段に
は、上記オペレーテイング・システム毎に入出力制御の
直接実行を指定する情報を格納する手段、および、各オ
ペレーティング・システムのプレフィックス域の先頭ア
ドレスを格納する手段を設け、かつ、上記入出力装置対
応に特定オペレーティング・システムによる入出力制御
の直接実行を指定する情報を保持する手段、該直接実行
指定情報格納手段からのデータをラッチする手段、該先
頭アドレス格納手段からのデータをラッチする手段、お
よび、該直接実行指定情報ラッチ手段と該直接実行指定
情報保持手段の信号により、該オペレーティング・シス
テムのプレフィックス域の選択を判定する手段を設け
て、該入出力装置から入出力割込みがあると、該オペレ
ーティング・システム毎の直接実行指定情報、および該
入出力装置対応の直接実行指定情報が共に直接実行を指
示した場合のみ、入出力割込み情報は当該オペレーティ
ング・システム用のプレフィックス域に直接格納し、ま
た、該入出力装置対応の直接実行指定情報が直接実行を
指示し、かつ、該オペレーティング・システム毎の直接
実行指定情報が直接実行を指示しない場合、あるいは、
該情報の両方とも直接実行を指示しない場合には、上記
制御プログラム用のプレフィックス域で入出力割込みの
制御を行い、また、該入出力装置対応の直接実行指定情
報が直接実行を指示せず、かつ、該オペレーティング・
システム毎の直接実行指定情報が直接実行を指示する場
合には、入出力割込み制御を行わず、エラーとして報告
することを特徴とする仮想計算機における入出力割込み
制御方式。
1. An input / output device, a main memory, a control program for a virtual machine, and means for storing address information indicating a main memory area allocated corresponding to each operating system. In the electronic computer that controls the virtual computer by dividing the partition into a continuous area for each operating system and allocating a prefix area used by each operating system in the area, storing the address information. The means is provided with means for storing information designating direct execution of input / output control for each operating system, and means for storing the start address of the prefix area of each operating system, and the input / output Direct I / O control by a specific operating system is specified for the device. Information holding means, means for latching data from the direct execution designation information storage means, means for latching data from the head address storage means, and direct execution designation information latch means and the direct execution designation information A means for judging the selection of the prefix area of the operating system is provided by the signal of the holding means, and when there is an input / output interrupt from the input / output device, direct execution designation information for each operating system and the input / output. The input / output interrupt information is directly stored in the prefix area for the operating system only when the direct execution specification information corresponding to the device both direct execution, and the direct execution specification information corresponding to the input / output device is directly executed. And the direct execution designation information for each operating system does not instruct direct execution. If or,
If both of the information do not instruct direct execution, the I / O interrupt is controlled in the prefix area for the control program, and the direct execution designation information corresponding to the input / output device does not instruct direct execution. And the operating system
An I / O interrupt control method in a virtual machine characterized by not performing I / O interrupt control and reporting as an error when direct execution designation information for each system directs execution.
【請求項2】上記アドレス情報格納手段には、当該オペ
レーティング・システムが動作中か否かを示す表示子を
格納する手段を備え、上記オペレーティング・システム
毎の直接実行指定情報、および入出力装置対応の直接実
行指定情報が共に直接実行を指示し、かつ、当該オペレ
ーティング・システムが動作中でない場合には、上記制
御プログラム用のプレフィックス域に入出力割込み情報
を格納して、該プレフィックス域の入出力割込みの新プ
ログラム状態語により、入出力割込み制御を行い、ま
た、該オペレーティング・システム毎の直接実行指定情
報、および入出力装置対応の直接実行指定情報が共に直
接実行を指示し、かつ、当該オペレーティング・システ
ムが動作中である場合のみ、当該オペレーティング・シ
ステム用のプレフィックス域に入出力割込み情報を格納
して、該プレフィックス域の入出力割込みの新プログラ
ム状態語に基づき、入出力割込み処理を行うことを特徴
とする特許請求範囲第1項記載の仮想計算機における入
出力割込み制御方式。
2. The address information storage means includes means for storing an indicator indicating whether or not the operating system is in operation, and direct execution designation information for each operating system and input / output device correspondence. If both of the direct execution specification information of # 1 and # 2 indicate direct execution and the operating system is not operating, the input / output interrupt information is stored in the prefix area for the control program, and the input / output of the prefix area is stored. I / O interrupt control is performed by the new program status word of the interrupt, and direct execution designation information for each operating system and direct execution designation information corresponding to the input / output device both direct execution, and Prefix for the operating system only if the system is running The input / output interrupt information is stored in the queue area, and the input / output interrupt processing is performed based on the new program status word of the input / output interrupt in the prefix area. Output interrupt control method.
JP17410987A 1987-07-13 1987-07-13 Input / output interrupt control method in virtual machine Expired - Fee Related JP2517977B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17410987A JP2517977B2 (en) 1987-07-13 1987-07-13 Input / output interrupt control method in virtual machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17410987A JP2517977B2 (en) 1987-07-13 1987-07-13 Input / output interrupt control method in virtual machine

Publications (2)

Publication Number Publication Date
JPS6417130A JPS6417130A (en) 1989-01-20
JP2517977B2 true JP2517977B2 (en) 1996-07-24

Family

ID=15972804

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17410987A Expired - Fee Related JP2517977B2 (en) 1987-07-13 1987-07-13 Input / output interrupt control method in virtual machine

Country Status (1)

Country Link
JP (1) JP2517977B2 (en)

Also Published As

Publication number Publication date
JPS6417130A (en) 1989-01-20

Similar Documents

Publication Publication Date Title
US4860190A (en) Computer system for controlling virtual machines
US4272819A (en) Inter-subsystem direct transfer system
US5109489A (en) I/o execution method for a virtual machine system and system therefor
US4408274A (en) Memory protection system using capability registers
US4347565A (en) Address control system for software simulation
US4881170A (en) Instruction prefetch control apparatus
US3909798A (en) Virtual addressing method and apparatus
EP0116591A1 (en) Multiprocessor system for handling interprocessor calls.
US5802347A (en) Emulator with function for detecting illegal access to special function register
US5392409A (en) I/O execution method for a virtual machine system and system therefor
US5404477A (en) Extended memory address conversion and data transfer control system
US5749093A (en) Enhanced information processing system using cache memory indication during DMA accessing
US5890220A (en) Address conversion apparatus accessible to both I/O devices and processor and having a reduced number of index buffers
US6128714A (en) Method of processing a data move instruction for moving data between main storage and extended storage and data move instruction processing apparatus
JP2517977B2 (en) Input / output interrupt control method in virtual machine
EP0285309A2 (en) Memory protection apparatus for use in an electronic calculator
JPS6022250A (en) Computer equipment
JPS6031647A (en) Data processor
JPS6037932B2 (en) Cache memory control method
KR960004059B1 (en) Asynchronous memory system access method
KR0164725B1 (en) Cache memory
JPH0754469B2 (en) Input / output instruction execution unit for virtual computer system
JP2632859B2 (en) Memory access control circuit
JPH0659919A (en) Computer system
JPS61267149A (en) Data processor

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees