[go: up one dir, main page]

JPS60163134A - Virtual computer system - Google Patents

Virtual computer system

Info

Publication number
JPS60163134A
JPS60163134A JP59018310A JP1831084A JPS60163134A JP S60163134 A JPS60163134 A JP S60163134A JP 59018310 A JP59018310 A JP 59018310A JP 1831084 A JP1831084 A JP 1831084A JP S60163134 A JPS60163134 A JP S60163134A
Authority
JP
Japan
Prior art keywords
register
instruction
control
computer system
circuit
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.)
Granted
Application number
JP59018310A
Other languages
Japanese (ja)
Other versions
JPH0638238B2 (en
Inventor
Hidenori Umeno
梅野 英典
Hiroshi Ikegaya
池ケ谷 浩
Takashige Kubo
久保 隆重
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP59018310A priority Critical patent/JPH0638238B2/en
Publication of JPS60163134A publication Critical patent/JPS60163134A/en
Publication of JPH0638238B2 publication Critical patent/JPH0638238B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は、コントロール・レジスタを制御する命令のう
ち直接実行可能であるかを判定する手段を設け、コント
ロール・レジスタを制御する命令を高速に実行できるよ
うにした仮想計算機システムに関する。
[Detailed Description of the Invention] [Field of Application of the Invention] The present invention provides a means for determining whether or not an instruction that controls a control register can be directly executed, so that the instruction that controls the control register can be executed at high speed. This article relates to a virtual computer system that has been made possible.

〔発明の背景〕[Background of the invention]

仮想計算機システムは、1台の実記1算機の資源(処理
装置、実記憶装置、チャネル、入出力装置)のもとてあ
たかも複数の計算機が存在するかのごとく制御する言1
算機システムである。この複数の割算機は各々仮想iF
算機(VM)と呼ばれ、実言1算機と機能的に等価とな
るよう仮想計算機制御プログラム(VMCP)によりシ
ミュレーションされる。各VM上ではオペレーティング
・システム(OS)を実行することができ、1台の実計
算機のもとて複数のO8を同時に実行することができる
。VMCPとVMの関係は、一般のO8における制御プ
ログラムと処理プログラムとの関係に似ている。制御プ
ログラムに相当するものがVMCPであり、処理プログ
ラムに相当するものがVMである。VMC:Pは実計算
機のハードウェアを物理的に制御するために特権モード
で実行し、VMCPが生成したVMを非特権モードで実
行させる。
A virtual computer system is a computer system that controls the resources of one real computer (processing unit, real storage device, channels, input/output devices) as if there were multiple computers.
It is a computer system. Each of these multiple dividers is a virtual iF
It is called a computer (VM) and is simulated by a virtual computer control program (VMCP) so that it is functionally equivalent to a real computer. An operating system (OS) can be executed on each VM, and multiple O8s can be executed simultaneously on one real computer. The relationship between VMCP and VM is similar to the relationship between control programs and processing programs in general O8. A VMCP corresponds to a control program, and a VM corresponds to a processing program. VMC:P executes in privileged mode to physically control the hardware of the real computer, and causes the VM generated by VMCP to execute in non-privileged mode.

VMは非特権モードで動作するため、VM上での特権命
令は特権命令例外としてVMGPに報告され、VMCP
がシミュレーションを行うことにより実行される。第1
図にVMの特権命令シミュレーションの概念図を示す。
Since the VM operates in unprivileged mode, privileged instructions on the VM are reported to the VMGP as privileged instruction exceptions, and the VMCP
is executed by performing a simulation. 1st
The figure shows a conceptual diagram of VM privileged instruction simulation.

次に、上記特権命令シミュレーションのうちコントロー
ル・レジスタを制御する特権命令のシミュレーション処
理概要を説明する。一般的にコントロール・レジスタに
は非同期割込みを制御する割込みマスクやマシンチェッ
ク用の制御情報が設けられており、それらの情報を持つ
コントロール・レジスタの内容を変更する命令が発行さ
れた場合は各VMの制御ブロックにその値を反映させる
処理を行っている。VMCPにより全てのコントロール
・レジスタに対してその内容を変更する命令の処理を行
なうと実計算機下のO8で実行した場合と比べてかなり
の性能低下が生じる。これを防ぐため、VMに実計算機
のコントロール・レジスタを占有させる、あるいはVM
専用のコントロール・レジスタを用意することにより、
VM上の該特権命令を直接実行(VMCPの介入なしで
実行すること)させ、実計算機と比較してほとんど同等
の性能を出す方式が考えられる。この直接実行方式で問
題となるのは、割込みマスクおよびマシンチェック用の
制御情報を持つコントロール・レジスタを変更する場合
であり、その時は直接実行ができないのでVMCPによ
って処理を行なう必要がある。これを実現するために以
下の方法が考えられる。(第2図) 該特権命令を直接実行する前にマイクロプログラムで、
割込みマスクあるいはマシンチェック用の制御情報を持
つコントロール・レジスタを変更する命令であるとの判
定処理を行い、条件が成立したときは直接実行は行わす
VMCPに制御を委ねる。この方法によれば、直接実行
の場合はV M C,Pの介入は不要となるが、直接実
行可能かどうかの判定が常に必要となりそれをマイクロ
プログラムで行ってもなお実計算機に対するオーバヘッ
ドとなり、直接実行の効果が低下する。
Next, an overview of the simulation process for a privileged instruction that controls a control register among the privileged instruction simulations described above will be explained. Generally, control registers are provided with interrupt masks that control asynchronous interrupts and control information for machine checks, and when an instruction that changes the contents of the control register that has these information is issued, each VM Processing is performed to reflect the value in the control block. If the VMCP processes an instruction that changes the contents of all control registers, the performance will deteriorate considerably compared to when the instruction is executed on an O8 under a real computer. To prevent this, you can either have the VM occupy the control registers of the actual computer, or
By providing a dedicated control register,
A possible method is to directly execute the privileged instruction on the VM (without the intervention of the VMCP) and achieve almost the same performance as that of a real computer. A problem with this direct execution method is when changing control registers containing control information for interrupt masks and machine checks, in which case direct execution is not possible and processing must be performed by VMCP. The following methods can be considered to achieve this. (Figure 2) Before directly executing the privileged instruction, the microprogram
A process is performed to determine whether the instruction is an instruction to change a control register having control information for an interrupt mask or a machine check, and when the conditions are met, control is entrusted to the VMCP, which directly executes the instruction. According to this method, in the case of direct execution, the intervention of VMC,P is not required, but it is always necessary to determine whether direct execution is possible, and even if this is done in a microprogram, it still causes overhead for the actual computer. Direct execution becomes less effective.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、コントロール・レジスタを制御する特
権命令をシミュレートするときのオーバヘッドを削減す
るために、マイクロプログラムによる上記の判定処理を
不要とするためのハードウェアサポートを行うことにあ
る。
An object of the present invention is to provide hardware support to eliminate the need for the above-described determination processing by a microprogram, in order to reduce overhead when simulating privileged instructions that control control registers.

〔発明の概要〕[Summary of the invention]

以下に本発明の動作概要を説明する。 An outline of the operation of the present invention will be explained below.

VMからコントロール・レジスタを制御する特権命令が
発行されたとき、命令によって与えられたレジスタ番号
と直接実行できないレジスタのレジスタ番号を比較する
。比較の結果、両者が一致したとき、つまり直接実行で
きない場合VMCPに割込み、一致しなかった場合直接
実行が行われる。VMCPへの割込みは、割込み処理用
マイクロプログラムにブレイクインし、ハードウェアま
たはマイクロプログラムによりVMCPに割込むような
割込み情報格納領域(すなわちプレフイクス)を選択す
ることにより行われる。
When a privileged instruction to control a control register is issued from a VM, the register number given by the instruction is compared with the register number of a register that cannot be directly executed. As a result of the comparison, when the two match, that is, when direct execution is not possible, an interrupt is made to VMCP, and when they do not match, direct execution is performed. An interrupt to the VMCP is performed by breaking into the interrupt processing microprogram and selecting an interrupt information storage area (ie, prefix) for interrupting the VMCP by hardware or the microprogram.

〔発明の実施例〕[Embodiments of the invention]

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

本実施例は、指示レジスタ1、マイクレジスタ2、モー
ドレジスタ3、AND回路4,6、OR回路5、NOT
回路7、から構成される。
This embodiment includes an instruction register 1, a microphone register 2, a mode register 3, AND circuits 4 and 6, an OR circuit 5, and a NOT
It consists of a circuit 7.

指示レジスタ1には、コントロール・レジスタを制御す
る命令のオペランドによって指定されたレジスタ番号が
対応する各ビットにセットされる。
In instruction register 1, a register number designated by an operand of an instruction to control a control register is set in each corresponding bit.

例えば1から5というレジスタ番号が命令によって指定
された場合は指示レジスタ1のビット1からビット5に
″1″がセットされることになる。マスクレジスタ2に
は、コントロール・レジスタを制御する命令が直接実行
できないレジスタのレジスタ番号が対応する各ビットに
セットされる。例えば、直接実行できないレジスタが0
.2,6゜14.15の場合、図のようにマスクレジス
タ2の各ビットに” i ”がセットされる。モードレ
ジスタ3には、VMの実行モードの時# I IIがセ
ットされる。
For example, when register numbers 1 to 5 are specified by an instruction, bits 1 to 5 of instruction register 1 are set to "1". In the mask register 2, register numbers of registers in which instructions for controlling the control register cannot be directly executed are set in corresponding bits. For example, registers that cannot be directly executed are 0.
.. In the case of 2.6°14.15, "i" is set in each bit of mask register 2 as shown in the figure. #III is set in the mode register 3 when the VM is in the execution mode.

本実施例の動作は以下の通りである。The operation of this embodiment is as follows.

指示レジスタ1にセットされたレジスタ番号とマスクレ
ジスタ2にセットされたレジスタ番号がAND回路4に
よって各ビット毎にANDがとられる。AND回路4か
らは指示レジスタ1とマイクレジスタ2の同一ピッl〜
が共に′″1″の場合。
The register number set in the instruction register 1 and the register number set in the mask register 2 are ANDed for each bit by an AND circuit 4. From the AND circuit 4, the same pins of the instruction register 1 and the microphone register 2 are sent.
are both ``1''.

” 1 ”が出力される。OR回路5では各ビットのA
ND回路4の出力のORがとられる。OR回路5からは
AND回路4の出力のいずれかがrr 1 uのとき、
11 +、 IIが出力される。コントロール・レジス
タ変更要求が発行され、OR回路5の出力が1″′で、
モードレジスタ3の内容がII L Hのとき、AND
回路6からII I IIが出力される。AND回路6
の出力が#l 111のとき、割込み処理用マイクロプ
ログラムにブレイクインする。このとき、ハードウェア
あるいはマイクロプログラムにより割込み情報格納領域
(すなわちプレフィクス)が決定される。
"1" is output. In the OR circuit 5, each bit's A
The outputs of the ND circuit 4 are ORed. From the OR circuit 5, when any of the outputs of the AND circuit 4 is rr 1 u,
11 +, II is output. A control register change request is issued, the output of OR circuit 5 is 1'',
When the contents of mode register 3 are II L H, AND
The circuit 6 outputs II I II. AND circuit 6
When the output is #l 111, a break-in is made to the interrupt processing microprogram. At this time, the interrupt information storage area (ie, prefix) is determined by hardware or a microprogram.

コノ場合はVMCPに割込むようにプレフィクスを選択
してVMCPに割込む。
In this case, select a prefix to interrupt VMCP and interrupt VMCP.

モードレジスタ3の内容がrr C) rrとのきはN
OT回路7から“1″が出力される。NOT回路7の出
力が” 1 ”のとき、実計算機モードの実行回路によ
ってコントロール・レジスタを制御する命令が実行され
る。
When the contents of mode register 3 are rr C) rr is N
“1” is output from the OT circuit 7. When the output of the NOT circuit 7 is "1", an instruction for controlling the control register is executed by the execution circuit in the real computer mode.

