JPS61240333A - Input and output interruption processing system - Google Patents

Input and output interruption processing system

Info

Publication number
JPS61240333A
JPS61240333A JP60081875A JP8187585A JPS61240333A JP S61240333 A JPS61240333 A JP S61240333A JP 60081875 A JP60081875 A JP 60081875A JP 8187585 A JP8187585 A JP 8187585A JP S61240333 A JPS61240333 A JP S61240333A
Authority
JP
Japan
Prior art keywords
interruption
interrupt
input
virtual computer
signal
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
JP60081875A
Other languages
Japanese (ja)
Inventor
Saburo Kaneda
三郎 金田
Kazuaki Murakami
村上 和彰
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP60081875A priority Critical patent/JPS61240333A/en
Publication of JPS61240333A publication Critical patent/JPS61240333A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce the overhead due to the simulation of a virtual computer program by applying a direct interruption to the virtual computer in case the virtual computer at the receiver side of an interruption request and this interruption is permitted. CONSTITUTION:The discriminating information of an interruption receiver VM is designated to a central processing unit 23 from a channel processor 24 via a signal line 10 in an input/output interruption request process to a virtual computer VM system. The discriminating information on the VM which is under execution is held in a register 11 by an input/output start instruction. A comparator 12 compares the information on the register 11 with the information sent from the line 10. When the coincidence is obtained from this comparison, the comparator 12 supplies the coincidence signal to an AND gate 14. While the interruption request signal 17 given from the processor 24 is supplied to an interruption reception circuit 13 together with the interruption reception signal held in an interruption mask register 16. When the coincidence is obtained between both signals, the circuit 13 sends an interruption permitting signal to the gate 14. Thus the gate 14 is opened and the interruption signal is applied directly to a VM area 26 of a main storage device 21 via an interruption control part 15.

Description

【発明の詳細な説明】 〔概 要〕 仮想計算機に対する入出力割込の処理方式である。割込
要求先の仮想計算機が実行中で、且つその割込を許可す
る状態の場合には、仮想計算機制御プログラムの処理を
介すことなく、その仮想計算機に対して、直接に割込を
発生する手段を設ける。
[Detailed Description of the Invention] [Summary] This is an input/output interrupt processing method for a virtual machine. If the virtual machine that is the interrupt request destination is running and is in a state that allows interrupts, an interrupt is generated directly to that virtual machine without going through the processing of the virtual machine control program. Provide means to do so.

〔産業上の利用分野〕[Industrial application field]

本発明は、仮想計算機を実行する、計算機システムにお
いて、仮想計算機が発行した入出力処理要求に対する入
出力割込の処理方式に関する。
The present invention relates to an input/output interrupt processing method for an input/output processing request issued by a virtual machine in a computer system that executes a virtual machine.

計算機システムにおいて、仮想計算機制御プログラムの
制御下に、該計算機システム(以下において、実計算機
システムという)とは別の計算機システムを、仮想的に
稼動させるようにした、計算機利用方式が、仮想計算機
方式として知られている。
In a computer system, a computer usage method in which a computer system different from the computer system (hereinafter referred to as the actual computer system) is operated virtually under the control of a virtual computer control program is a virtual computer method. known as.

仮想計算機システムでは、実計算機システムの資源を制
御する場合には、複数の仮想計算機システム間の干渉を
避け、又実計算機と仮想計算機と間の異なる装置アドレ
スの変換等をするために、仮想計算機の実行が、仮想計
算機制御プログラムを仲介して進められる部分があり、
そのような部分の処理の高速化が、仮想計算機の処理効
率上重要である。
In a virtual computer system, when controlling the resources of a real computer system, in order to avoid interference between multiple virtual computer systems and to convert different device addresses between the real computer and the virtual computer, it is necessary to There is a part where the execution proceeds through the virtual machine control program,
Speeding up the processing of such parts is important for the processing efficiency of the virtual machine.

〔従来の技術と発明が解決しようとする問題点〕第2図
は計算機システムの一構成例を示すブロック図である。
[Prior art and problems to be solved by the invention] FIG. 2 is a block diagram showing an example of the configuration of a computer system.

