JPS6220034A - Program status word switching control system - Google Patents

Program status word switching control system

Info

Publication number
JPS6220034A
JPS6220034A JP15980685A JP15980685A JPS6220034A JP S6220034 A JPS6220034 A JP S6220034A JP 15980685 A JP15980685 A JP 15980685A JP 15980685 A JP15980685 A JP 15980685A JP S6220034 A JPS6220034 A JP S6220034A
Authority
JP
Japan
Prior art keywords
psw
effective
storage device
register
program state
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
JP15980685A
Other languages
Japanese (ja)
Inventor
Hisashi Ibe
井辺 寿
Masayuki Okada
誠之 岡田
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 JP15980685A priority Critical patent/JPS6220034A/en
Publication of JPS6220034A publication Critical patent/JPS6220034A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain a system as a RAM by storing a program status word (PSW) of a virtual computer and modifying data in a RAM and reading out them to operate OR by microprogram control and sending this OR result to a register of each part as an effective PSW. CONSTITUTION:The current PSW generated for each virtual computer is stored in a storage device 20, and modifying data prepared by a high pervisor is stored in a storage device. When the high pervisor executes a specific PSW load instruction for execution of the virtual computer, a microprogram control part 24 which controls execution of this instruction reads out the current PSW and modifying data in prescribed addresses of storage devices 10 and 21 and receives the OR result through an OR gate 22 and a selecting circuit 23, and this result is distributed to the register in each part through a load line 25 as the effective PSW.

Description

【発明の詳細な説明】 〔概 要〕 計算機システムの処理装置における、プログラム状態語
(PSW)の切換制御方式である。特に仮想計算機を実
行する場合に、仮想計算機のpswは、仮想計算機を管
理するハイパバイザプログラム等が設定する情報によっ
て修飾されたものを実効的なPSWとするように制御さ
れる。その場合に、実効PSWの生成と、該語をレジス
タに設定して有効化する制御とを分離することによって
、生成から設定までの時間的制約等が緩和されるので、
PSW及び修飾データを、いわゆるRAMの記憶装置に
保持する構成が可能になり、処理装置の経済性等を改善
することができる。
[Detailed Description of the Invention] [Summary] This is a program state word (PSW) switching control method in a processing device of a computer system. In particular, when a virtual machine is executed, the PSW of the virtual machine is controlled so that the effective PSW is modified by information set by a hypervisor program or the like that manages the virtual machine. In that case, by separating the generation of the effective PSW from the control to set the word in a register and enable it, the time constraints from generation to setting can be relaxed.
A configuration in which the PSW and modification data are held in a so-called RAM storage device becomes possible, and the economical efficiency of the processing device can be improved.

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

本発明は、計算機システムの、特に仮想計算機を実行す
る処理装置における、プログラム状態語(以下において
、PSWという)の切換制御方式ある計算機で、別の計
算機システムをシミュレートする、いわゆる仮想計算機
方式はよく知られている。
The present invention relates to a program state word (hereinafter referred to as PSW) switching control method in a computer system, particularly in a processing unit that executes a virtual machine. well known.

仮想計算機を実行する場合には、管理プログラムである
ハイパバイザが、一般に複数の仮想計算機の実行を管理
し、例えばハイパバイザが所定のpswを設定して、仮
想計算機の1つに制御を渡すことにより、仮想計算機の
実行が開始され、特権命令の実行等において、仮想計算
機からハイパバイザに割り出しが起こされることにより
、ハイパバイザによる制御が行われる。
When running a virtual machine, a hypervisor, which is a management program, generally manages the execution of multiple virtual machines. For example, the hypervisor sets a predetermined psw and transfers control to one of the virtual machines. Execution of the virtual machine is started, and control is performed by the hypervisor by issuing an instruction from the virtual machine to the hypervisor to execute a privileged instruction or the like.

〔従来の技術と発明が解決しようとする問題点〕PSW
は公知のように、実行するプログラムの各種制御モード
、割込マスク、記憶アクセスキー、命令アドレスその他
からなり、プログラムの実行環境を規定するための制御
情報を構成する。
[Problems to be solved by conventional technology and invention] PSW
As is well known, the control information includes various control modes of the program to be executed, interrupt masks, storage access keys, instruction addresses, etc., and constitutes control information for defining the execution environment of the program.

例えば第2図は、第1語1及び第2語2の2語からなる
、64ビツトのPSWO例を示し、各部l、2の中のビ
ットは、例えば表に示すような概略機能を持つ制御ビッ
トである。
For example, FIG. 2 shows an example of a 64-bit PSWO consisting of two words, the first word 1 and the second word 2, and the bits in each part 1 and 2 are control units with general functions as shown in the table. It's a bit.