本実施例によれば、該特権命令が直接実行可能かどうか
をハードウェアにより判定することができ、直接実行前
のマイクロプログラムの処理を省略することができる。
According to this embodiment, it is possible to determine by hardware whether the privileged instruction can be directly executed, and it is possible to omit processing of the microprogram before direct execution.

これにより、該特権命令の直接実行の効果が上がる。ま
た、マイクレジスタの値を変更するだけで直接実行不可
能なコントロール・レジスタを設定することができ、シ
ステムの変更が拡張時に有効である。
This increases the effectiveness of direct execution of the privileged instruction. Additionally, control registers that cannot be directly executed can be set simply by changing the value of the micro register, making system changes effective when expanding.

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

以上述べたように本発明によれば、コントロール・レジ
スタを制御する特権命令を直接実行することにより、V
MCPのシミュレーションオーバヘッドを削減すること
ができ、仮想計算機システムの性能が向上されるという
効果がある。
As described above, according to the present invention, by directly executing a privileged instruction that controls a control register, V
This has the effect that the simulation overhead of MCP can be reduced and the performance of the virtual computer system can be improved.

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

第1図はVMの特権命令シミュレーションの概念図、第
2図は特権命令を直接実行するための従来の方式を示す
概念図、第3図は本発明による仮想計算機システムの一
実施例の構成図である。 ■・・・指示レジスタ、2・・・マスクレジスタ、3・
・・モードレジスタ、4,6・・・AND回路、5・・
OR回路、7・・・NOT回路。 代理人 弁理士 高橋明六 葛 ) 図 Z z 目 第 3 図 L J
Figure 1 is a conceptual diagram of VM privileged instruction simulation, Figure 2 is a conceptual diagram showing a conventional method for directly executing privileged instructions, and Figure 3 is a configuration diagram of an embodiment of a virtual computer system according to the present invention. It is. ■...Instruction register, 2...Mask register, 3.
...Mode register, 4,6...AND circuit, 5...
OR circuit, 7...NOT circuit. Agent: Patent Attorney Akira Takahashi) Figure Z 3rd Figure L J