図において、1は主記憶装置、2は記憶制御装置、3は
中央処理装置、4はチャネル処理装置であり、記憶制御
装置2は中央処理装置3及びチャネル処理装置4の、主
記憶装置1へのアクセスを制御し、又中央処理装置3及
びチャネル処理装置40間の制御情報を中継する。
In the figure, 1 is a main storage device, 2 is a storage control device, 3 is a central processing unit, and 4 is a channel processing device. It also relays control information between the central processing unit 3 and the channel processing unit 40.

チャネル処理装置4は、一般に複数のチャネル装置をそ
の下に接続して共通に制御し、各チャネル装置には、各
種入出力装置が接続される。
The channel processing device 4 generally controls a plurality of channel devices connected thereunder in common, and various input/output devices are connected to each channel device.

仮想計算機システムの一方式において、例えば一定時間
ごとに発生するように設定された割込により、中央処理
装置3で起動される仮想計算機制御プログラム(以下に
、VMモニタという)が、制御下の仮想計算機(以下に
、VMという)の1つを選択して、制御を渡すことによ
り、該VMの実行が開始される。
In one type of virtual computer system, a virtual computer control program (hereinafter referred to as VM monitor) that is started in the central processing unit 3 by an interrupt set to occur at regular intervals, for example, controls the virtual computer under control. By selecting one of the computers (hereinafter referred to as VM) and passing control, execution of the VM is started.

VMモニタは、VMへ制御を移行するとき、中央処理装
置3の、所定のI IIJ御レジスタに、そのVMの識
別情報を設定する。識別情報は、同時にそのシステムに
存在する各VMを特定するように、VMモニタが各VM
にユニークに割り当てる情報(例えば番号)である。
When transferring control to a VM, the VM monitor sets identification information of the VM in a predetermined IIIJ control register of the central processing unit 3. The identification information is used by the VM monitor to identify each VM that exists in the system at the same time.
This is information (for example, a number) that is uniquely assigned to a user.

VMの実行中に、入出力起動命令が読み出されると、公
知のように、入出力起動命令の実行として、そのVMの
識別情報によって定まる制御表により、VM上の入出力
装置アドレスを実計算機上の入出力装置アドレスに変換
し、又VMの領域にあるチャネルアドレス語を、実計算
機のチャネルアドレス語領域に転送し、以後通常のシス
テムにおける入出力起動命令の実行と同様にして、チャ
ネル処理装置4へ通知される。
When an input/output activation instruction is read during execution of a VM, as is well known, as the execution of the input/output activation instruction, the input/output device address on the VM is transferred to the actual computer using a control table determined by the identification information of the VM. Also, the channel address word in the VM area is transferred to the channel address word area of the real computer, and from then on, the channel processing device 4 will be notified.

チャネル処理装置4は、入出力起動命令を認識すると、
通常のようにチャネルアドレス語を読み出して、入出力
起動処理を開始する。
When the channel processing device 4 recognizes the input/output activation command,
Read the channel address word as usual and begin the I/O activation process.

入出力動作の完了等による、チャネル処理装置4から中
央処理装置3への割込要求は、中央処理装置3の割込制
御機構によって、実計算機の割込として制御されるので
、公知の機構によって、主記憶装置1の所定領域にある
、ギヤネル状態語(以下に、C8Wという)に、チャネ
ル処理装置4から転送される入出力装置アドレス及びそ
の他の状態情報を設定し、入出力割込用のプログラム状
態語(以下に、pswという)が中央処理装置3にセッ
トされることにより、VMモニタの入出力割込処理ルー
チンに制御が漱る。
An interrupt request from the channel processing device 4 to the central processing unit 3 due to the completion of an input/output operation, etc. is controlled by the interrupt control mechanism of the central processing unit 3 as an interrupt of the actual computer, so it can be handled by a known mechanism. , the input/output device address and other status information transferred from the channel processing device 4 are set in the Gyanel status word (hereinafter referred to as C8W) in a predetermined area of the main storage device 1, and the input/output device address for input/output interrupts is set. By setting the program status word (hereinafter referred to as psw) in the central processing unit 3, control is concentrated on the input/output interrupt processing routine of the VM monitor.