表 PSWは各プログラムに対して生成されて、例えば主記
憶装置に格納されており、あるプログラムに制御が渡る
とき、そのプログラムに対するPSW(これを現PSW
という)を処理装置の所定のレジスタにロードすること
により、プログラムの実行環境が設定される。
A table PSW is generated for each program and stored, for example, in the main memory, and when control is passed to a certain program, the PSW for that program (this is the current PSW
) is loaded into a predetermined register of the processing device, the execution environment of the program is set.

仮想計算機の実行において、仮想計算機のpsWは、該
仮想計算機で実行される管理プログラムが生成するが、
それをそのま−計算機を制御する現pswとして有効化
して、実行環境が変更されると、割込マスク、アドレス
変換その他の制御の変更は、システム全体に影響して、
不都合を生じる可能性がある。
During execution of a virtual machine, the psW of the virtual machine is generated by a management program executed on the virtual machine.
If it is enabled as the current psw that controls the computer, and the execution environment is changed, changes to interrupt masks, address translation, and other controls will affect the entire system.
This may cause inconvenience.

そこで、ハイパバイザが介入して、第2図の修飾データ
3として例示する情報と、現PSWの所要ピントとの論
理和を構成したものを、実効PSWとして有効化するよ
うにしている。こ\で、制御されるビットは、例えばR
ST、 10. EX、 M及びPビットである(図に
、修飾データの対応ビットをXで示す)。
Therefore, the hypervisor intervenes and validates the logical sum of the information exemplified as modification data 3 in FIG. 2 and the required focus of the current PSW as the effective PSW. Here, the bit controlled is, for example, R
ST, 10. EX, M and P bits (corresponding bits of the modification data are indicated by X in the figure).

このために、第3図に示すように、現PSWのレジスタ
10、修飾データのレジスタ11の内容をゲート12で
論理和をとり、選択回路13によって仮想計算機の場合
には論理和出力を、又その他の場合にはレジスタ10の
内容を選択して、実効PSW14とする。
For this purpose, as shown in FIG. 3, the contents of the register 10 of the current PSW and the register 11 of the modification data are ORed at the gate 12, and the selection circuit 13 outputs the OR output in the case of a virtual machine, or In other cases, the contents of the register 10 are selected and set as the effective PSW 14.

選択回路13を制御するために、仮想計算機動作状態を
示すレジスタ15が別に設定される。
In order to control the selection circuit 13, a register 15 indicating the virtual machine operating state is separately set.

なお、実効pswは、概念的には1個の制御語であるが
、前記のように機能の異なる多数の制御ビットからなる
ので、それぞれはその関連する制御部分の近傍に配置さ
れる結果、一般に多数の集積回路のレジスタに分散され
ることになる。
Note that the effective psw is conceptually one control word, but as mentioned above, it consists of a large number of control bits with different functions, and as a result, each bit is placed near its associated control part. It will be distributed across multiple integrated circuit registers.

近年、レジスタ類をできるだけ、いわゆるランダムアク
セスメモリ(RAM)からなる記憶装置に記憶し、必要
なものを必要な時に読み出して制御に使用する方式が考
えられている。このようにRAMを論理回路の構成に利
用することにより、レジスタ類をより高密度に集積する
ことが容易になり、装置の経済化が得られる。
In recent years, a system has been considered in which registers are stored as much as possible in a storage device consisting of a so-called random access memory (RAM), and necessary registers are read out when necessary and used for control. By utilizing RAM in the configuration of logic circuits in this manner, registers can be easily integrated at a higher density, resulting in economicalization of the device.

しかし、前記の第3図のPSWの制御については、記憶
装置から読み出したPSWと修飾データについて論理を
とった後に、各部へ分配する必要があるので、記憶装置
読み出しからのパスが長く、且つ一定でない等のために
、前記RAMレジスク方式を適用し難いという問題があ
った。
However, regarding the control of the PSW shown in FIG. 3, it is necessary to perform logic on the PSW read from the storage device and the modification data before distributing it to each part, so the path from reading the storage device is long and constant. Therefore, there was a problem in that it was difficult to apply the RAM resist method.

C問題点を解決するための手段〕 第1図は、本発明の構成を示すプロ・ツク図である。Measures to solve problem C] FIG. 1 is a block diagram showing the configuration of the present invention.

