JPH0373031A - Memory access control system - Google Patents

Memory access control system

Info

Publication number
JPH0373031A
JPH0373031A JP1209961A JP20996189A JPH0373031A JP H0373031 A JPH0373031 A JP H0373031A JP 1209961 A JP1209961 A JP 1209961A JP 20996189 A JP20996189 A JP 20996189A JP H0373031 A JPH0373031 A JP H0373031A
Authority
JP
Japan
Prior art keywords
guest
psw
host
information
register
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
JP1209961A
Other languages
Japanese (ja)
Other versions
JP2802109B2 (en
Inventor
Akisumi Koike
小池 夫澄
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 JP1209961A priority Critical patent/JP2802109B2/en
Publication of JPH0373031A publication Critical patent/JPH0373031A/en
Application granted granted Critical
Publication of JP2802109B2 publication Critical patent/JP2802109B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To execute an instruction for directly accessing a guest space, which is issued by a host, at high speed by executing access control to a memory address, to which the guest is correspondent, according to selected key information and address mode information when the guest access instruction is executed. CONSTITUTION:While the guest is traveled, a selecting means 8 selects the key information in the PSW of a PSW register 1 and the address mode information in the modified PSW of a real PSW register 3. Accordingly, an effective address adder 10 can calculate the memory address for accessing the guest space under traveling. At such a time, a storing means 7 is set to an enable state according to the travel information of the guest and stores the same key information and address mode information as the key information and address mode information to be stored in an operational AM/KEY register 9 while updating the information. Thus, the instruction to directly access the guest space to be issued by the host can be executed at high speed.

Description

【発明の詳細な説明】 〔概要〕 仮想計算機システムにおいてのメモリアクセス制御方式
に関し、 ホストが発行するゲスト空間を直接アクセスするための
命令を高速に実行できるようにすることを目的とし、 ゲストの走行中にイネーブル状態に設定されて、PSW
中のキー情報と修飾されたPSW中のアドレスモード情
報とを更新しながら格納していくとともに、ファームウ
ェアを介してホストに制御が移されるときに、ディスイ
ネーブル状態に設定されてそれらの情報を保持する記憶
手段と、ホストからゲストに直接アクセスするゲストア
クセス命令が発行されるときに、ホストに対応させて設
定されているP′SW中のキー情報と修飾されたPSW
中のアドレスモード情報とに換えて、記憶手段のキー情
報及びアドレスモード情報を選択する選択手段とを備え
、選択手段により選択されたキー情報及びアドレスモー
ド情報に従って、ゲストの対応するメモリアドレスへの
アクセス制御を実行するよう構成する。
[Detailed Description of the Invention] [Summary] Regarding a memory access control method in a virtual computer system, the purpose of this invention is to enable high-speed execution of instructions issued by a host to directly access a guest space, is set to the enabled state and the PSW
It updates and stores the key information inside and the address mode information in the modified PSW, and when control is transferred to the host via firmware, it is set to a disabled state and retains that information. and a PSW modified with the key information in the P'SW set corresponding to the host when a guest access command for direct access from the host to the guest is issued.
a selection means for selecting key information and address mode information of the storage means in place of the address mode information in the storage means; Configure to perform access control.

〔産業上の利用分野] 本発明は、仮想計算機システムにおいてのメモリアクセ
ス制御方式に関し、特に、ホストが発行するゲスト空間
を直接アクセスするための命令を高速に実行できるよう
にするメモリアクセス制御方式に関するものである。
[Industrial Application Field] The present invention relates to a memory access control method in a virtual computer system, and particularly to a memory access control method that enables high-speed execution of instructions issued by a host to directly access a guest space. It is.

〔従来の技術〕[Conventional technology]

1台の実計算機のもとで複数台の仮想針Xmを動作させ
る仮想計算機システムでは、ホストより直接ゲスト空間
をアクセスする命令が定義されている。この命令は、ホ
ストが直前に走行したゲストの命令をソフトウェアシミ
ュレーションにより仮想的に実行する場合に、ホスト・
ゲスト間でデータの転送を行うために使用される命令で
ある。
In a virtual computer system in which a plurality of virtual needles Xm are operated under one real computer, an instruction for directly accessing the guest space from the host is defined. This instruction is used when the host virtually executes the instructions of the guest that ran just before using software simulation.
This is an instruction used to transfer data between guests.

従来、このホスト・ゲスト間のデータ転送を行う命令は
ファームウェアで実行されるよう構成されていた。
Conventionally, instructions for transferring data between a host and a guest have been configured to be executed by firmware.

