JPS62114045A - Address mode control system - Google Patents

Address mode control system

Info

Publication number
JPS62114045A
JPS62114045A JP60254027A JP25402785A JPS62114045A JP S62114045 A JPS62114045 A JP S62114045A JP 60254027 A JP60254027 A JP 60254027A JP 25402785 A JP25402785 A JP 25402785A JP S62114045 A JPS62114045 A JP S62114045A
Authority
JP
Japan
Prior art keywords
address
register
tag
monitor
virtual machine
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
JP60254027A
Other languages
Japanese (ja)
Inventor
Toshio Matsumoto
敏雄 松本
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 JP60254027A priority Critical patent/JPS62114045A/en
Priority to AU64878/86A priority patent/AU571377B2/en
Priority to CA000522328A priority patent/CA1280829C/en
Priority to DE8686308805T priority patent/DE3688177T2/en
Priority to EP86308805A priority patent/EP0223551B1/en
Priority to BR8605598A priority patent/BR8605598A/en
Priority to KR1019860009592A priority patent/KR910001447B1/en
Priority to US06/929,796 priority patent/US4782443A/en
Publication of JPS62114045A publication Critical patent/JPS62114045A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To eliminate an overhead for an address processing of a VM monitor by selecting a PSW by a tag bit related to a general register of a tag resistor. CONSTITUTION:A VM monitor 3 turns on in advance a tag bit corresponding to a VM monitor use general register 18 of a tag register 30. An access detecting part 31 detects one of the general register which are selected by a selector 33 under the control of an address register designating part 19 for instruction. By AND of the output of this selector 33, and the designated bit of PSW5 of a virtual computer, an address mode which is designated by the virtual computer is inputted to an access control part 10 through a control line 11. The access control part 10 receives the address of a bit length designated by the control line 11, from an address adder 21, and controls an access to a main storage device 2.

Description

【発明の詳細な説明】 〔概 要〕 主記憶装置のアクセスに複数のアドレスモードを持ち、
仮想計算機を実行する計算機におけるアドレスモードの
制御方式である。仮想計算機のアドレスモードと、モニ
タプログラムのアドレスモードが異なる場合に、モニタ
プログラムで仮想計算機の実行を代行するために仮想計
算機領域にアクセスする場合には、仮想計算機のアドレ
スモードに切り換える必要があるので、アドレスレジス
タに対応するタグビットをレジスタに保持し、タグで指
定されているアドレスレジスタを使って主記憶装置にア
クセスする場合には、仮想計算機のアドレスモードに切
り換える。以上の制御によりモニタプログラムが仮想計
算機のアドレスモードを考慮して制御するためのオーバ
ヘッドが減少される。
[Detailed Description of the Invention] [Summary] A main storage device having multiple address modes for accessing the main memory,
This is a method for controlling the address mode in a computer that executes a virtual machine. If the address mode of the virtual machine and the address mode of the monitor program are different, and the monitor program accesses the virtual machine area in order to execute the execution of the virtual machine, it is necessary to switch to the address mode of the virtual machine. , the tag bit corresponding to the address register is held in the register, and when accessing the main memory using the address register specified by the tag, the address mode is switched to the virtual machine address mode. The above control reduces the overhead required for the monitor program to perform control in consideration of the address mode of the virtual machine.

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

本発明は、主記憶装置のアクセスに複数のアドレスモー
l′を持Iつ、仮想Il+′1’/ aを実行する計算
機におけるアドレスモード 計算機において、別のl DI I−の仮想的な計算機
システム、いわゆる仮想計算機を制御する方式はよく知
られている。
The present invention provides an address mode computer in a computer that has a plurality of address modes for accessing the main memory and executes a virtual Il+'1'/a, in which a virtual computer system of another IDI I- is used. , a method for controlling so-called virtual machines is well known.

その場合に各仮想計算機は、実計算機の仮想計算機制御
用のモニタプr−1グラム(以下において、VMモニタ
という)の制御1:にあり、VMモニクによって制御を
渡された仮想旧算機が、実計算機の中央処理装置で実行
される。
In that case, each virtual computer is in the control 1 of the monitor program r-1 program (hereinafter referred to as VM monitor) for virtual computer control of the real computer, and the virtual old computer to which control is transferred by the VM monitor is Executed by the central processing unit of the real computer.

