JPH0695314B2 - Virtual computer system - Google Patents
Virtual computer systemInfo
- Publication number
- JPH0695314B2 JPH0695314B2 JP63181288A JP18128888A JPH0695314B2 JP H0695314 B2 JPH0695314 B2 JP H0695314B2 JP 63181288 A JP63181288 A JP 63181288A JP 18128888 A JP18128888 A JP 18128888A JP H0695314 B2 JPH0695314 B2 JP H0695314B2
- Authority
- JP
- Japan
- Prior art keywords
- interrupt
- virtual computer
- mask
- input
- subclass
- 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 - Lifetime
Links
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、仮想計算機制御プログラム(VMCP)が行う入
出力割込み制御を効率よく行うことができる仮想計算機
システムに関するものである。Description: TECHNICAL FIELD The present invention relates to a virtual computer system capable of efficiently performing input / output interrupt control performed by a virtual computer control program (VMCP).
仮想計算機システムは、1台の計算機システムのもと
で、複数のオペレーティングシステムの併存を実現する
ためにシミュレートされる計算機システムである。この
ような仮想計算機システムでは、仮想計算機制御プログ
ラム(VMCP)が実計算機の資源を配分し、シミュレート
することにより、仮想の計算機を実現する。ここで実現
する仮想の計算機は複数個とされ、複数個の仮想計算機
(VM)のそれぞれのもとで、複数のオペレーティングシ
ステム(OS)が同時並行動作する。The virtual computer system is a computer system that is simulated to realize the coexistence of a plurality of operating systems under one computer system. In such a virtual computer system, a virtual computer is realized by a virtual computer control program (VMCP) allocating and simulating the resources of the real computer. A plurality of virtual computers are realized here, and a plurality of operating systems (OS) operate simultaneously in parallel under each of the plurality of virtual computers (VM).
従来、仮想計算機システムにおいて、実計算機システム
(ホストオペレーティングシステムが動作するシステ
ム:ホストシステム)に接続された入出力装置(IOデバ
イス)をIOデバイス単位にそれぞれのOSに専有させ、か
つ、入出力割込み(IO割込み)制御を行うためのホスト
システムが有するIO割込みサブクラスマスクをサブクラ
ス単位にそれぞれのOS(各々の仮想計算機で動作するO
S)に専有させたとき、この場合のホストシステムのIO
割込みサブクラスマスク値の決定は、特開昭60−150140
公報に記載されているように、次のように行われてい
た。すなわち、 (1)ホストシステムのサブクラスマスクが現走行VM
(OS)に専有されているとき、対応するVMのサブクラス
マスクのマスク値をセットする。Conventionally, in a virtual computer system, I / O devices (IO devices) connected to a real computer system (host operating system operating system: host system) are dedicated to each OS in IO device units, and I / O interrupts (IO interrupt) The IO interrupt subclass mask of the host system for controlling each OS in units of subclasses (O that runs on each virtual machine
S), the host system IO in this case
The determination of the interrupt subclass mask value is disclosed in JP-A-60-150140.
As described in the official gazette, it was performed as follows. (1) The host system subclass mask is the current running VM
When exclusive to (OS), set the mask value of the subclass mask of the corresponding VM.
(2)ホストシステムのサブクラスマスクが現走行VM以
外のVMに専有されているとき、対応するVMのサブクラス
マスクのマスク値と現走行VMのPSW(プログラム状態
語)のIO割込みマスク値との論理積をセットする。な
お、該サブクラスマスクの割込みの遅れが問題にならな
い場合は“0"がセットされてもよい。(2) When the subclass mask of the host system is occupied by a VM other than the current running VM, the logic of the mask value of the subclass mask of the corresponding VM and the IO interrupt mask value of the PSW (program status word) of the current running VM Set the product. It should be noted that "0" may be set when the delay of the interrupt of the subclass mask does not matter.
ところで、上述した従来における仮想計算機システムの
入出力割込み制御においては、現走行VM以外のVM(非走
行VM)上のOSが待ち状態にあるか否かにかかわらず、VM
のIO割込みマスク値が“1"で、IO割込みサブクラスマス
ク値が“1"であれば、VMCPは該VM上のOSのIO割込みを受
け付けていた。By the way, in the above-mentioned conventional input / output interrupt control of the virtual computer system, the VM on the VM (non-running VM) other than the current running VM is waiting regardless of whether the OS is in the waiting state or not.
If the IO interrupt mask value of is 1 and the IO interrupt subclass mask value is 1, the VMCP has accepted the OS IO interrupt on the VM.
しかし、VM上のOSが待ち状態でなければ、該VMはいずれ
スケジューリングされ、走行VMとなり、該VM上のOSのIO
割込みはハードウェアから直接OSに報告することが可能
な状態となる。この場合、VMCPが介入して該VM上のOSの
IO割込みを受け付ける必要はない。However, if the OS on the VM is not in the waiting state, the VM will be scheduled to become a running VM, and the IO of the OS on the VM will be
The interrupt is ready to be directly reported from hardware to the OS. In this case, VMCP intervenes and the OS of the VM
It is not necessary to accept IO interrupts.
また、非走行VM(OS)が専有するホストシステムサブク
ラスマスクに“0"をセットした場合、OSがIO割込み待ち
状態にあると、該VM上のOSは待ち状態が解除されず永久
に待ち続けることになる。このため、場合によっては仮
想計算機システムの性能が極端に低下するという問題が
あった。Also, if "0" is set in the host system subclass mask exclusively used by the non-running VM (OS) and the OS is in an IO interrupt wait state, the OS on that VM does not release the wait state and continues to wait forever. It will be. For this reason, there is a problem that the performance of the virtual computer system is extremely deteriorated in some cases.
本発明は、上記問題点を解決するためになされたもので
ある。The present invention has been made to solve the above problems.
本発明の目的は、走行VM(OS)に対するIO割込みの受付
け方式を改善し、VMの性能を向上させることにある。An object of the present invention is to improve the method of accepting an IO interrupt with respect to a running VM (OS) and improve the performance of the VM.
本発明の前記ならびにその他の目的と新規な特徴は、本
明細書の記述及び添付図面によって明らかになるであろ
う。The above and other objects and novel features of the present invention will be apparent from the description of this specification and the accompanying drawings.
上記目的を達成するため、本発明においては、仮想計算
機制御手段の制御の下に、少なくとも1つの仮想計算機
を実現し、該仮想計算機の各々について入出力割込み全
体の許可/禁止を制御する入出力割込みマスクと、該仮
想計算機が専有する入出力装置について入出力割込みの
許可/禁止を制御する入出力割込みサブクラスマスク
と、プログラムが動作状態か待ち状態かを示す待ち状態
ビット値記憶手段とを具備し、該仮想計算機の入出力割
込みマスクと入出力割込みサブクラスマスクとに基づい
てシステム全体の入出力割込みサブクラスマスクの値を
決定する仮想計算機システムにおいて、該仮想計算機制
御手段が、走行を停止させる仮想計算機について該仮想
計算機の入出力割込みマスク値と入出力割込みサブクラ
スマスク値の待ち状態ビット値との論理積によりシステ
ム全体の入出力割込みサブクラスマスク値を決定する手
段を備え、動作状態でありかつ非走行の仮想計算機につ
いての入出力割込を、該仮想計算機制御手段が受け付け
るのを抑止するようにしたことを特徴とする。In order to achieve the above object, in the present invention, at least one virtual computer is realized under the control of the virtual computer control means, and the input / output for controlling the permission / prohibition of the entire input / output interrupt for each of the virtual computers. An interrupt mask, an input / output interrupt subclass mask for controlling enable / disable of an input / output interrupt for an input / output device exclusively used by the virtual computer, and a wait state bit value storage means for indicating whether the program is in an operating state or a waiting state In the virtual computer system that determines the value of the input / output interrupt subclass mask of the entire system based on the input / output interrupt mask and the input / output interrupt subclass mask of the virtual computer, the virtual computer control means causes the virtual computer to stop running. About computer Queue of I / O interrupt mask value and I / O interrupt subclass mask value of the virtual computer A means for determining an input / output interrupt subclass mask value for the entire system by a logical product with a bit value is provided, and the virtual computer control means receives an input / output interrupt for a virtual computer that is operating and not running. The feature is that it is controlled.
前記手段によれば、非走行VMが専有するホストシステム
のIO割込みサブクラスマスクに、マスク値として、ホス
トシステムのIO割込みサブクラスマスクに対応するVMの
IOサブクラスマスクのマスク値と該VMのIO割込みマスク
のマスク値と該VMの待ち状態ビットのビット値との論理
積を設定する。According to the above means, the IO interrupt subclass mask of the host system exclusively occupied by the non-running VM is set to the VM value corresponding to the IO interrupt subclass mask of the host system as a mask value.
The logical product of the mask value of the IO subclass mask, the mask value of the IO interrupt mask of the VM, and the bit value of the wait state bit of the VM is set.
これにより、非走行VM(OS)が専有しているホストシス
テムのIOサブクラスマスク値の決定に、OSが設定した待
ち状態ビットの値が加えられることになり、非走行VM
(OS)のIO割込みは、OSが待ち状態でかつIO割込みマス
クとサブクラスマスクでIO割込みを許可しているときの
み、VMCPが受け付けることになる。As a result, the value of the wait state bit set by the OS is added to the determination of the IO subclass mask value of the host system that is occupied by the non-running VM (OS).
(OS) IO interrupts are accepted by VMCP only when the OS is in the wait state and the IO interrupt mask and subclass mask enable IO interrupts.
したがって、VMCPは受け付ける必要のないIO割込みの受
付抑止を行うことができ、IO割込み待ち状態になったと
きの待ち状態解除が可能となる。Therefore, VMCP can suppress the acceptance of IO interrupts that do not need to be accepted, and can release the wait state when it enters the IO interrupt wait state.
以下、本発明の一実施例を図面を用いて具体的に説明す
る。An embodiment of the present invention will be specifically described below with reference to the drawings.
第1図は、本発明の一実施例にかかる仮想計算機システ
ムの要部の構成を示すブロック図である。FIG. 1 is a block diagram showing the configuration of the main part of a virtual computer system according to an embodiment of the present invention.
第1図において、1は中央処理装置(CPU)、2は主記
憶装置(MS)である。また、3は入出力処理装置(IO
P)、4は入出力制御装置(IOC)、5はIOデバイスであ
る。また、10はプログラム状態語(PSW)を格納するPSW
レジスタ、10aは全IO割込みを制御するIO割込みマスク
ビット(I)、10bはプログラムの動作/待ち状態を制
御する待ち状態ビット(W)である。11はIO割込サブク
ラスマスクレジスタであり、IOデバイス単位にIO割込み
の許可/禁止を制御するためのIO割込みサブクラスマス
クを保持する32ビットのレジスタである。11aは1つのI
O割込みサブクラスマスクビットである。12はCPU側のVM
/EX機構であり、OSから発行されるIO命令実行およびIO
割込みの該OSへの報告をVMCPの介入なしに行うことを可
能にするハードウェア機構である。また、32はIOP側のV
M/EX機構である。In FIG. 1, 1 is a central processing unit (CPU) and 2 is a main memory (MS). Further, 3 is an input / output processing device (IO
P), 4 is an input / output control device (IOC), and 5 is an IO device. 10 is a PSW that stores the program status word (PSW)
A register, 10a is an IO interrupt mask bit (I) that controls all IO interrupts, and 10b is a wait state bit (W) that controls the operation / wait state of the program. Reference numeral 11 denotes an IO interrupt subclass mask register, which is a 32-bit register that holds an IO interrupt subclass mask for controlling enable / disable of an IO interrupt for each IO device. 11a has one I
O Interrupt subclass mask bit. 12 is the VM on the CPU side
/ EX mechanism, IO instruction execution and IO issued from OS
A hardware mechanism that enables interrupts to be reported to the OS without VMCP intervention. 32 is V on the IOP side
It is an M / EX mechanism.
データ処理システムが、中央処理装置1,主記憶装置2,入
出力処理装置3,入出力制御装置4,およびIOデバイス5の
ハードウェア要素の組合せにより構成される。これらの
ハードウェア要素を用いてホストオペレーティングシス
テムが動作し、実計算機システム(ホストシステム)が
動作する。そして、この実計算機システムと同様な要素
をシミュレートして、仮想計算機システムが構成され
る。仮想計算機システムが構成される実体は、主記憶装
置2上に設定される仮想計算機用の制御データであり、
この制御データを用いてデータ処理を行う中央処理装置
の機能で仮想計算機が実現される。第1図においては、
このようにして実現される仮想計算機システムを主記憶
装置2のブロック上にブロック表示している。すなわ
ち、第1図において、一点鎖線が囲んだブロックが仮想
計算機システムを構成する要素の要部となる。The data processing system is composed of a combination of hardware elements such as a central processing unit 1, a main storage unit 2, an input / output processing unit 3, an input / output control unit 4, and an IO device 5. A host operating system operates using these hardware elements, and an actual computer system (host system) operates. Then, a virtual computer system is configured by simulating the same elements as in this real computer system. The entity that constitutes the virtual computer system is control data for the virtual computer that is set on the main storage device 2.
A virtual computer is realized by the function of a central processing unit that performs data processing using this control data. In FIG. 1,
The virtual computer system realized in this way is displayed in blocks on the blocks of the main storage device 2. That is, in FIG. 1, the block surrounded by the alternate long and short dash line is the main part of the elements constituting the virtual computer system.
第1図に示すように、ここでは、第1の仮想計算機(VM
1)24a,第2の仮想計算機(VM2)24b,第3の仮想計算機
(VM3)24cが、各仮想計算機を制御し管理する仮想計算
機制御プログラム(VMCP)20の管理下に実現される。各
々の仮想計算機24a,24b,24cには、実計算機システムのP
SWレジスタおよびIO割込サブクラスマスレジスタの各々
と対応して、同様な仮想計算機(VM)PSWレジスタ25お
よび仮想計算機(VM)IO割込サブクラスマスクレジスタ
26が設けられる。また、各仮想計算機の入出力制御を管
理するため、VMCP20には、IO割込み制御ルーチン21,ホ
ストIO割込みサブクラスマスクレジスタ22,各仮想計算
機対応にサブクラス変換テーブル23a,23b,23cが設けら
れている。サブクラス変換テーブル23a,23b,23cは、対
応する各VMの個々のサブクラスマスクビット26aが専有
サブクラスマスクビットであるか否かの情報と、専有サ
ブクラスマスクの場合は対応するホストIO割込サブクラ
スマスクレジスタの対応ビット22aの番号情報を有して
いる。VMCP20のIO割込み制御ルーチン21は、ホストIO割
込みサブクラスマスクレジスタ22の領域にサブクラスマ
スク値を設定するサブルーチンを有している。このよう
に構成されたVM1〜VM3の上で各々のオペレーティングシ
ステムOS1〜OS3が動作する。なお、VMCPが行うシミュレ
ーション処理は、実計算機システム(ホストシステム)
におけるホストOS上で動作する。As shown in FIG. 1, here, the first virtual machine (VM
1) 24a, a second virtual machine (VM2) 24b, and a third virtual machine (VM3) 24c are realized under the control of a virtual machine control program (VMCP) 20 that controls and manages each virtual machine. Each virtual computer 24a, 24b, 24c has a P
Similar virtual machine (VM) PSW register 25 and virtual machine (VM) IO interrupt subclass mask register corresponding to each of SW register and IO interrupt subclass mass register
26 are provided. Further, in order to manage the input / output control of each virtual machine, the VMCP 20 is provided with an IO interrupt control routine 21, a host IO interrupt subclass mask register 22, and a subclass conversion table 23a, 23b, 23c corresponding to each virtual machine. . The subclass conversion tables 23a, 23b, and 23c include information as to whether or not the individual subclass mask bits 26a of each corresponding VM are exclusive subclass mask bits, and in the case of an exclusive subclass mask, the corresponding host IO interrupt subclass mask register. Of the corresponding bit 22a. The IO interrupt control routine 21 of the VMCP 20 has a subroutine for setting the subclass mask value in the area of the host IO interrupt subclass mask register 22. The respective operating systems OS1 to OS3 operate on the VM1 to VM3 thus configured. The simulation process performed by VMCP is the actual computer system (host system).
It runs on the host OS in.
第2図は、VMCPのIO割込みサブクラスマスクの設定処理
を示すフローチャートである。この設定処理はVMCP20の
IO割込み制御ルーチン21の中のサブルーチンである。こ
のサブルーチンは、タイムスライス制御等によりディス
パッチするVM(OS)が切り換わるとき、直前にディスパ
ッチしたVM(停止させるVM)に対して、および次にディ
スパッチするVM(走行させるVM)に対してコールされ
る。このサブルーチンは、以下に詳細に説明するよう
に、停止させるVMと走行させるVMについて、そのVMの割
込み制御用に割当てられたサブクラスマスク(専用サブ
クラスマスク)のサブクラスマスク値をVMCPのホストIO
割込みサブクラスマスクレジスタ22の対応するサブクラ
スマスクに設定する処理を行う。停止させるVMの場合に
は、このサブクラスマスク値の決定に当該PSWのIビッ
トとWビットとを関与させる。停止させるVMと走行させ
るVMに対する設定処理が終了した後、ホストIO割込みサ
ブマスクレジスタ22の内容が中央処理装置1のIO割込サ
ブクラスマスクレジスタ11にセットされ、中央処理装置
1のPSWレジスタ10が停止させるVMの仮想計算機PSWレジ
スタ25にセットされ、走行させるVMの仮想計算機PSWレ
ジスタ25が中央処理装置1のPSWレジスタ10にセットさ
れ、走行させる当該VM(OS)がディスパッチされる。FIG. 2 is a flowchart showing the setting process of the VMCP IO interrupt subclass mask. This setting process of VMCP20
This is a subroutine in the IO interrupt control routine 21. When the dispatching VM (OS) is switched by time slice control etc., this subroutine is called for the VM dispatched immediately before (VM to be stopped) and for the VM dispatched next (VM to run). It As described in detail below, this subroutine uses the VMCP host IO to set the subclass mask value of the subclass mask (dedicated subclass mask) assigned for interrupt control of the VM to be stopped and the VM to be run.
A process for setting the corresponding subclass mask of the interrupt subclass mask register 22 is performed. In the case of a VM to be stopped, the I bit and W bit of the PSW concerned are involved in the determination of this subclass mask value. After the setting processing for the VM to be stopped and the VM to be run is completed, the contents of the host IO interrupt submask register 22 are set in the IO interrupt subclass mask register 11 of the central processing unit 1, and the PSW register 10 of the central processing unit 1 is set. The virtual machine PSW register 25 of the VM to be stopped is set, the virtual machine PSW register 25 of the VM to be run is set to the PSW register 10 of the central processing unit 1, and the VM (OS) to be run is dispatched.
次に、第2図を参照して、ホストIO割込みサブクラスマ
スクレジスタ22の領域にサブクラスマスク値を設定する
処理を説明する。まず、ステップ60において、走行させ
るVM(走行VM)か停止させるVMかの判定を行い、走行VM
でない場合、ステップ61に進み、ホストIO割込みサブク
ラスマスクレジスタ22に設定するサブクラスマスク値を
決定するため、変数Tに仮想計算機PSWレジスタ25のI
ビットとWビットとの論理積をセットする。一方、ステ
ップ60の判定が走行VMである場合には、ステップ62に進
んで、変数Tに“1"をセットする。この処理は、ホスト
IO割込みサブマスクレジスタ22に設定するサブクラスマ
スク値の決定に仮想計算機PSWレジスタ25のIビットと
Wビットの値を使用しないための処理である。Next, the process of setting the subclass mask value in the area of the host IO interrupt subclass mask register 22 will be described with reference to FIG. First, in step 60, it is determined whether the VM is a running VM (running VM) or a VM to be stopped.
If it is not, the process proceeds to step 61, and in order to determine the subclass mask value to be set in the host IO interrupt subclass mask register 22, the variable T is set to I of the virtual machine PSW register 25.
Sets the logical product of the bit and the W bit. On the other hand, when the determination in step 60 is the traveling VM, the process proceeds to step 62 and the variable T is set to "1". This process is the host
This is a process for not using the values of the I bit and the W bit of the virtual computer PSW register 25 to determine the subclass mask value set in the IO interrupt submask register 22.
次にステップ63において、当該VMに対するサブクラスマ
スク返還テーブル23aより専有サブクラスマスクをサー
チする。これにより、仮想計算機IO割込みサブクラスマ
スクレジスタ26の対応ビット番号VDSN(26a)を得る。
次のステップ64において、ステップ63のサーチ結果を判
定し、専有サブクラスマスクが見つからない場合は、処
理を終了しコール元にリターンする。一方、ステップ64
のサーチ結果の判定で専有サブクラスマスクが見つかっ
た場合には、次のステップ65でVMの専有サブクラスマス
クのビット番号VDSNに対応するホストの専有サブクラス
マスクのビット番号RDSN(22a)を該VMのサブクラスマ
スク変換テーブル23aより求める。Next, in step 63, the exclusive subclass mask is searched from the subclass mask return table 23a for the VM. As a result, the corresponding bit number VDSN (26a) of the virtual machine IO interrupt subclass mask register 26 is obtained.
In the next step 64, the search result of step 63 is judged, and if the exclusive subclass mask is not found, the process is terminated and the process returns to the caller. Meanwhile, step 64
If the exclusive subclass mask is found by the determination of the search result of, in the next step 65, the bit number RDSN (22a) of the exclusive subclass mask of the host corresponding to the bit number VDSN of the exclusive subclass mask of VM is set to the subclass of the VM. It is obtained from the mask conversion table 23a.
次のステップ66においては、仮想計算機IO割込みサブク
ラスマスクレジスタ26の対応ビット番号VDSN(26a)の
マスク値miとステップ61またはステップ62でセットされ
た変数Tとの論理積Aをとる。そして、ステップ67にお
いて、ステップ66で得られた論理積AをホストIO割込み
サブクラスマスクレジスタ22の領域の対応ビット番号RD
SN(22a)のマスク値としてセットする。そして、再
び、ステップ63に戻り、ステップ63からの処理を繰り返
し行う。In the next step 66, the logical product A of the mask value mi of the corresponding bit number VDSN (26a) of the virtual computer IO interrupt subclass mask register 26 and the variable T set in step 61 or step 62 is taken. Then, in step 67, the logical product A obtained in step 66 is used as the corresponding bit number RD of the area of the host IO interrupt subclass mask register 22.
Set as a mask value for SN (22a). Then, the process returns to step 63 again, and the processing from step 63 is repeated.
このようにして、ホストIO割込みサブクラスマスクレジ
スタ22の領域にサブクラスマスク値を設定する処理を行
う。一般的に、仮想計算機システムにおいて、IO割込み
を禁止した状態で動作する部分はごく一部であり、OSは
待ち状態にないとき、通常、IO割込みを許可した状態で
動作している。したがって、OSが待ち状態でないとき、
タイムスライス制御等で非走行VMとなった場合、ほとん
どがIO割込みマスク値とIOサブクラスマスク値は共に
“1"となっている。本実施例の入出力制御方式によれ
ば、この状態にある非走行VM(OS)に対するIO割込み
を、VMCPの介入なしにハードウェア(IOデバイス)から
直接的に当該仮想計算機に報告することができる。この
ため、このIO割込みの報告のためだけにVMCPが動作する
必要はなく、複数の仮想計算機が動作する仮想計算機シ
ステムの性能が向上する。In this way, the process of setting the subclass mask value in the area of the host IO interrupt subclass mask register 22 is performed. Generally, in a virtual machine system, only a small part operates in a state in which IO interrupts are prohibited, and when the OS is not in a waiting state, it normally operates in a state in which IO interrupts are permitted. Therefore, when the OS is not in the waiting state,
When a non-running VM is set due to time slice control, most of the IO interrupt mask value and IO subclass mask value are both "1". According to the input / output control method of this embodiment, it is possible to directly report an IO interrupt to the non-running VM (OS) in this state from the hardware (IO device) to the virtual computer without VMCP intervention. it can. Therefore, the VMCP does not need to operate only for reporting this IO interrupt, and the performance of the virtual computer system in which a plurality of virtual computers operate improves.
以上、本発明を実施例にもとづき具体的に説明したが、
本発明は、前記実施例に限定されるものではなく、その
要旨を逸脱しない範囲において種々変更可能であること
は言うまでもない。The present invention has been specifically described above based on the embodiments,
It is needless to say that the present invention is not limited to the above-mentioned embodiments and can be variously modified without departing from the scope of the invention.
以上、説明したように、本発明によれば、非走行VM(O
S)が専有しているホストシステムのIOサブクラスマス
ク値の決定に、OSが設定した待ち状態ビットの値を加え
ることにより、非走行VM(OS)のIO割込みは、OSが待ち
状態でかつIO割込みマスクとサブクラスマスクでIO割込
みを許可しているときのみ、VMCPが受け付けることにな
り、VMCPは受け付ける必要のないIO割込みの受付抑止を
行うことができる。このため、非走行VM(OS)のIO割込
みをVMCPの介入なしにハードウェアから直接的に該VM
(OS)に報告する処理を行うことができ、行なわなくて
も良いVMCPのシミュレーション処理を省略でき、仮想計
算機システムの性能が向上する。As described above, according to the present invention, the non-running VM (O
By adding the value of the wait state bit set by the OS to the determination of the host system's IO subclass mask value that S) occupies, non-running VM (OS) IO interrupts VMCP accepts IO interrupts only when the interrupt mask and subclass mask allow IO interrupts, and VMCP can suppress the acceptance of IO interrupts that need not be accepted. Therefore, the non-running VM (OS) IO interrupt can be directly sent from the hardware without VMCP intervention.
The process of reporting to the (OS) can be performed, and the VMCP simulation process, which need not be performed, can be omitted, and the performance of the virtual computer system is improved.
第1図は、本発明の一実施例にかかる仮想計算機システ
ムの要部の構成を行すブロック図、 第2図は、VMCPのIO割込みサブクラスマスクの設定処理
を示すフローチャートである。 図中、1……中央処理装置、2……主記憶装置、3……
IO処理装置、4……IO制御装置、5……IOデバイス、10
……PSWレジスタ、10a……IO割込みマスクビット、10b
……待ち状態ビット、11……IO割込サブクラスマスクレ
ジスタ、11a……IO割込みサブクラスマスクビット、12,
32……VM/EX機構。FIG. 1 is a block diagram showing a configuration of a main part of a virtual computer system according to an embodiment of the present invention, and FIG. 2 is a flow chart showing a setting process of an IO interrupt subclass mask of VMCP. In the figure, 1 ... Central processing unit, 2 ... Main memory unit, 3 ...
IO processing device, 4 ... IO control device, 5 ... IO device, 10
...... PSW register, 10a …… IO interrupt mask bit, 10b
...... Wait status bit, 11 ...... IO interrupt subclass mask register, 11a …… IO interrupt subclass mask bit, 12,
32 …… VM / EX mechanism.
Claims (1)
とも1つの仮想計算機を実現し、該仮想計算機の各々
が、入出力割込み全体の許可/禁止を制御する入出力割
込みマスクと、該仮想計算機が専有する入出力装置につ
いて入出力割込みの許可/禁止を制御する入出力割込み
サブクラスマスクと、プログラムが動作状態か待ち状態
かを示す待ち状態ビット値記憶手段とを具備し、該仮想
計算機の入出力割込みマスクと入出力割込みサブクラス
マスクとに基づいてシステム全体の入出力割込みサブク
ラスマスクの値を決定する仮想計算機システムにおい
て、 該仮想計算機制御手段が、走行を停止させる仮想計算機
について該仮想計算機の入出力割込みマスク値と入出力
割込みサブクラスマスク値の待ち状態ビット値との論理
積によりシステム全体の入出力割込みサブクラスマスク
値を決定する手段を備え、動作状態でありかつ非走行の
仮想計算機についての入出力割込を、該仮想計算機制御
手段が受け付けるのを抑止するようにしたことを特徴と
する仮想計算機システム。1. An I / O interrupt mask that realizes at least one virtual computer under the control of a virtual computer control unit, and each of the virtual computers controls permission / prohibition of all I / O interrupts, and the virtual computer. An input / output interrupt subclass mask for controlling permission / prohibition of input / output interrupts for an input / output device exclusively owned by a computer, and a wait state bit value storage means for indicating whether a program is in an operating state or a waiting state are provided. In a virtual computer system that determines the value of the input / output interrupt subclass mask of the entire system based on the input / output interrupt mask and the input / output interrupt subclass mask, the virtual computer control means determines the virtual computer of the virtual computer to stop running. System by the logical product of the I / O interrupt mask value and the I / O interrupt subclass mask value wait state bit value A means for determining the overall input / output interrupt subclass mask value is provided, and the virtual computer control means is prevented from accepting an input / output interrupt for an operating and non-running virtual computer. And a virtual computer system.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63181288A JPH0695314B2 (en) | 1988-07-19 | 1988-07-19 | Virtual computer system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63181288A JPH0695314B2 (en) | 1988-07-19 | 1988-07-19 | Virtual computer system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0229831A JPH0229831A (en) | 1990-01-31 |
| JPH0695314B2 true JPH0695314B2 (en) | 1994-11-24 |
Family
ID=16098065
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63181288A Expired - Lifetime JPH0695314B2 (en) | 1988-07-19 | 1988-07-19 | Virtual computer system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0695314B2 (en) |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS55112651A (en) * | 1979-02-21 | 1980-08-30 | Fujitsu Ltd | Virtual computer system |
-
1988
- 1988-07-19 JP JP63181288A patent/JPH0695314B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0229831A (en) | 1990-01-31 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4885681A (en) | I/O Execution method for a virtual machine system and system therefor | |
| US5038281A (en) | Acceleration of system interrupts between operating systems in guest-host relationship | |
| EP0185378B1 (en) | Virtual computer system | |
| EP3039540B1 (en) | Virtual machine monitor configured to support latency sensitive virtual machines | |
| US4414624A (en) | Multiple-microcomputer processing | |
| US4812967A (en) | Method and apparatus for controlling interrupts in a virtual machine system | |
| EP0093267B1 (en) | Method for switching the control of central processing units in a data processing system, and apparatus for initiating the switching of cpu control | |
| US20230259380A1 (en) | Chip system, virtual interrupt processing method, and corresponding apparatus | |
| JPS6258341A (en) | Input and output interruption processing system | |
| JPH0673108B2 (en) | How to restrict guest behavior to system resources allocated to guests | |
| KR20060108711A (en) | Virtual machine management with activity information | |
| CN114327767B (en) | Task processing method and device, electronic equipment and computer readable storage medium | |
| AU603876B2 (en) | Multiple i/o bus virtual broadcast of programmed i/o instructions | |
| JP2008500652A (en) | An adaptive algorithm for selecting a virtualization algorithm in a virtual machine environment | |
| US20050091022A1 (en) | Ultra fast multi-processor system simulation using dedicated virtual machines | |
| JPH0695314B2 (en) | Virtual computer system | |
| JPS6097440A (en) | Virtual multiprocessor device | |
| JPH0754468B2 (en) | Virtual computer system | |
| JP2585905B2 (en) | Multitask execution device | |
| JPS5958553A (en) | Dispatch control system of integrated type virtual computer | |
| JPH0638238B2 (en) | Virtual computer system | |
| JPS6313218B2 (en) | ||
| JPS62221041A (en) | Dispatch controller in virtual computer system | |
| JPH0754469B2 (en) | Input / output instruction execution unit for virtual computer system | |
| JPS61208133A (en) | State register controller in virtual computer system |