次に、第3図に従って、従来技術について詳細に説明す
る0図中、Aはメモリ上におけるホスト、ゲスト、ファ
ームウェアの領域を示したものであり、Bはホスト領域
上にとられるゲスト資源の管理データ(PSW・制御レ
ジスタ情報等とゲスト空間の上限・下限アドレス)を示
したものであり、Cはファームウェア領域上にとられる
ホスト資源の管理データ(PSW・制御レジスタ情報等
とホスト空間の上限・下限アドレス)及びゲスト資源の
管理データ(PSW・制御レジスタ情報等とゲスト空間
の上限・下限アドレス)を示したものである。なお図中
では、ゲスト空間の上限アドレスをGABR情報、ゲス
ト空間の下限アドレスをGALR情報、ホスト空間の上
限アドレスをHABR情報、ホスト空間の下限アドレス
をHALR情報と記述しである。
Next, according to FIG. 3, the prior art will be explained in detail.In the diagram, A shows the host, guest, and firmware areas on the memory, and B shows the management of guest resources taken on the host area. It shows the data (PSW/control register information, etc. and the upper and lower limit addresses of the guest space), and C shows the host resource management data (PSW/control register information, etc. and the upper and lower limit addresses of the host space) stored in the firmware area. (lower limit address) and guest resource management data (PSW/control register information, etc. and upper and lower limit addresses of the guest space). In the figure, the upper limit address of the guest space is described as GABR information, the lower limit address of the guest space as GALR information, the upper limit address of the host space as HABR information, and the lower limit address of the host space as HALR information.

先ず最初に、ホストからゲストガ1に起動命令が発行さ
れると、ホストからファームウェアにプログラム割込で
この起動命令が通知される。この通知を受は取ると、フ
ァームウェアは、ファームウェア内の対応する領域に走
行されていたホストのPSW・制御レジスタ情報等を退
避させる0次に、起動しようとするゲストガ1のゲスト
資源をホスト領域より読み出してファームウェア内の対
応する領域に格納するとともに、第4図に示すように、
実ハードウェア上の実PSWレジスタ3とゲスト空間上
限アドレスレジスタ42とゲスト空間下限アドレスレジ
スタ43のそれぞれに、ホスト領域から読み出されたゲ
ストガ1のPSW、GABR情報、GALR情報を設定
してゲストガ1を起動する。なお、第4図中、40はH
ABR情報を格納するホスト空間上限アドレスレジスタ
、41はHALR情報を格納するホスト空間下限アドレ
スレジスタである。
First, when a boot command is issued from the host to the guest 1, the host notifies the firmware of the boot command via a program interrupt. Upon receiving this notification, the firmware saves the PSW/control register information, etc. of the host that was running to the corresponding area in the firmware. Next, the guest resource of the guest to be started is transferred from the host area. It is read out and stored in the corresponding area in the firmware, and as shown in Figure 4,
The PSW, GABR information, and GALR information of the guest ga 1 read from the host area are set in the real PSW register 3, guest space upper limit address register 42, and guest space lower limit address register 43 on the actual hardware, respectively, and the guest ga 1 Start. In addition, in Fig. 4, 40 is H
A host space upper limit address register 41 stores ABR information, and a host space lower limit address register 41 stores HALR information.

その後、ゲストガ1よりホストでのソフトウェアシミュ
レーションを行う命令が発行されると、ファームウェア
は、ファームウェア内の対応する領域に走行されていた
ゲスト#lのPSW・制御レジスタ情報等を退避させて
から、退避させであるファームウェア領域のホスト資源
のPSWを実PSWレジスタ3に設定してホストを起動
するよう処理する。
After that, when guest #1 issues a command to perform software simulation on the host, the firmware saves the PSW/control register information, etc. of guest #1 that was running in the corresponding area in the firmware, and then The PSW of the host resource in the firmware area is set in the actual PSW register 3, and the host is activated.

このようにしてソフトウェアシミュレーションの実行に
入るときにあって、ホストでゲスト空間を直接アクセス
するためのゲストアクセス命令が発行されると、実計算
機上のハードウェアではホストのPSWLかもっていな
いために、ゲストガ1のアドレスモード情報(その仮想
計算機がどういうアドレス形式をとっているのかという
情報)とキー情報(主記憶を管理するためにページ単位
に設けられている制御ビット)とが分からず、これから
ホストは、ファームウェアにプログラム割込を通知して
、ファームウェアにこのホスト・ゲスト間のデータ転送
命令を実行してもらうよう処理していた。すなわち、フ
ァームウェアが、ファームウェア領域にあるゲストガ1
のアドレスモード情報とキー情報とに従ってゲストガ1
のゲスト空間をアクセスするためのアドレスを求めるこ
とで、ホスト・ゲスト間のデータ転送を実行するよう処
理していたのである。
When executing a software simulation in this way, if the host issues a guest access command to directly access the guest space, the hardware on the actual computer does not even have the host's PSWL, so the guest 1's address mode information (information about what address format the virtual machine has) and key information (control bits provided for each page to manage main memory), the host will be unable to do so from now on. , the program interrupt was notified to the firmware, and the firmware was processed to execute this data transfer instruction between the host and the guest. In other words, the firmware is installed in the guest file 1 in the firmware area.
According to the address mode information and key information of the guest
By obtaining the address to access the guest space of the host, data transfer between the host and the guest was performed.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかしながら、このような従来技術では、ホストが発行
するゲスト空間を直接アクセスするための命令をファー
ムウェアが実行するという構成をとることから、ホスト
が実行するソフトウェアシミュレーシッンに多大な処理
時間を要してしまうという問題点があった。
However, in such conventional technology, since the firmware executes instructions issued by the host to directly access the guest space, the software simulation executed by the host requires a large amount of processing time. There was a problem with it being put away.