仮想計算機では、その仮想システムのオペレーティング
システムが、仮想、′il算機のシステム管理を実行す
るが、その制御の結果が、他の仮想計算機に影響する可
能性がある。1、うなものについては、VMモニタが介
入する等にJニー>て、実d1算機システム全体の保全
性を1111 (、’iする必要がある。
In a virtual computer, the operating system of the virtual system executes system management of the virtual computer, but the results of its control may affect other virtual computers. 1. Regarding such things, it is necessary to ensure the integrity of the entire real computer system by intervening with the VM monitor, etc.

しかし、このような介入Cよ一般に、制御コ11オーバ
ヘッドを増加して、仮想計算機の性能を低下させる要因
になり易い。
However, such intervention C generally increases the overhead of the control processor 11 and tends to be a factor in degrading the performance 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.

中央処理装置】は主記憶装置2上のVMモニタ3のプロ
グラムを実行して、仮想計算機ごとに割り当てた仮想計
算機領域4にあるプログラムに制御を渡すことにより、
仮想計算機を稼動する。
The central processing unit] executes the program of the VM monitor 3 on the main storage device 2 and transfers control to the program in the virtual machine area 4 allocated for each virtual machine.
Run the virtual machine.

公知のように、中央処理装置1には複数のアドレスモー
ドを持つ場合がある。即ち、例えば第1のアドレスモー
ドではアドレスの有効ビット長を24ビツト (例えば
24ビツトモードという)とし、第2のモードでは有効
ビット長を31ビツト (例えば31ビツトモードとい
う)とする。
As is well known, the central processing unit 1 may have a plurality of address modes. That is, for example, in the first address mode, the effective bit length of the address is 24 bits (for example, referred to as 24-bit mode), and in the second mode, the effective bit length is 31 bits (for example, referred to as 31-bit mode).

中央処理装置1には、上記のような複数のアドレスモー
ドのうち、プログラムの実行時に使用する1アドレスモ
ードを指定する情報として、プログラム状態語(以下に
おいてPSWという)5に例えば指定ビット12を設け
、そのオン/オフで上記第1及び第2のアドレスモード
を指定する。
The central processing unit 1 is provided with, for example, a designation bit 12 in the program status word (hereinafter referred to as PSW) 5 as information that designates one address mode to be used when executing a program among the plurality of address modes as described above. , the first and second address modes are specified by turning them on or off.

公知のように、命令の実行により主記憶装置2にアクセ
スする場合の記憶アドレスは、命令レジスタ18に保持
する命令のオペランドのアドレスレジスタ指定部19と
変位部20により指定される。
As is well known, the storage address when accessing the main storage device 2 by executing an instruction is specified by the address register specifying section 19 and the displacement section 20 of the operand of the instruction held in the instruction register 18.

即ち、アドレスレジスタ指定部19で指定される汎用レ
ジスタ群14のルジスタの内容に、変位部20の変位値
、及び要すれば別に指定されるインデクス値等をアドレ
ス加算器21で加えた出力アドレス値をアクセス制御部
10へ転送する。
That is, the output address value is obtained by adding the displacement value of the displacement section 20 and, if necessary, an index value specified separately, etc., to the contents of the register of the general-purpose register group 14 specified by the address register specification section 19 by the address adder 21. is transferred to the access control unit 10.

こ\で、アドレスモードの指定ビット12により、所定
のビット長部分を有効アドレスとして指定するために、
指定ビット12の信号を制御線11によりアクセス制御
部10に人力する。
Here, in order to specify a predetermined bit length part as a valid address using address mode specification bit 12,
The signal of the designated bit 12 is manually input to the access control unit 10 via the control line 11.

仮想計算機においても、中央処理装置1の前記機構を使
用して指定することにより、稼動する仮想計算機で使用
する任意のアドレスモードを指定することができる。
Even in a virtual machine, by specifying it using the mechanism of the central processing unit 1, it is possible to specify any address mode to be used in the operating virtual machine.