VMモニタの該当ルーチンは、例えば割込要求元の入出
力装置アドレスによって、該入出力装置を割り当てられ
ているVMを識別し、そのVMが実行中であって、VM
の割込マスクが割込許可状態であった場合には、そのV
Mの記憶領域にあるCSWに前記の実計算機のC8Wを
転送し、要すれば入出力・装置アドレスをVM上の入出
力装置アドレスに変換し、VMの入出力割込用のPSW
を中央処理装置3にセットすることにより、VM上に入
出力割込をシミュレートする。
The corresponding routine of the VM monitor identifies the VM to which the input/output device is assigned, for example, based on the input/output device address of the interrupt request source, and if the VM is running and the VM
If the interrupt mask is in the interrupt enabled state, the V
Transfer the C8W of the actual computer to the CSW in the storage area of M, convert the input/output/device address to the input/output device address on the VM if necessary, and transfer the PSW for VM's input/output interrupt.
By setting this in the central processing unit 3, an input/output interrupt is simulated on the VM.

前記で識別したVMが、実行中でなかった場合等には、
例えばC8Wの内容を割込待ち行列に接続して、VMモ
ニタの割込処理を終わる。
If the VM identified above is not running,
For example, the contents of C8W are connected to the interrupt queue, and the interrupt processing of the VM monitor is completed.

割込待ち行列にある割込は、VMモニタが、例えばVM
を切り換えるとき、及びVMで割込マスクを更新する特
権命令を実行したとき等に走査し、主記憶装置lにロー
ドされている、実行可能なVMへの割込があれば、前記
に準じた制御により、VMへの割込をシミュレートする
Interrupts in the interrupt queue can be accessed by the VM monitor, e.g.
If there is an interrupt to an executable VM that is scanned and loaded into the main memory when switching the VM or executing a privileged instruction to update the interrupt mask in the VM, the above procedure will be applied. The control simulates an interrupt to the VM.

以上の従来の制御方式によれば、入出力割込要求が発生
するごとに、VMモニタによる割込シミュレーションが
必要であり、VMモニタによるオーバヘッドの大きな要
因になる、 〔問題点を解決するための手段〕 第1図は、本発明の構成を示すブロック図であり1.2
1は主記憶装置、22は記憶制御装置、23は中央処理
装置、24はチャネル処理装置である。
According to the conventional control method described above, it is necessary to simulate the interrupt using the VM monitor every time an input/output interrupt request occurs, which is a major cause of the overhead caused by the VM monitor. Means] FIG. 1 is a block diagram showing the configuration of the present invention, and 1.2
1 is a main storage device, 22 is a storage control device, 23 is a central processing unit, and 24 is a channel processing device.

10は、入出力割込要求において、チャネル処理装置2
4からVM識別情報を指定する信号線、11は実行中の
VMの識別情報を保持するレジスタであり、比較器12
は、再識別情報の内容を比較して、一致信号を出力する
10, in the input/output interrupt request, the channel processing device 2
4 is a signal line specifying VM identification information, 11 is a register that holds identification information of the VM being executed, and a comparator 12
compares the contents of the re-identification information and outputs a matching signal.

13は割込受付回路であり、例えばチャネル装置ごとの
割込要求を表示する割込要求線17と、割込マスクレジ
スタ16の内容により、受付可否の決定を出力する。
Reference numeral 13 denotes an interrupt acceptance circuit, which outputs a decision as to whether acceptance is possible or not based on, for example, an interrupt request line 17 that displays an interrupt request for each channel device, and the contents of an interrupt mask register 16.

14は比較器12と割込受付回路13との出力の論理積
出力によって、割込制御部15を起動する。
14 activates the interrupt control section 15 based on the AND output of the outputs of the comparator 12 and the interrupt acceptance circuit 13.