本発明はかかる事情に鑑みてなされたものであって、ホ
ストが発行するゲスト空間を直接アクセスするための命
令を高速で実行できるようにする新たなメモリアクセス
制御方式を提供することを目的とするものである。
The present invention has been made in view of the above circumstances, and it is an object of the present invention to provide a new memory access control method that enables high-speed execution of instructions issued by a host to directly access a guest space. It is.

〔課題を解決するための手段〕[Means to solve the problem]

第1図は本発明の原理構成図である。 FIG. 1 is a diagram showing the basic configuration of the present invention.

図中、工はPSWレジスタであって、走行中の空間のP
SWを格納するもの、2は拡張制御レジスタであって、
PSWレジスタ1のPSWを修飾するための修飾データ
を格納するもの、3は実PSWレジスタであって、拡張
制御レジスタ2の修飾データにより修飾されたPSWを
格納するもの、4はステート制御部であって、ホストと
ゲストが走行中には“1″を出力し、ファームウェアが
走行中には0″を出力するもの、5は命令の制御を実行
するマイクロプログラムであって、ソフトウェアシξユ
レーシゴンの実行中にホストからゲスト空間を直接アク
セスするためのゲストアクセス命令が発行されるときに
は1″を出力するよう制御するもの、6はANDゲ・−
トであって、ホストの走行中にマイクロプログラム5か
らゲストアクセス命令が送出されるときに1″を出力す
るもの、7は記憶手段であって、ゲストの走行中にイネ
ーブル状態に設定されて、PSWレジスタ1のPSW中
のキー情報と実PSWレジスタ3の修飾されたPSW中
のアドレスモード情報とを順次更新しながら格納してい
くとともに、ファームウェアを介してホストに制御が移
されるときにディスイネーブル状態に設定されて、ディ
スイネーブル状態に設定された時点のキー情報及びアド
レスモード情報を保持するよう処理するもの、8は選択
手段であって、ANDゲート6から”O”が出力される
ときには、PSWレジスタ1のPSW中のキー情報と実
PSWレジスタ3の修飾されたPSW中のアドレスモー
ド情報とを選択し、ANDゲート6から1′が出力され
るときには、記憶手段7に保持されているキー情報とア
ドレスモード情報とを選択するもの、9は動作AM/K
EYレジスタであって、選択手段8が選択出力するキー
情報及びアドレスモード情報を格納するもの、10は有
効アドレス加算器であって、動作AM/KEYレジスタ
9のアドレスモード情報の指定に従ってベースアドレス
とインデックスとディスプレイスメントとからメモリア
ドレスを算出するものである。
In the figure, numeral is the PSW register, and P in the space in which it is running.
2 is an extension control register that stores the SW,
PSW register 1 stores modification data for modifying the PSW, 3 is a real PSW register that stores PSW modified by the modification data of extended control register 2, and 4 is a state control section. 5 outputs "1" while the host and guest are running, and outputs 0" while the firmware is running; 5 is a microprogram that executes command control; 6 is an AND game.
7, which outputs 1'' when a guest access command is sent from the microprogram 5 while the host is running; 7 is a storage means that is set to an enabled state while the guest is running; The key information in the PSW of PSW register 1 and the address mode information in the modified PSW of real PSW register 3 are sequentially updated and stored, and are disabled when control is transferred to the host via firmware. 8 is a selection means that processes to hold the key information and address mode information at the time when the AND gate 6 outputs "O". When the key information in the PSW of the PSW register 1 and the address mode information in the modified PSW of the real PSW register 3 are selected and 1' is output from the AND gate 6, the key information held in the storage means 7 is selected. information and address mode information selection, 9 is operation AM/K
EY register, which stores the key information and address mode information selected and output by the selection means 8; 10 is an effective address adder, which inputs the base address and the address mode information according to the specification of the address mode information of the operation AM/KEY register 9; A memory address is calculated from an index and displacement.

〔作用〕[Effect]

本発明では、ゲストの走行中には、ANDゲート6が“
0″を出力しているので、選択手段8は、PSWレジス
タ1のPSW中のキー情報と実PSWレジスタ3の修飾
された13w中のアドレスモード情報とを選択すること
で、動作AM/KEYレジスタ9に対して、走行中のゲ
ストの現Pswのキー情報と使用されているアドレスモ
ード情報とを入力していくよう処理する。これにより、
有効アドレス加算器10は、走行中のゲスト空間をアク
セスするためのメモリアドレスを算出できることになる
。このとき、記憶手段7は、ゲストの走行情報に従って
イネーブル状態に設定され、動作AM/KEYレジスタ
9に格納されていくキー情報・アドレスモード情報と同
じキー情報・アドレスモード情報を更新しながら格納し
ていくよう処理することになる。
In the present invention, while the guest is running, the AND gate 6 is
0'', the selection means 8 selects the key information in the PSW of the PSW register 1 and the address mode information in the modified 13w of the real PSW register 3 to select the operation AM/KEY register. 9, the key information of the current PSW of the running guest and the address mode information being used are input.As a result,
The effective address adder 10 can calculate a memory address for accessing the running guest space. At this time, the storage means 7 is set to an enabled state according to the traveling information of the guest, and updates and stores the same key information and address mode information as the key information and address mode information stored in the operation AM/KEY register 9. We will process it accordingly.