図において、20.21はレジスタ用のRAMからなる
記憶装置、22は論理和ゲート、23は選択回路、24
はマイクロプログラム制御部である。
In the figure, 20 and 21 are storage devices consisting of RAM for registers, 22 is an OR gate, 23 is a selection circuit, and 24
is a microprogram control section.

〔作 用〕[For production]

記憶装置20には、少な(とも各仮想計算機に対して生
成された現pswを格納し、記憶装置21にはハイパバ
イザが4備する修飾データを格納しである。
The storage device 20 stores a small amount of current psw generated for each virtual machine, and the storage device 21 stores modification data provided by four hypervisors.

ハイパバイザが仮想計算機の実行のために、例えば特定
のpswロード命令を実行すると、該命令の実行を制御
するマイクロプログラム制御部24は、先ず記憶装置2
0と21の所定アドレスから、現PSWと修飾データを
読み出し、論理和ゲート22、選択回路23を経て論理
和結果を受は取る。
When the hypervisor executes, for example, a specific psw load instruction for execution of a virtual machine, the microprogram control unit 24 that controls the execution of the instruction first
The current PSW and modification data are read from predetermined addresses 0 and 21, and the OR result is received through the OR gate 22 and the selection circuit 23.

次に、この結果を実効PSWとして、ロード線25を経
て各部のレジスタへ分配する。
Next, this result is distributed to the registers of each part via the load line 25 as an effective PSW.

以上の構成により、仮想計算機の現pswのレジスタを
RAM化して、記憶装置に置くことが可能になる。
With the above configuration, it becomes possible to convert the current psw register of the virtual machine into RAM and store it in the storage device.

〔実施例〕〔Example〕

第1図において、実効PSW14及びレジスタ15は第
3図と同様の機能を有する。
In FIG. 1, the effective PSW 14 and register 15 have the same functions as in FIG. 3.

記憶装置20には、少なくとも各仮想計算機に対して生
成された現pswを格納し、記憶装置21にはハイパバ
イザが準備する修飾データを格納しである。
The storage device 20 stores at least the current psw generated for each virtual machine, and the storage device 21 stores modification data prepared by the hypervisor.

通常のPSWロード命令(吾11えばLPSW命令)が
実行された場合には、マイクロプログラム制御部24は
、指定のロードデータをロード線26により、実効PS
W14にロードすると共に、記憶装置20の所定アドレ
スに格納する。
When a normal PSW load instruction (for example, an LPSW instruction) is executed, the microprogram control unit 24 transfers specified load data to the effective PS via the load line 26.
It is loaded into W14 and stored at a predetermined address in storage device 20.

仮想計算機で、例えばLPSW命令がフェッチされた場
合には、その実行は中断されてハイパバイザに制御が渡
る。
For example, when an LPSW instruction is fetched in a virtual machine, its execution is interrupted and control is passed to the hypervisor.

こ−で、ハイパバイザが所要の管理処理等の後、仮想計
算機のLPSW命令をシミュレートして、仮想計算機に
制御を戻すために、例えば特定のpswロード命令を実
行する。
After the hypervisor performs necessary management processing and the like, it simulates the LPSW instruction of the virtual machine and executes, for example, a specific psw load instruction in order to return control to the virtual machine.

この特定のPSWロード命令の実行において、マイクロ
プログラム制御部24は、先ず記憶装置20と21の所
定アドレスから、現PSWと修飾データを読み出し、論
理和ゲート22、選択回路23を経て論理和した結果を
受は取る。
In executing this specific PSW load instruction, the microprogram control unit 24 first reads the current PSW and modification data from predetermined addresses in the storage devices 20 and 21, and passes through the OR gate 22 and the selection circuit 23 to OR the result. I will take it.

次に、この結果を実効PSWとして、ロード線25を経
て各部のレジスタへ分配する。
Next, this result is distributed to the registers of each part via the load line 25 as an effective PSW.

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

以上の説明から明らかなように、本発明によれば、仮想
計算機を実行する処理装置において、現PSW等のレジ
スタをRAM化することが可能になるので、処理装置の
集積の高度化を容易にし、経済性、信頼性等を改善する
という著しい工業的効果がある。
As is clear from the above description, according to the present invention, in a processing device that executes a virtual machine, registers such as the current PSW can be converted into RAM, making it easy to increase the sophistication of the integration of the processing device. It has a remarkable industrial effect of improving economy, reliability, etc.

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

第1図は本発明の実施例構成ブロック図、第2図はps
wの説明図、 第3図は従来の一構成例ブロック図である。 図において、 1はpswの第1語、 2はpswの第2語、3は修飾
データ、   10.11.15はレジスタ、12.2
2は論理和ゲート、13.23は選択回路、14は実行
psw、   20.21は記憶装置、24はマイクロ
プログラム制御部 本発明のn健u成ブロック図 第1図 pswの説明図 従来の一構成例ブロック図 第3図
Fig. 1 is a block diagram of the configuration of an embodiment of the present invention, Fig. 2 is a ps
FIG. 3 is a block diagram of a conventional configuration example. In the figure, 1 is the first word of psw, 2 is the second word of psw, 3 is modification data, 10.11.15 is a register, 12.2
2 is an OR gate, 13.23 is a selection circuit, 14 is an execution psw, 20.21 is a storage device, and 24 is a microprogram control unit. Configuration example block diagram Figure 3

Claims (1)

【特許請求の範囲】 計算機システムの処理装置において、 現プログラム状態語及び修飾データを保持する記憶装置
(20、21)、 実効プログラム状態語を保持する手段(14)、該記憶
装置(20、21)から該現プログラム状態語及び該修
飾データを読み出し、該現プログラム状態語に該修飾デ
ータによって所定の修飾を実施してなる、実効プログラ
ム状態語を構成する機構(22、23) 及び、該機構と分離されてなり、該構成した実効プログ
ラム状態語を上記レジスタに設定する機構(24、25
)を有することを特徴とするプログラム状態語切換制御
方式。
[Claims] In a processing device of a computer system, a storage device (20, 21) for holding a current program state word and modification data, a means (14) for holding an effective program state word, and a storage device (20, 21) for holding an effective program state word. ), and a mechanism (22, 23) that configures an effective program state word by reading out the current program state word and the modification data from the current program state word and performing a predetermined modification on the current program state word using the modification data; and a mechanism (24, 25) for setting the configured effective program state word in the register.
) A program state word switching control method characterized by having the following.
JP15980685A 1985-07-19 1985-07-19 Program status word switching control system Pending JPS6220034A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15980685A JPS6220034A (en) 1985-07-19 1985-07-19 Program status word switching control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15980685A JPS6220034A (en) 1985-07-19 1985-07-19 Program status word switching control system