割込受付部15は所定の割込処理を実行する。The interrupt reception unit 15 executes predetermined interrupt processing.

〔作用〕[Effect]

前記と同様にして、入出力起動命令の実行により、中央
処理装置23からチャネル処理装置24へ、入出力動作
の起動が指令される。このとき、その命令を実行したV
Mの識別情報がレジスタ11から、チャネル処理装置2
4へ転送されて、保持されているものとする。
Similarly to the above, by executing the input/output activation command, the central processing unit 23 instructs the channel processing device 24 to activate the input/output operation. At this time, the V that executed the instruction
The identification information of M is sent from the register 11 to the channel processing device 2.
4 and is retained.

チャネル処理装置24は、入出力割込要求において、通
常のように割込要求線17の、要求チャネル装置に該当
する信号をオンにすると共に、信号線10に割込先VM
の識別情報を送出する。
In response to an input/output interrupt request, the channel processing device 24 turns on the signal corresponding to the requesting channel device on the interrupt request line 17 as usual, and also sends the interrupt destination VM to the signal line 10.
Sends identification information.

割込マスクレジスタ16とレジスタ11の識別情報が、
割込要求条件に一致した場合に、割込制御部15が起動
され、実行中のVMに割込を発生させる。
The identification information of the interrupt mask register 16 and register 11 is
When the interrupt request conditions are met, the interrupt control unit 15 is activated and causes the VM being executed to generate an interrupt.

以上により、実行中のVMへの入出力割込は、VMモニ
タを介さずに、直接割込が起こるので、割込シミュレー
ションによるオーバヘッドが除かれる。このように実行
中のVMに入出力割込要求が発生する機会は多いので、
以上の制御により、VMシステムの性能を改善すること
ができる。
As described above, since an input/output interrupt to a running VM occurs directly without going through the VM monitor, overhead due to interrupt simulation is eliminated. In this way, there are many opportunities for input/output interrupt requests to occur in the running VM, so
The above control can improve the performance of the VM system.

〔実施例〕〔Example〕

第1図のレジスタ11には、VMの実行開始時に、その
識別情報が、VMモニタによってセットされている。
Identification information is set in the register 11 in FIG. 1 by the VM monitor when the VM starts executing.

又、割込マスクレジスタ16は、公知のように、例えば
制御レジスタの1つを割り当てて、チャネル装置対応の
ビットにより、該チャネル装置からの割込の受付を制御
するものであり、実行中のVMの制御プログラムによっ
てセットされる。
Further, as is well known, the interrupt mask register 16 is used to allocate, for example, one of the control registers and control acceptance of interrupts from the channel device using bits corresponding to the channel device. Set by the VM's control program.

本発明により、実計算機ではなく、VMの割込マスクが
、実際に割込マスクレジスタ16に保持されて、割込受
付を制御する。
According to the present invention, the interrupt mask of the VM, not the actual computer, is actually held in the interrupt mask register 16 to control interrupt acceptance.

割込要求の発生において、割込要求線17に、割込要求
チャネル装置を示す信号が上げられる。
Upon generation of an interrupt request, a signal indicating the interrupt request channel device is raised on the interrupt request line 17.

割込受付回路13は、割込要求線17の信号と、割込マ
スクレジスタ16の内容とを照合して、要求チャネル装
置が割込許可状態であれば、論理積ゲート14ヘオン信
号を出力する。
The interrupt reception circuit 13 compares the signal on the interrupt request line 17 with the contents of the interrupt mask register 16, and outputs a signal to the AND gate 14 if the request channel device is in an interrupt enabled state. .

比較器12は、レジスタ11の識別情報と、信号線10
で入力される識別情報とを比較し、一致したとき論理積
ゲート14ヘオン信号を出力し、論理積ゲート14の再
入力がオンであると、その出力により、割込制御部15
が起動される。
The comparator 12 uses the identification information of the register 11 and the signal line 10.
When the identification information input in the AND gate 14 is on, the AND gate 14 outputs a heon signal.
is started.