走行しているゲストがホストに対してソフトウニアシξ
ニレージョンの実行依頼を行う命令を発行すると、ファ
ームウェアを介してホストに制御が移される。このとき
、記憶手段7は、ディスイネーブル状態に設定されるこ
とでファームウェアに制御が移された時点のキー情報と
アドレスモード情報を保持するよう処理する。
A running guest sends software assistance to the host.
When a command is issued to request execution of replication, control is transferred to the host via firmware. At this time, the storage means 7 processes to hold the key information and address mode information at the time when control is transferred to the firmware by being set to the disabled state.

そして、ホストがソフトウニアシくニレ−ジョンの実行
に入り、ゲスト空間のデータを必要とすることでゲスト
空間を直接アクセスするためのゲストアクセス命令を発
行すると、マイクロプログラム5からの1″の出力を受
けてANDゲート6が“1”を出力し、選択手段8は、
このANDゲート6の出力を受けて記憶手段7に保持さ
れているキー情報とアドレスモード情報とを選択して、
動作AM/KEYレジスタ9に対して入力するよう処理
する。このようにして、動作AM/KEYレジスタ9に
ソフトウニアシ旦ユレーシジンを発行してきたゲストの
アドレスモード情報とキー情報とが設定されることにな
るので、有効アドレス加算器10は、直前に走行してい
たゲストの空間をアクセスするためのメモリアドレスを
算出できるようになり、この算出処理に従ってそのゲス
ト空間のデータが読み出されることになる。
Then, when the host starts executing the software migration and issues a guest access command to directly access the guest space because it requires data in the guest space, it receives an output of 1'' from the microprogram 5. The AND gate 6 outputs "1", and the selection means 8
Upon receiving the output of the AND gate 6, the key information and address mode information held in the storage means 7 are selected,
Operation: Process to input to AM/KEY register 9. In this way, the address mode information and key information of the guest that has issued the software registration ID are set in the operation AM/KEY register 9, so that the valid address adder 10 is set to The memory address for accessing the guest space can now be calculated, and the data in the guest space will be read out according to this calculation process.

続いて、ホストが読み出されたゲスト空間のデータに従
ってソフトウェアシミュレーションを実行していくとき
には、選択手段8は、マイクロプログラム5からのO″
を出力を受けて、PSWレジスタ1のPSW中のキー情
報と実PSWレジスタ3の修飾されたPSW中のアドレ
スモード情報とを選択することで、動作AM/KEYレ
ジスタ9に対して走行中のホストの現PSWのキー情報
と使用されているアドレスモード情報とを入力していく
よう処理する。
Subsequently, when the host executes the software simulation according to the read guest space data, the selection means 8 selects O'' from the microprogram 5.
By receiving the output and selecting the key information in the PSW of PSW register 1 and the address mode information in the modified PSW of real PSW register 3, the running host The key information of the current PSW and the address mode information being used are input.

このように、本発明によれば、ホストが発行するゲスト
空間を直接アクセスするための命令をファームウェアを
介さずに実行できるようになることから、従来に比べて
著しく高速でホスト°ゲスト間のデータ転送を実行でき
るようになる。
As described above, according to the present invention, it becomes possible to execute instructions issued by the host to directly access the guest space without going through firmware, so data transfer between the host and the guest is significantly faster than in the past. will be able to execute.

〔実施例〕〔Example〕

以下、実施例に従って本発明の詳細な説明する。 Hereinafter, the present invention will be explained in detail according to examples.