前記のように、仮想計算機の所要の処理については、V
Mモニタ3が介入してシミュレ−1・する必要があり、
その場合公知のように、VMモニタへの制御の移行にお
いて例えばVMクラッチ2がセントされることにより、
PSW5及び汎用レジスタ群14等に代わって、VMモ
ニタ用のPSW15及び汎用レジスタ群16等が有効化
される。
As mentioned above, for the necessary processing of the virtual machine, V
It is necessary for M monitor 3 to intervene and perform simulation 1.
In that case, as is well known, when the control is transferred to the VM monitor, for example, the VM clutch 2 is activated.
In place of the PSW 5 and the general-purpose register group 14, the VM monitor PSW 15, general-purpose register group 16, and the like are enabled.

VMモニタ3も一方のアドレスモード、例えば31ビツ
トモード、で実行するように構成され、その場合にはP
SW15の指定ビット17は31ビツトモードに設定さ
れている。
VM monitor 3 is also configured to run in one address mode, e.g. 31-bit mode, in which case P
Designation bit 17 of SW15 is set to 31-bit mode.

しかし、VMモニタ3が仮想計算機の処理を代行するた
めに、仮想計算機領域4にアクセスする場合には、仮想
計算機で指定しているアドレスモードによってアドレス
を生成する必要がある。
However, when the VM monitor 3 accesses the virtual machine area 4 in order to perform processing on behalf of the virtual machine, it is necessary to generate an address in accordance with the address mode specified by the virtual machine.

このために、VMモニタ3が主記憶装置2の仮想計算機
領域4にアクセスする場合には、仮想計算機のアドレス
モードを識別して、そのアドレスモードに変更するか、
又はそれと等価なアドレス処理を行う等の必要があり、
このオーバヘッドが仮想計算機制御の効率を低下させて
いた。
For this reason, when the VM monitor 3 accesses the virtual machine area 4 of the main storage device 2, it identifies the address mode of the virtual machine and changes to that address mode, or
Or, it is necessary to perform equivalent address processing, etc.
This overhead reduced the efficiency of virtual machine control.

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

第1図は、本発明の構成を示すブロック図である。 FIG. 1 is a block diagram showing the configuration of the present invention.

図において、30はタグ1/ジスタ、31はアクセス検
出部である。
In the figure, 30 is a tag 1/register, and 31 is an access detection section.

〔作 用〕[For production]

タグレジスタ30は、各汎用レジスタに対応するタグビ
ットを有し、VMモニタ3によって予め所要のビットが
セットされている。
The tag register 30 has tag bits corresponding to each general-purpose register, and required bits are set in advance by the VM monitor 3.

アクセス検出部31は、VMモニタの実行時に、通常は
PSW15の指定ピッl−17を制御線11へ出力して
いるが、タグレジスタ3oで指定されている汎用レジス
タが、命令のアドレスレジスタ指定部19で指定される
ことを検出すると、仮想計算機のPSW5の指定ピッ目
2の悟りを出力する。
The access detection unit 31 normally outputs the designated pin l-17 of the PSW 15 to the control line 11 when executing the VM monitor, but the general-purpose register designated by the tag register 3o is the address register designated part of the instruction. When it detects that it is specified by 19, it outputs the enlightenment of the specified pitch 2 of PSW 5 of the virtual machine.

以上により、VMモニタ3の実行中における仮想計算機
領域アクセス時、アドレスモードが自動的に切り換えら
れ、アドレスモードを考慮した処理によるオーバへ、ド
が除かれる。
As described above, when the virtual machine area is accessed during execution of the VM monitor 3, the address mode is automatically switched, and overflow due to processing that takes the address mode into consideration is eliminated.

〔実施例〕〔Example〕

第1図において、中央処理装置1のPSW5.15、ア
クセス制御部10等は、以下に述べる他は従来と同様に
動作するものとする。
In FIG. 1, it is assumed that the PSW 5.15 of the central processing unit 1, the access control unit 10, etc. operate in the same manner as in the prior art except as described below.

タグレジスタ30は、各汎用レジスタに対応する例えば
16個のタグビットを保持し、VMモニタ3は、その処
理中に仮想計算機領域にアクセスするための記↑aアド
レスを保持するアドレスレジスタとなる予定の汎用レジ
スタ (VMモニタ用の汎用レジスタ)に対応するタグ
ビットを、予めオンにセットしておく。
The tag register 30 holds, for example, 16 tag bits corresponding to each general-purpose register, and the VM monitor 3 is planned to be an address register that holds the address ↑a for accessing the virtual machine area during processing. The tag bit corresponding to the general-purpose register (general-purpose register for VM monitor) is set on in advance.