割込制御部15は、通常の割込と同様に、チャネル処理
装置24から転送される情報により、主記憶装置21上
のCSWを設定し、入出力割込用のPSWを主記憶装置
21から中央処理装置25の各レジスタにロードするこ
とにより、割込を実行する。
As with normal interrupts, the interrupt control unit 15 sets the CSW on the main storage device 21 based on the information transferred from the channel processing device 24, and transfers the PSW for input/output interrupts from the main storage device 21. An interrupt is executed by loading each register of the central processing unit 25.

但し、この場合において、対象とすべきC8W及びPS
Wは、実計算機(即ちVMモニタ)のそれらではなく、
実行中のVMのcsw、pswになるように、割込制御
部15は、アドレス変換機構25によって、アクセスア
ドレスを変換し、主記憶装置21の、現実行中のVMの
vM領域26内にあるC8W%pswにアクセスする。
However, in this case, the target C8W and PS
W is not those of the real computer (i.e. VM monitor),
The interrupt control unit 15 uses the address translation mechanism 25 to convert the access address so that it becomes the csw and psw of the currently executing VM, and the address is in the vM area 26 of the currently executing VM in the main storage device 21. Access C8W%psw.

従って、VMのPSWがロードされて、VMの入出力割
込処理ルーチンが開始され、即ちVMへの直接割込が行
われる。
Therefore, the VM's PSW is loaded and the VM's I/O interrupt handling routine is initiated, ie, a direct interrupt to the VM is made.

アドレス変換機構25は、仮想記憶方式における、公知
の変換機構でよく、例えばVM領領域先頭の主記憶アド
レスを加算することにより、変換が実行される。
The address conversion mechanism 25 may be a known conversion mechanism in a virtual storage system, and the conversion is executed, for example, by adding the main memory address at the beginning of the VM area.

以上により、入出力割込要求の割込先VMが実行中で、
且つ要求元チャネル装置の割込を許可する状態の場合に
、割込が直接そのVMへ実行されるが、入出力割込が、
前記のようにして実行されない場合には、例えば、割込
情報を前記の従来の場合と同様の割込待ち行列に接続し
、後刻VMモニタが割込をシミュレートする。
As a result of the above, the interrupt destination VM of the input/output interrupt request is running,
If the request source channel device is in a state that allows interrupts, the interrupt is executed directly to that VM, but the input/output interrupt is
If it is not executed as described above, for example, the interrupt information is connected to an interrupt queue similar to the conventional case described above, and the VM monitor simulates the interrupt at a later time.

このために、入出力割込要求があり、前記の割込条件を
満足しないことを条件として、割込待ち処理部27を起
動し、従来と同様に、VMモニタ領域の所定アドレスに
ある討込待ち行列28に、この割込要求を接続する。
For this purpose, if there is an input/output interrupt request and the above-mentioned interrupt conditions are not satisfied, the interrupt wait processing unit 27 is activated, and as in the past, the input/output interrupt request at a predetermined address in the VM monitor area is Connect this interrupt request to queue 28.

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

以上の説明から明らかなように、本発明によれば、計算
機システムにおける、VMに対する入出力割込を、VM
モニタを介さずに直接実行することが可能になるので、
VMモニタの割込シミュレーションによるオーバヘッド
が減少し、7Mシステムの性能を改善するという著しい
工業的効果がある。
As is clear from the above description, according to the present invention, input/output interrupts to a VM in a computer system are handled by a VM.
Since it is possible to execute directly without using a monitor,
There is a significant industrial effect in that the overhead due to interrupt simulation of the VM monitor is reduced and the performance of the 7M system is improved.

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