第2図に、本発明の一実施例を図示する。図中、第1図
及び第4図で説明したものと同じものについては同一の
記号で示しである。2aは第1の拡張制御レジスタであ
って、第1図の拡張制御レジスタ2に相当するもの、6
aは否定付きANDゲートであって、第1図のANDゲ
ート6に相当するもの、7aはゲストアクセス制御レジ
スタであって、第1図の記憶手段7に相当するもの、8
aは選択手段8を構成する第1のゲートであって、否定
付きANDゲート6aの否定出力が“1”のときにPS
Wレジスタ1のキー情報及び実PSWレジスタ3のアド
レスモード情報を動作AM/KEYレジスタ9に入力す
るもの、8bは選択手段8を構成する第2のゲートであ
って、否定付きANDゲー)6aの肯定出力が“1”の
ときにゲストアクセス制御レジスタ7aのキー情報及び
アドレスモード情報を動作AM/KEYレジスタ9に入
力するもの、11は第1の選択回路であって、PSWレ
ジスタ1と第1の拡張制御レジスタ2aを選択していく
ことで実PSWレジスタ3に修飾されたPSWを格納す
るよう処理するもの、12は第2の選択回路であって、
PSWレジスタlのキー情報及び実PSWレジスタ3の
アドレスモード情報をゲストアクセス制御レジスタ7a
に入力するか、あるいは書込バスからのデータをゲスト
アクセス制御レジスタ7aに入力するもの、13は第2
の拡張制御レジスタであって、ホストの走行時に1″が
立つホストビットを管理するもの、14は否定付きバッ
ファであって、第2の拡張制御レジスタ13のホストビ
ットの値を否定付きANDゲー)6aに入力するもの、
15は第1のANDゲートであって、否定付きバッファ
14の否定出力とステート制御部4の出力との論理積を
演算して出力するもの、16は第1のORゲートであっ
て、第1のANDゲート15から1”が出力されるとき
か、書込指示があるときにゲストアクセス制御レジスタ
7aにクロックを送出することでゲストアクセス制御レ
ジスタ7aをイネーブル状態に設定するもの、17は第
2のANDゲートであって、否定付きバッファ14の否
定出力とステート制御部4の出力との論理積を演算して
出力するもの、18は第2のORゲートであって、否定
付きANDゲート6aの肯定出力と第2のANDゲート
17の出力の論理和を演算して出力するもの、19はゲ
ートであって、書込指示があるときに書込バスのデータ
を第1の拡張制御レジスタ2aに入力するもの、20は
ゲートであって、書込指示があるときに書込バスのデー
タをPSWレジスタ1に入力するもの、21はゲートで
あって、第1のANDゲート15から“l”が出力され
るときにPSWレジスタ1のキー情報及び実PSWレジ
スタ3のアドレスモード情報を第2の選択回路12に入
力するもの、22はゲートであって、書込指示があると
きに書込バスのデータを第2の選択回路12に入力する
もの、30はメモリアクセス部であって、図示しないメ
モリへのアクセスを制御するものである。このメモリア
クセス部30は、動作AM/KEYレジスタ9のキー情
報に従ってメモリへのアクセス処理のチエツクをしたり
、ゲストが走行中には、有効アドレス加算器10の出力
するメモリアドレスにゲスト空間上限アドレスレジスタ
42の保持するGABR情報を加算することで実際のメ
モリアドレスを求めるとともに、ゲスト空間下限アドレ
スレジスタ43の保持するGALR情報に従ってアドレ
スオーバーのチエツク処理等を実行することになる。
FIG. 2 illustrates an embodiment of the present invention. In the figure, the same parts as those explained in FIGS. 1 and 4 are indicated by the same symbols. 2a is a first extension control register, which corresponds to extension control register 2 in FIG. 1;
8 is an AND gate with negation, which corresponds to the AND gate 6 in FIG. 1; 7a is a guest access control register, which corresponds to the storage means 7 in FIG. 1;
a is the first gate constituting the selection means 8, and when the negative output of the AND gate 6a with negation is "1", the PS
The key information of the W register 1 and the address mode information of the real PSW register 3 are input to the operation AM/KEY register 9. 8b is a second gate constituting the selection means 8, and is an AND gate with negation) 6a. 11 is a first selection circuit that inputs the key information and address mode information of the guest access control register 7a to the operation AM/KEY register 9 when the positive output is "1"; 12 is a second selection circuit that stores the modified PSW in the real PSW register 3 by selecting the extended control register 2a of the circuit;
The key information of PSW register l and the address mode information of real PSW register 3 are transferred to guest access control register 7a.
or input data from the write bus to the guest access control register 7a; 13 is the second
14 is an extended control register that manages the host bit that is set to 1" when the host is running. 14 is a buffer with negation, which uses the value of the host bit of the second extended control register 13 as an AND game with negation) What to enter in 6a,
Reference numeral 15 denotes a first AND gate, which calculates and outputs the logical product of the negative output of the buffer with negation 14 and the output of the state control unit 4; and 16, a first OR gate; When 1'' is output from the AND gate 15 of 1" or when there is a write instruction, the guest access control register 7a is set to an enabled state by sending a clock to the guest access control register 7a. 17 is a second 18 is a second OR gate that calculates and outputs the logical product of the NOT output of the NOT buffer 14 and the output of the state control unit 4. A gate 19 calculates the logical sum of the positive output and the output of the second AND gate 17 and outputs the result, and when there is a write instruction, the data on the write bus is sent to the first extended control register 2a. 20 is a gate that inputs the data of the write bus to the PSW register 1 when there is a write instruction; 21 is a gate that receives "l" from the first AND gate 15; A gate 22 inputs the key information of the PSW register 1 and the address mode information of the real PSW register 3 to the second selection circuit 12 when they are output, and when a write instruction is issued, the key information of the PSW register 1 and the address mode information of the real PSW register 3 are input to the second selection circuit 12. 30 is a memory access unit that controls access to a memory (not shown).This memory access unit 30 inputs data to the second selection circuit 12. Check the memory access processing according to the information, or add the GABR information held by the guest space upper limit address register 42 to the memory address output from the effective address adder 10 while the guest is running to check the actual memory address. In addition to obtaining the address, address over-check processing and the like are executed in accordance with the GALR information held in the guest space lower limit address register 43.