Claims (1)

【特許請求の範囲】[Claims] ひとつ又は複数のオペレーティング・システムを1つの
計算機システム上で同時に動作させるための管理プログ
ラムを備えた仮想計算機システムにおいて、コントロー
ル・レジスタを制御する命令によって指定されたレジス
タ番号を保持する手段と、あるコン1−ロール・レジス
タ番号をひとつ又は複数保持する手段(以後マスクレジ
スタと呼ぶ)と、仮想引算機が動作していることを識別
する手段と、命令によって指定されたレジスタ番号と上
記マスクレジスタに含まれるコントロール・レジスタ番
号を比較する手段を有し、該識別手段による仮想M]算
機が動作しているか否かと該比較手段による比較結果に
よって、上記管理プログラムに割出す、あるいは実計算
機モードの回路によって実行されるように制御されるこ
とを特徴とする仮想計算機システム。
In a virtual computer system equipped with a management program for simultaneously operating one or more operating systems on one computer system, a means for holding a register number specified by an instruction to control a control register; 1-Means for holding one or more roll register numbers (hereinafter referred to as mask registers), means for identifying that the virtual subtraction machine is operating, and means for holding one or more roll register numbers and the register number specified by the instruction and the mask register. It has means for comparing the included control register numbers, and depending on whether the virtual M] calculator is operating or not and the comparison result by the comparing means, the above-mentioned management program can make an identification or the actual computer mode. A virtual computer system characterized in that it is controlled to be executed by a circuit.
JP59018310A 1984-02-06 1984-02-06 Virtual computer system Expired - Lifetime JPH0638238B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59018310A JPH0638238B2 (en) 1984-02-06 1984-02-06 Virtual computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59018310A JPH0638238B2 (en) 1984-02-06 1984-02-06 Virtual computer system