第1図は本発明の実施例構成ブロック図、第2図は計算
機システムの一構成例ブロック図である。 図において、 1.21は主記憶装置、  2.22は記憶制御装置、
3.23は中央処理装置、 4.24はチャネル処理装
置、10は信号線、     11はレジスタ、12は
比較器、     13は割込受付回路、15は割込制
御部、   16は割込マスクレジスタ、17は割込要
求線、   25はアドレス変換機構、27は割込待ち
処理部 拳2叫
FIG. 1 is a block diagram of an embodiment of the present invention, and FIG. 2 is a block diagram of an example of the configuration of a computer system. In the figure, 1.21 is the main storage device, 2.22 is the storage control device,
3.23 is a central processing unit, 4.24 is a channel processing unit, 10 is a signal line, 11 is a register, 12 is a comparator, 13 is an interrupt reception circuit, 15 is an interrupt control unit, 16 is an interrupt mask register , 17 is an interrupt request line, 25 is an address conversion mechanism, and 27 is an interrupt wait processing unit.

Claims (1)

【特許請求の範囲】 仮想計算機システムの入出力割込要求処理において、 割込先仮想計算機の識別情報を指定する、識別情報指定
手段(10)、 実行中の仮想計算機の識別情報を表示する、識別情報表
示手段(11)、 該識別情報指定手段(10)と、該識別情報表示手段(
11)との識別情報の比較手段(12)、該比較手段(
12)が一致を検出したことと、該仮想計算機が該割込
を許可する状態であることとを識別して、該仮想計算機
に対する割込を発生する手段(13、14、15、16
)を有することを特徴とする入出力割込処理方式。
[Scope of Claims] In input/output interrupt request processing of a virtual computer system, an identification information specifying means (10) for specifying identification information of an interrupt destination virtual computer; displaying identification information of a virtual computer being executed; Identification information display means (11), said identification information designation means (10), and said identification information display means (
11), means (12) for comparing identification information with
12) means (13, 14, 15, 16) for generating an interrupt for the virtual computer by identifying that a match has been detected and that the virtual computer is in a state that permits the interrupt;
).
JP60081875A 1985-04-17 1985-04-17 Input and output interruption processing system Pending JPS61240333A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60081875A JPS61240333A (en) 1985-04-17 1985-04-17 Input and output interruption processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60081875A JPS61240333A (en) 1985-04-17 1985-04-17 Input and output interruption processing system

Publications (1)

Publication Number Publication Date
JPS61240333A true JPS61240333A (en) 1986-10-25

Family

ID=13758631

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60081875A Pending JPS61240333A (en) 1985-04-17 1985-04-17 Input and output interruption processing system

Country Status (1)

Country Link
JP (1) JPS61240333A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01283643A (en) * 1988-05-11 1989-11-15 Hitachi Ltd Input/output control system for virtual computer system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01283643A (en) * 1988-05-11 1989-11-15 Hitachi Ltd Input/output control system for virtual computer system

Similar Documents

Publication Publication Date Title
US4860190A (en) Computer system for controlling virtual machines
US5553291A (en) Virtual machine control method and virtual machine system
AU613823B2 (en) Virtual computer system having improved input/output interrupt control
KR930008265B1 (en) Input-output control method in a virtual machine system
US5499379A (en) Input/output execution apparatus for a plural-OS run system
US4494189A (en) Method and means for switching system control of CPUs
US4318174A (en) Multi-processor system employing job-swapping between different priority processors
JPS61202269A (en) Data processing system
JP2870254B2 (en) Virtual machine I / O interrupt handling method
EP0290942B1 (en) Guest machine execution control system for virtual machine system
JPS61240333A (en) Input and output interruption processing system
JPS6049352B2 (en) data processing equipment
JPS61184643A (en) Starting control system for virtual computer
JPH09282196A (en) Program run control system for complex logic processor system
JPS5819094B2 (en) Priority vector interrupt device
JP2638078B2 (en) Information processing device
JP2864496B2 (en) Multi-processing computer
JPS63269237A (en) Microcomputer developing device
JPH0444131A (en) Device and method for execution of inter-processor communication in plural os running systems
JPH07141210A (en) Virtual computer processor
JPH0290331A (en) Inter-processor communication instruction processor for virtual computer system
JPS62217326A (en) Computer capable of storing and switching plural os
JPH0772874B2 (en) Interrupt receiving device
JPS61285565A (en) Load decentralized data processor
JPH0417530B2 (en)