次に、このように構成される本発明の実施例の動作処理
について説明する。
Next, the operation processing of the embodiment of the present invention configured as described above will be explained.

ゲストの走行中には、第2の拡張制御レジスタ13のホ
ストビットの0°”を受けて否定付きバッファ14の否
定出力が′1”を出力するとともに、ステート制御部4
が°1”を出力することから、第1のANDゲート15
が“1″を出力し、これにより、ゲストアクセス制御レ
ジスタ7aは、PSWレジスタ1のキー情報と実PSW
レジスタ3のアドレスモード情報とを順次更新しながら
格納していくよう動作する。この動作時にあって、否定
付きANDゲート6aの否定出力は、否定付きバッファ
14の肯定出力の0”出力を受けて“1゛を出力し、こ
れにより第1のゲート8aが開くことで動作AM/KE
Yレジスタ9にpswレジスタ1のキー情報と実PSW
レジスク3のアドレスモード情報とが入力されていくと
ともに、否定付きA、NDアゲ−6aの肯定出力の“l
”出力を受けて第2のゲート8bは閉しるよう動作する
。そして、第2のORゲート18は、第2のANDゲー
ト17の“1″出力を受けてメモリアクセス部30に対
してゲストアクセスの指示信号を送出する。このように
して、動作AM/KEYレジスタ9にはゲストの現PS
Wのキー情報と使用されているアドレスモード情報が設
定されていくので、ゲスト空間での走行が実行されてい
くことになる。
While the guest is running, the negation output of the negation buffer 14 outputs ``1'' in response to the host bit 0°'' of the second extended control register 13, and the state control unit 4 outputs ``1''.
outputs °1”, the first AND gate 15
outputs "1", and as a result, the guest access control register 7a stores the key information of PSW register 1 and the actual PSW.
It operates so that the address mode information in the register 3 is sequentially updated and stored. During this operation, the negative output of the AND gate 6a outputs "1" in response to the positive output of the negative buffer 14, and as a result, the first gate 8a opens and the operation AM starts. /KE
The key information of psw register 1 and the actual PSW are stored in Y register 9.
As the address mode information of Regisc 3 is input, the negative output of A and the positive output of ND Age-6a are input.
The second OR gate 18 receives the "1" output from the second AND gate 17 and operates to close the second gate 8b. An access instruction signal is sent.In this way, the current PS of the guest is stored in the operation AM/KEY register 9.
Since the key information of W and the address mode information being used are set, running in the guest space will be executed.

走行しているゲストがホストに対してソフトウェアシミ
ュレーションの実行依頼を行う命令を発行すると、ファ
ームウェアを介してホストに制御が移される。このファ
ームウェアを経由しているときには、ステート制御部4
が“0°°を出力しているので、第1のANDゲート1
5は0”を出力し1.またホストの走行に入ると、ホス
トビットの“1”を受けて否定付きバッファ14の否定
出力が°゛O”を出力することで、第1のANDゲート
15が“O”を出力するよう動作する。従って、ホスト
に対してソフトウニアシもニレ−ジョンの実行依頼を行
う命令が発行されると、ゲストアクセス制御レジスタ7
aは、それまでに動作していたゲストの最後のゲスト状
態であるキー情報とアドレスモード情報とを保持するよ
う動作することになる。
When a running guest issues a command to the host to request execution of a software simulation, control is transferred to the host via firmware. When passing through this firmware, the state control unit 4
is outputting “0°°, so the first AND gate 1
5 outputs 0'' and 1. When the host starts running again, the negative output of the negative buffer 14 outputs °゛O'' in response to the host bit being 1, and the first AND gate 15 operates to output “O”. Therefore, when a command is issued to the host to request execution of software migration, the guest access control register 7
a will operate to hold the key information and address mode information, which is the last guest state of the guest that has been operating up to that point.

ホストがソフトウェアシミュレーションの実行に入ると
、PSWレジスタlにはホストのPSWが格納され、実
PSWレジスタ3にはホストの修飾されたPSWが格納
されていくことになる。そして、ホストがソフトウェア
シミュレーションの実行のためにゲスト空間のデータを
必要とすることで、ゲスト空間を直接アクセスするため
のゲストアクセス命令を発行すると、マイクロプログラ
ム5からの“1°゛出力を受けて否定付きANDゲ−)
 6 aの否定出力が0″を出力することで第1のゲー
)8aが閉じるとともに、否定付きANDゲート6aの
肯定出力がulnを出力することで第2のゲート8bが
開くよう動作するやこの動作によりゲストアクセス制御
レジスタ7aに保持されていたキー情報とアドレスモー
ド情報とが動作AM/KEYレジスタ9に入力されるこ
とになり、有効アドレス加算器10は、直前に走行して
いたゲストの空間をアクセスするためのメモリアドレス
を算出できるようになる。
When the host starts executing software simulation, the PSW of the host is stored in the PSW register 1, and the modified PSW of the host is stored in the real PSW register 3. Then, when the host issues a guest access command to directly access the guest space because it needs data in the guest space to execute a software simulation, it receives the "1°" output from the microprogram 5 and negates it. AND game)
When the negative output of 6a outputs 0'', the first gate 8a closes, and when the positive output of the AND gate 6a with negation outputs uln, the second gate 8b opens. Due to the operation, the key information and address mode information held in the guest access control register 7a are input to the operation AM/KEY register 9, and the effective address adder 10 inputs the space of the guest that was running immediately before. You will be able to calculate the memory address to access.