Publications (1)

Publication Number Publication Date
JPS6220034A true JPS6220034A (en) 1987-01-28

Family

ID=15701664

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15980685A Pending JPS6220034A (en) 1985-07-19 1985-07-19 Program status word switching control system

Country Status (1)

Country Link
JP (1) JPS6220034A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01152541A (en) * 1987-12-09 1989-06-15 Hitachi Ltd Virtual machine system
JPH0373031A (en) * 1989-08-14 1991-03-28 Fujitsu Ltd Memory access control system
KR102048296B1 (en) 2019-06-27 2019-11-25 (주) 씨플렉스코리아 A floating pier of external force absorbing

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01152541A (en) * 1987-12-09 1989-06-15 Hitachi Ltd Virtual machine system
JPH0373031A (en) * 1989-08-14 1991-03-28 Fujitsu Ltd Memory access control system
KR102048296B1 (en) 2019-06-27 2019-11-25 (주) 씨플렉스코리아 A floating pier of external force absorbing

Similar Documents

Publication Publication Date Title
US4347565A (en) Address control system for software simulation
KR870000668B1 (en) Data processing system with virtual computer
Glaser et al. System design of a computer for time sharing applications
US4386402A (en) Computer with dual vat buffers for accessing a common memory shared by a cache and a processor interrupt stack
KR960011613A (en) Data processing device
Myers et al. Microprocessor technology trends
CN108351826A (en) Monitor the operation of processor
EP0205692A1 (en) Improvements in microprocessors
WO1983001133A1 (en) Microprocessor with memory having interleaved address inputs and interleaved instruction and data outputs
JPS6376034A (en) Multiple address space control system
GB2216306A (en) Load and synchronize computer architecture and process
KR920003044B1 (en) Control system for guest execution of virtual computer system
JPS6220034A (en) Program status word switching control system
JP2000353092A (en) Information processor and register file switching method for the processor
Lavington Manchester computer architectures, 1948-75
JPS61184643A (en) Starting control system for virtual computer
JP2619416B2 (en) emulator
JP3088285B2 (en) In-circuit emulator
JP2552287B2 (en) System bus method
JP2883488B2 (en) Instruction processing unit
JP2000029508A (en) Programmable controller
JPH0412861B2 (en)
JPS63180171A (en) Information processor
JPS60215250A (en) Data processor
JPS6279546A (en) System for converting and controlling dynamic address