アクセス検出部31では、タグレジスタ30のタグビッ
トを、例えば命令のアドレスレジスタ指定部19の制御
によって選択器33により選択することにより、タグレ
ジスタ30で指定されている汎用レジスタの1つが、命
令のアドレスレジスタ指定部19で指定されることを検
出する。
In the access detection unit 31, one of the general-purpose registers specified in the tag register 30 is selected by the selector 33 under the control of the instruction address register specification unit 19, for example, by selecting the tag bit of the tag register 30. It is detected that the address register designation unit 19 designates the address register.

この選択器33の出力と、仮想計算機のPSW5の指定
ピッ1〜12との論理積により、仮想計算機で指定して
いるアドレスモードを制御線11を経てアクセス制御部
IOへ人力する。
By logically multiplying the output of the selector 33 and the designated pins 1 to 12 of the PSW 5 of the virtual machine, the address mode designated by the virtual machine is manually input to the access control unit IO via the control line 11.

アクセス制御部10は従来のように、制御線11の信号
によって指定されるピノl−長のアドレスをアドレス加
算器21から受は取っ−ζ、主記憶装置2に対するアク
セスを制御する。
As in the prior art, the access control section 10 receives from the address adder 21 the pinot-length address specified by the signal on the control line 11, and controls access to the main memory 2.

以上により、VMモニタ3の実行中において、仮想計算
機領域にアクセスする場合に、仮想計算機のアドレスモ
ードを考慮し゛ζアドレスを処理する必要が無くなり、
制御の効率を改善することができる。
As a result of the above, when accessing the virtual machine area while the VM monitor 3 is running, there is no need to consider the address mode of the virtual machine and process the 'ζ address.
Control efficiency can be improved.

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

以上の説明から明らかなよ・うに、仮想計算機を稼動す
る計算機システムにおいて、VMモニタにおける仮想計
算機のアドレスモードを考慮した制御が削減され、仮想
di算機制御のオーバヘッドを減少することができるの
で、仮想計算機の性能を向上するという著しい工業的効
果がある。
As is clear from the above explanation, in a computer system that runs a virtual machine, the control that takes into account the address mode of the virtual machine in the VM monitor can be reduced, and the overhead of virtual computer control can be reduced. It has a significant industrial effect of improving the performance of virtual machines.

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

第1図は本発明の実施例構成ブロック図、第2図は従来
の一構成例ブロック図である。 図において、 1は処理装置     2は主記憶装置、3はVMモニ
タ、   4は仮想計算機領域、5.15はpsw。 10はアクセス制御部、 12.17は指定ビット、 14.16は汎用レジスタ群、 19はアドレスレジスタ指定部、 20は変位部、     21はアドレス加算器、22
はVMラッチ、   30はタグレジスタ、特開11H
G2−114045(4) 従来の一構成例ブロック図 第2図 本発明の実施例構成ブロック図 第1図
FIG. 1 is a block diagram of an embodiment of the present invention, and FIG. 2 is a block diagram of an example of a conventional configuration. In the figure, 1 is a processing unit, 2 is a main storage device, 3 is a VM monitor, 4 is a virtual computer area, and 5.15 is a psw. 10 is an access control section, 12.17 is a specified bit, 14.16 is a general-purpose register group, 19 is an address register specification section, 20 is a displacement section, 21 is an address adder, 22
is the VM latch, 30 is the tag register, JP-A-11H
G2-114045 (4) Figure 2: Block diagram of a conventional configuration example Figure 1: Block diagram of an embodiment of the present invention

Claims (1)