そして、このとき、第2のORゲート18は、否定付き
ANDゲート6aの肯定出力の“1”出力を受けてメモ
リアクセス部30に対してゲスト空間へのアクセス指示
を表す“1″を出力するので、メモリアクセス部30は
、入力されてくるゲスト空間のメモリアドレスとキー情
報とに従って、GABR情報による上乗せ処理やGAL
R情報によるアドレスオーバーチエツク処理を実行して
ゲスト空間のデータの続出処理を実行する。
At this time, the second OR gate 18 receives the positive output "1" from the AND gate 6a and outputs "1" representing an instruction to access the guest space to the memory access unit 30. Therefore, the memory access unit 30 performs additional processing using GABR information and GAL according to the input guest space memory address and key information.
Address overcheck processing is executed using the R information to execute data continuation processing in the guest space.

続いて、ホストが読み出されたゲスト空間のデータに従
ってソフトウェアシミュレーションを実行していくとき
には、マイクロプログラム5からの“O”出力を受けて
第1のゲート8aが開くとともに、第2のゲート8bが
閉じるよう動作する。
Subsequently, when the host executes a software simulation according to the read guest space data, the first gate 8a opens in response to the "O" output from the microprogram 5, and the second gate 8b opens. Operates to close.

この動作により、動作AM/KEYレジスタ9に対して
走行中のホストの現PSWのキー情報と使用されている
アドレスモード情報とが入力されていく。そして、この
とき、第2のANDゲート17は否定付きバッファ14
の否定出力の0”出力を受けて“O”を出力し、否定付
きANDゲー)6aの肯定出力はマイクロプログラム5
の“0′”出力を受けて0”を出力することから、第2
のORゲート18は、ホスト空間へのアクセス指示を表
す0″を出力することになる。これにより、ホストはホ
スト空間のデータをアクセスしてソフトウェアシミュレ
ーションの処理を実行していくことになる。
Through this operation, the key information of the current PSW of the running host and the address mode information being used are input to the operation AM/KEY register 9. At this time, the second AND gate 17
In response to the negative output of 0'' output, it outputs "O", and the positive output of (AND game with negation) 6a is the microprogram 5.
Since it receives the “0′” output and outputs “0”, the second
The OR gate 18 outputs 0'' representing an instruction to access the host space.As a result, the host accesses data in the host space and executes software simulation processing.

このように、本発明で新たに設けられるゲストアクセス
制御レジスタ7aは、直前に走行していたゲストのキー
情報とアドレスモード情報とを保持していくよう動作す
ることになるが、これとは別に、データ処理の便宜を図
るために、書込指示に従ってゲート22を開くことで書
込バスから任意のキー情報とアドレス情報とを設定する
ことができるように構成しである。
In this way, the guest access control register 7a newly provided in the present invention operates to hold the key information and address mode information of the guest that was running immediately before, but apart from this, In order to facilitate data processing, the configuration is such that arbitrary key information and address information can be set from the write bus by opening the gate 22 in accordance with a write instruction.

第2図は本発明の一実施例、 第3図及び第4図は従来技術を説明するための説明図で
ある。
FIG. 2 is an embodiment of the present invention, and FIGS. 3 and 4 are explanatory diagrams for explaining the prior art.

図中、1はPSWレジスタ、2は拡張制御レジスタ、3
は実PSWレジスタ、4はステート制御部、5はマイク
ロプログラム、6はANDゲート、7は記憶手段、8は
選択手段、9は動作AM/KEYレジスタ、10は有効
アドレス加算器である。
In the figure, 1 is the PSW register, 2 is the expansion control register, and 3 is the PSW register.
4 is a real PSW register, 4 is a state control section, 5 is a microprogram, 6 is an AND gate, 7 is a storage means, 8 is a selection means, 9 is an operation AM/KEY register, and 10 is an effective address adder.

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

以上説明したように、本発明によれば、ホストが発行す
るゲスト空間を直接アクセスするための命令をファーム
ウェアを介さずに実行できるようになることから、従来
に比べて著しく高速でホスト・ゲスト間のデータ転送を
実行できるようになるのである。
As explained above, according to the present invention, instructions issued by the host to directly access the guest space can be executed without going through firmware. This allows data transfer to be performed.

Claims (1)