Publications (2)

Publication Number Publication Date
JPS60163134A true JPS60163134A (en) 1985-08-26
JPH0638238B2 JPH0638238B2 (en) 1994-05-18

Family

ID=11968037

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59018310A Expired - Lifetime JPH0638238B2 (en) 1984-02-06 1984-02-06 Virtual computer system

Country Status (1)

Country Link
JP (1) JPH0638238B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63240637A (en) * 1987-03-27 1988-10-06 Nec Corp Information processor
JPS63301331A (en) * 1987-06-02 1988-12-08 Fujitsu Ltd Program interrupt handling method
JPH03102432A (en) * 1989-09-14 1991-04-26 Fujitsu Ltd Register update index control device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5960652A (en) * 1982-09-30 1984-04-06 Fujitsu Ltd data processing equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5960652A (en) * 1982-09-30 1984-04-06 Fujitsu Ltd data processing equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63240637A (en) * 1987-03-27 1988-10-06 Nec Corp Information processor
JPS63301331A (en) * 1987-06-02 1988-12-08 Fujitsu Ltd Program interrupt handling method
JPH03102432A (en) * 1989-09-14 1991-04-26 Fujitsu Ltd Register update index control device

Also Published As

Publication number Publication date
JPH0638238B2 (en) 1994-05-18

Similar Documents

Publication Publication Date Title
JP2765411B2 (en) Virtual computer system
US4794522A (en) Method for detecting modified object code in an emulator
JPS61206043A (en) Interrupt control method in virtual computer system
JPS58151655A (en) Information processing device
US5003468A (en) Guest machine execution control system for virutal machine system
JP2523653B2 (en) Virtual computer system
EP3948548B1 (en) Processor having multiple operating modes
JPS60163134A (en) Virtual computer system
JPS6049352B2 (en) data processing equipment
JPS61184643A (en) Starting control system for virtual computer
JPH09282196A (en) Program run control method for complex logic processor system.
JPH0567972B2 (en)
JPS6220035A (en) Virtual computer system control method
JPS61143850A (en) Processor
JPS6027033A (en) Virtual computer simulation method
JPS6338729B2 (en)
JPS60225944A (en) Virtual machine system
JPH0318936A (en) Input/output executing device for recursive virtual computer
JPS62147545A (en) Transfer command processing method in information processing equipment
JPH0373031A (en) Memory access control method
JPS61240333A (en) Input and output interruption processing system
JPS6325736A (en) Interrupt control method in virtual computer system
JPS6349946A (en) Arithmetic processing unit
JPS6222163A (en) information processing equipment
JPH0229831A (en) Input/output interruption control system for virtual computer system

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term