【特許請求の範囲】 主記憶装置アクセスに使用する記憶アドレスを保持する
アドレスレジスタを有し、該記憶アドレスの有効ビット
長の異なる複数のアドレスモードを有し、仮想計算機及
び該仮想計算機を制御するモニタプログラムを実行する
計算機において、該アドレスレジスタ(16)を個別に
指定するタグビットを保持するタグレジスタ(30)、
及び、上記モニタプログラムで実行される命令のオペラ
ンドアドレスにより、該タグビットで指定されるアドレ
スレジスタが指定されたことを検出する手段(31)を
設け、 該検出手段の出力信号により、上記アドレスモードを上
記仮想計算機の使用するアドレスモードに切り換えるよ
うに構成されていることを特徴とするアドレスモード制
御方式。
[Scope of Claims] A virtual computer and a virtual computer having an address register that holds a storage address used for main storage access, having a plurality of address modes with different effective bit lengths of the storage address, and controlling the virtual computer. In a computer that executes a monitor program, a tag register (30) that holds tag bits that individually specify the address register (16);
and means (31) for detecting that the address register specified by the tag bit is designated by the operand address of the instruction executed by the monitor program, and the address mode is determined by the output signal of the detecting means. An address mode control method characterized in that the address mode is configured to switch to an address mode used by the virtual machine.
JP60254027A 1985-11-13 1985-11-13 Address mode control system Pending JPS62114045A (en)

Priority Applications (8)

Application Number Priority Date Filing Date Title
JP60254027A JPS62114045A (en) 1985-11-13 1985-11-13 Address mode control system
AU64878/86A AU571377B2 (en) 1985-11-13 1986-11-06 Main storage access control system
CA000522328A CA1280829C (en) 1985-11-13 1986-11-06 Main storage access control system for virtual computing function system
DE8686308805T DE3688177T2 (en) 1985-11-13 1986-11-12 MAIN MEMORY ACCESS CONTROL DEVICE FOR VIRTUAL COMPUTER FUNCTION ARRANGEMENT.
EP86308805A EP0223551B1 (en) 1985-11-13 1986-11-12 Main storage access control system for virtual computing function system
BR8605598A BR8605598A (en) 1985-11-13 1986-11-12 CONTROL SYSTEM OF ACCESS TO MAIN MEMORY FOR A VIRTUAL COMPUTER FUNCTION SYSTEM
KR1019860009592A KR910001447B1 (en) 1985-11-13 1986-11-13 Main storage access control system for virtual computing function system
US06/929,796 US4782443A (en) 1985-11-13 1986-11-13 Main storage control system for virtual computing function system with plural address modes in main storage access operations

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60254027A JPS62114045A (en) 1985-11-13 1985-11-13 Address mode control system

Publications (1)

Publication Number Publication Date
JPS62114045A true JPS62114045A (en) 1987-05-25

Family

ID=17259218

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60254027A Pending JPS62114045A (en) 1985-11-13 1985-11-13 Address mode control system

Country Status (1)

Country Link
JP (1) JPS62114045A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6413634A (en) * 1987-07-08 1989-01-18 Hitachi Ltd Virtual computer system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5576447A (en) * 1978-12-01 1980-06-09 Fujitsu Ltd Address control system for software simulation

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5576447A (en) * 1978-12-01 1980-06-09 Fujitsu Ltd Address control system for software simulation

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6413634A (en) * 1987-07-08 1989-01-18 Hitachi Ltd Virtual computer system

Similar Documents

Publication Publication Date Title
US4347565A (en) Address control system for software simulation
KR920010978B1 (en) Computer system with interrupt controller
JPS6258341A (en) Input and output interruption processing system
US4520441A (en) Data processing system
KR910001447B1 (en) Main storage access control system for virtual computing function system
US4967342A (en) Data processing system having plurality of processors and channels controlled by plurality of system control programs through interrupt routing
JPH02734B2 (en)
JPH0430053B2 (en)
US5291605A (en) Arrangement and a method for handling interrupt requests in a data processing system in a virtual machine mode
EP0550286A2 (en) 2-Level multi-processor synchronization protocol
WO1993013483A1 (en) Software control of hardware interruptions
JPS6055849B2 (en) Command control method
EP0303783B1 (en) Data processing system with logical processor facitily
JPS62114045A (en) Address mode control system
JPS6266336A (en) Vm mode changing device
JPH06332803A (en) Tlb control method in virtual computer system
JPS6049352B2 (en) data processing equipment
JP2535086B2 (en) Ring reduction logic device
JPS62114046A (en) Access control system
JPS62114042A (en) Program event recording control system
JPS61184643A (en) Starting control system for virtual computer
JP2702925B2 (en) Page Table Invalidation Method in Virtual Machine System
JPH0754468B2 (en) Virtual computer system
JPH0567973B2 (en)
JPS62125437A (en) Control method for additional processor