【特許請求の範囲】 ホストとゲストとファームウェアという3つのステート
を有し、1台の実計算機システムのもとで複数台の仮想
計算機を動作させる仮想計算機システムにおいて、 ゲストの走行中にイネーブル状態に設定されて、PSW
中のキー情報と修飾されたPSW中のアドレスモード情
報とを順次更新しながら格納していくとともに、ファー
ムウェアを介してホストに制御が移されるときにディス
イネーブル状態に設定されて、該ディスイネーブル状態
に設定された時点のキー情報及びアドレスモード情報を
保持するよう処理する記憶手段(7)と、 ホストからゲストに直接アクセスするゲストアクセス命
令が発行されるときに、ホストに対応させて設定されて
いるPSW中のキー情報と修飾されたPSW中のアドレ
スモード情報とに換えて、上記記憶手段のキー情報とア
ドレスモード情報とを選択するよう処理する選択手段(
8)とを備え、該選択手段(8)により選択されたキー
情報及びアドレスモード情報に従って、ゲストの対応す
るメモリアドレスへのアクセス制御を実行するよう構成
されてなることを、 特徴とするメモリアクセス制御方式。
[Claims] In a virtual computer system that has three states: host, guest, and firmware, and in which multiple virtual computers operate under one real computer system, an enabled state is provided while the guest is running. set, PSW
The key information inside and the address mode information in the modified PSW are stored while being updated sequentially, and when control is transferred to the host via firmware, it is set to the disable state, and the disable state is set to the disable state. storage means (7) for processing to hold the key information and address mode information at the time when the host is set to the host; Selection means for processing to select the key information and address mode information of the storage means in place of the key information in the PSW and the address mode information in the modified PSW (
8), and is configured to control access to the corresponding memory address of the guest according to the key information and address mode information selected by the selection means (8). control method.
JP1209961A 1989-08-14 1989-08-14 Memory access control method Expired - Fee Related JP2802109B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1209961A JP2802109B2 (en) 1989-08-14 1989-08-14 Memory access control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1209961A JP2802109B2 (en) 1989-08-14 1989-08-14 Memory access control method

Publications (2)

Publication Number Publication Date
JPH0373031A true JPH0373031A (en) 1991-03-28
JP2802109B2 JP2802109B2 (en) 1998-09-24

Family

ID=16581539

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1209961A Expired - Fee Related JP2802109B2 (en) 1989-08-14 1989-08-14 Memory access control method

Country Status (1)

Country Link
JP (1) JP2802109B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009147738A1 (en) * 2008-06-05 2009-12-10 富士通株式会社 Information processor, its control method and monitor program

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61292753A (en) * 1985-06-20 1986-12-23 Fujitsu Ltd Data processing system for vertural computer
JPS6220034A (en) * 1985-07-19 1987-01-28 Fujitsu Ltd Program status word switching control system
JPS62114046A (en) * 1985-11-13 1987-05-25 Fujitsu Ltd Access control system
JPH0193831A (en) * 1987-10-05 1989-04-12 Fujitsu Ltd System for controlling operand access of virtual computer
JPH01152541A (en) * 1987-12-09 1989-06-15 Hitachi Ltd Virtual machine system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61292753A (en) * 1985-06-20 1986-12-23 Fujitsu Ltd Data processing system for vertural computer
JPS6220034A (en) * 1985-07-19 1987-01-28 Fujitsu Ltd Program status word switching control system
JPS62114046A (en) * 1985-11-13 1987-05-25 Fujitsu Ltd Access control system
JPH0193831A (en) * 1987-10-05 1989-04-12 Fujitsu Ltd System for controlling operand access of virtual computer
JPH01152541A (en) * 1987-12-09 1989-06-15 Hitachi Ltd Virtual machine system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009147738A1 (en) * 2008-06-05 2009-12-10 富士通株式会社 Information processor, its control method and monitor program
JPWO2009147738A1 (en) * 2008-06-05 2011-10-20 富士通株式会社 Information processing apparatus, control method therefor, and monitor program

Also Published As

Publication number Publication date
JP2802109B2 (en) 1998-09-24

Similar Documents

Publication Publication Date Title
JP5852677B2 (en) Register mapping method
KR101296025B1 (en) Improving nested virtualization performance in a computer system
TW200403586A (en) Control register access virtualization performance improvement in the virtual-machine architecture
JPS6275735A (en) Emulating method
KR920003044B1 (en) Control system for guest execution of virtual computer system
JP2523653B2 (en) Virtual computer system
WO2024021480A1 (en) Method and apparatus for dynamic migration of virtual machine, and electronic device
JP2007094986A (en) Simulation apparatus and simulation method
JPS5824954A (en) Address controlling system
JPH0373031A (en) Memory access control system
JPS61184643A (en) Starting control system for virtual computer
JPS6049352B2 (en) data processing equipment
US5893928A (en) Data movement apparatus and method
JPH0635800A (en) Microprocessor and data processing system using it
JPS62295147A (en) Virtual computer system
WO2022022708A1 (en) Inter-process communication method and apparatus, and computer storage medium
JPS6359639A (en) System for controlling compatibility of file access
JPH0567973B2 (en)
JPS60163134A (en) Virtual computer system
JPH03154139A (en) Cache memory
JPH07134658A (en) Address translation buffer control system for virtual machine system
JPS60215250A (en) Data processor
JPH0193831A (en) System for controlling operand access of virtual computer
JPS60105052A (en) Virtual computer system
JPH0535499A (en) Data processing device and method

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees