JPH0362228A - Pseudo instruction generation system for virtual machine system - Google Patents

Pseudo instruction generation system for virtual machine system

Info

Publication number
JPH0362228A
JPH0362228A JP19820489A JP19820489A JPH0362228A JP H0362228 A JPH0362228 A JP H0362228A JP 19820489 A JP19820489 A JP 19820489A JP 19820489 A JP19820489 A JP 19820489A JP H0362228 A JPH0362228 A JP H0362228A
Authority
JP
Japan
Prior art keywords
virtual
virtual machine
instruction
processor
stop
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
JP19820489A
Other languages
Japanese (ja)
Inventor
Hiroaki Ito
伊藤 宏昭
Yuji Yamagishi
山岸 裕治
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.)
NEC Corp
NEC Solution Innovators Ltd
Original Assignee
NEC Corp
NEC Solution Innovators 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 NEC Corp, NEC Solution Innovators Ltd filed Critical NEC Corp
Priority to JP19820489A priority Critical patent/JPH0362228A/en
Publication of JPH0362228A publication Critical patent/JPH0362228A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain a simulation process via a virtual machine monitor at the middle point of a privilege instruction by actuating a pseudo instruction production means via the virtual machine monitor despite the occurrence of a virtual machine stop event. CONSTITUTION:When the information recorded by a virtual processor stop state storage means 7 shows the middle point of an instruction, a virtual machine monitor 2 produces a pseudo instruction as if a pseudo instruction production means 12 produces a simulation request to the monitor 2 after a privilege instruction 41 carried out an action up to the middle point of the instruction via a virtual processor, e.g., a virtual processor 4. Then the monitor 2 can carry on the process of the instruction 41 kept on the middle point of a process. Thus, the monitor 2 can continue the process to the instruction 41 which is kept on the middle point of the process carried out by a virtual machine 3.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は仮想計算機システムに関し、特に仮想計算機上
で特権命令が実行されたときの仮想計算機システムにお
ける疑似命令発生方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a virtual computer system, and particularly to a pseudo instruction generation method in a virtual computer system when a privileged instruction is executed on a virtual computer.

〔従来の技術〕[Conventional technology]

従来、この種の仮想計算機システムでは、仮想計算機を
停止させる事象(以下、仮想計算機停止事象という)が
発生した場合、以下に述べる処理が行われていた。
Conventionally, in this type of virtual computer system, when an event that causes a virtual computer to stop (hereinafter referred to as a virtual computer stop event) occurs, the following processing is performed.

まず、仮想計算機モニタに何らかの仮想計算機停止事象
が発生した場合、仮想計算機の実行を停止させて停止要
因に対する処理を行う、そして、停止要因に対する処理
の完了後に仮想計算機の実行を再開する。このとき、実
行を再開した仮想計算機の仮想プロセッサは、停止状態
に遷移したときの命令から実行を開始する。
First, when some kind of virtual machine stop event occurs in the virtual machine monitor, execution of the virtual machine is stopped, processing for the cause of the stop is performed, and execution of the virtual machine is resumed after the processing for the cause of the stop is completed. At this time, the virtual processor of the virtual machine that has resumed execution starts executing the instruction from when it transitioned to the stopped state.

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

上述した従来の仮想計算機システムでは、仮想計算機モ
ニタが処理する仮想計算機上の特権命令は命令の切れ目
、すなわち命令の再実行可能な箇所にてシくニレ−ジョ
ン要求として仮想計算機モニタに実行の制御が渡されて
いたので、命令の途中までの動作をCPU/FW(中央
処理ユニット/ファームウェア)にて直接実行可能な特
権命令に対してもその特権命令の全ての動作は仮想計算
機モニタのシミュレーションにより行われており、特権
命令の処理時間に対してのオーバヘッドが大きくなると
いう欠点がある。
In the conventional virtual machine system described above, privileged instructions on the virtual machine that are processed by the virtual machine monitor are sent to the virtual machine monitor to control execution as a re-execution request at the end of the instruction, that is, at a point where the instruction can be re-executed. was passed, so even for privileged instructions whose operations up to the middle of the instruction can be directly executed by the CPU/FW (Central Processing Unit/Firmware), all operations of that privileged instruction are simulated by the virtual machine monitor. However, this method has the disadvantage of increasing the overhead in terms of processing time for privileged instructions.

本発明の目的は、上述の点に鑑み、命令の途中までの動
作をCPtJ/FWにて直接実行可能な特権命令の途中
で仮想プロセッサが停止した状態にある場合に、特権命
令の途中からの仮想計算機モニタによるシミュレーショ
ン処理を可能とするようにした仮想計算機システムにお
ける疑似命令発生方式を提供することにある。
In view of the above-mentioned points, an object of the present invention is to perform operations from the middle of a privileged instruction when a virtual processor is stopped in the middle of a privileged instruction that can be directly executed by a CPtJ/FW. An object of the present invention is to provide a method for generating pseudo instructions in a virtual computer system that enables simulation processing using a virtual computer monitor.

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

本発明の仮想計算機システムにおける疑似命令発生方式
は、仮想計算機システムの仮想計算機モニタにおいて、
仮想計算機を停止させる何らかの仮想計算機停止事象が
発生した場合に仮想計算機を停止状態に遷移させる仮想
計算機停止手段と、この仮想計算機停止手段により停止
状態に遷移された仮想計算機上で実行中の複数の仮想プ
ロセッサの状態を記憶する仮想プロセッサ停止状態記憶
手段と、仮想計算機の停止要因となった仮想計算機停止
事象を処理する仮想計算機停止事象処理手段と、この仮
想計算機停止事象処理手段による仮想計算機停止事象の
処理の後に仮想計算機の実行を再開させる仮想計算機実
行開始手段と、この仮想計算機実行開始手段による仮想
計算機の実行再開後に前記仮想プロセッサ停止状態記憶
手段により記憶された仮想プロセッサの状態に基づいて
仮想針′JX、機の停止時における仮想プロセッサの停
止状態を判定する仮想プロセッサ停止状態判定手段と、
この仮想プロセッサ停止状態判定手段により仮想プロセ
ッサの状態が命令の切れ目にあると判定された場合に仮
想プロセッサを再度スタートさせる仮想プロセッサ開始
手段と、前記仮想プロセ・フサ停止状態判定手段により
仮想プロセ/すの状態が命令の途中までの動作をCPU
/FWにて直接実行可能な特権命令の途中にあると判定
された場合にこの特権命令があたかも命令の途中までの
動作をCPU/FWにて直接実行した後に仮想プロセッ
サ上で仮想計算機モニタに対してシミュレーション要求
を発生したかのごとく疑似的に命令を発生させる疑似命
令発生手段とを有する。
The pseudo instruction generation method in the virtual computer system of the present invention includes:
A virtual machine stopping means that transitions the virtual machine to a stopped state when some kind of virtual machine stopping event that stops the virtual machine occurs, and a plurality of virtual machines running on the virtual machine that is transitioned to the stopped state by this virtual machine stopping means. A virtual processor stop state storage means for storing the state of a virtual processor, a virtual machine stop event processing means for processing a virtual machine stop event that caused a virtual machine to stop, and a virtual machine stop event caused by the virtual machine stop event processing means. virtual machine execution starting means for restarting the execution of the virtual machine after the processing of a virtual processor stop state determining means for determining the stop state of the virtual processor when the machine is stopped;
a virtual processor start means for restarting the virtual processor when the state of the virtual processor is determined to be at an instruction break by the virtual processor stop state determination means; The state of the CPU executes the operation up to the middle of the instruction.
/If it is determined that the privileged instruction is in the middle of a privileged instruction that can be directly executed by the FW, this privileged instruction will be displayed on the virtual machine monitor on the virtual processor after directly executing the operation up to the middle of the instruction on the CPU/FW. and pseudo-instruction generation means for generating an instruction in a pseudo manner as if a simulation request had been generated.

(作用〕 本発明の仮想計算機システムにおける疑似命令発生方式
では、仮想計算機停止手段が仮想計算機を停止させる何
らかの仮想計算機停止事象が発生した場合に仮想計算機
を停止状態に遷移させ、仮想プロセッサ停止状態記憶手
段が仮想計算機停止手段により停止状態に遷移された仮
想計算機上で実行中の複数の仮想プロセッサの状態を記
憶し、仮想計算機停止事象処理手段が仮想計算機の停止
要因となった仮想計算機停止事象を処理し、仮想計算機
実行開始手段が仮想計算機停止事象処理手段による仮想
計算機停止事象の処理の後に仮想計算機の実行を再開さ
せ、仮想プロセッサ停止状態判定手段が仮想計算機実行
開始手段による仮想計算機の実行再開後に仮想プロセッ
サ停止状態記憶手段により記憶された仮想プロセッサの
状態に基づいて仮想計算機の停止時における仮想プロセ
ッサの停止状態を判定し、仮想プロセッサ開始手段が仮
想プロセッサ停止状態判定手段により仮想プロセッサの
状態が命令の切れ目にあると判定された場合に仮想プロ
セッサを再度スタートさせ、疑似命令発生手段が仮想プ
ロセッサ停止状態判定手段により仮想プロセッサの状態
が命令の途中までの動作をCPU/FWにて直接実行可
能な特権命令の途中にあると判定された場合にこの特権
命令があたかも命令の途中までの動作をCP U/FW
にて直接実行した後に仮想プロセッサ上で仮想計算機モ
ニタに対してシミュレーション要求を発生したかのごと
く疑似的に命令を発生させる。
(Operation) In the pseudo-instruction generation method in the virtual computer system of the present invention, the virtual machine stopping means transitions the virtual machine to a stopped state when some kind of virtual machine stopping event that stops the virtual machine occurs, and stores the virtual processor stopped state. The means stores the states of a plurality of virtual processors running on the virtual machine that has been transitioned to a stopped state by the virtual machine stopping means, and the virtual machine stopping event processing means stores a virtual machine stopping event that caused the stopping of the virtual machine. and the virtual machine execution start means resumes execution of the virtual machine after the virtual machine stop event processing means processes the virtual machine stop event, and the virtual processor stop state determination means causes the virtual machine execution start means to resume execution of the virtual machine. Later, the virtual processor stop state is determined based on the state of the virtual processor stored by the virtual processor stop state storage means when the virtual machine is stopped, and the virtual processor start means determines the state of the virtual processor by the virtual processor stop state determination means. If it is determined that the instruction is at a break, the virtual processor is restarted, and the pseudo-instruction generation means uses the virtual processor stop state determination means to enable the CPU/FW to directly execute operations until the state of the virtual processor reaches the middle of the instruction. If it is determined that the privileged instruction is in the middle of a privileged instruction, the CPU/FW executes the operation as if the privileged instruction was in the middle of the instruction.
After directly executing the command, the command is generated on the virtual processor in a pseudo manner as if a simulation request was issued to the virtual machine monitor.

〔実施例〕〔Example〕

次に、本発明について図面を参照して詳細に説明する。 Next, the present invention will be explained in detail with reference to the drawings.

第1図は、本発明の一実施例に係る疑似命令発生方式が
適用された仮想計算機システムの構成を示すブロック図
である。この仮想計算機システムは、仮想計算機停止事
象lと、仮想計算機モニタ2と、仮想計算機3とから、
その主要部が構成されている。
FIG. 1 is a block diagram showing the configuration of a virtual computer system to which a pseudo instruction generation method according to an embodiment of the present invention is applied. This virtual computer system is configured to: from a virtual computer stop event 1, a virtual computer monitor 2, and a virtual computer 3;
Its main parts are composed of:

仮想計算機3上では、複数の仮想プロセッサ4゜・・・
、5が実行されている。
On the virtual machine 3, multiple virtual processors 4...
, 5 are being executed.

仮想計算機モニタ2は、仮想計算機3を停止させる何ら
かの仮想計算機停止事象1が発生した場合に仮想計算a
3を停止状態に遷移させる仮想計算機停止手段6と、仮
想計算機停止手段6により停止状態に遷移された仮想計
算Ila上で実行中の複数の仮想プロセッサ4.・・・
、5の状態を記憶する仮想プロセッサ停止状態記憶手段
7と、仮想計算1a3の停止要因となった仮想計算機停
止事象1を処理する仮想計算機停止事象処理手段8と、
仮想計算機停止事象処理手段8による仮想計算機停止事
象lの処理の後に仮想計算113の実行を再開させる仮
想計算機実行開始手段9と、仮想プロセッサ停止状態記
憶手段7により記憶された仮想プロセッサ4.・・・、
5の状態に基づいて仮想計算機3の停止時における仮想
プロセッサ4.・・・、5の停止状態を判定する仮想プ
ロセッサ停止状態判定手段lOと、仮想プロセッサ停止
状態判定手段lOにより仮想プロセッサ4.・・・、5
の状態が命令の切れ目にあると判定された場合に仮想プ
ロセッサ4.・・・、5を再度スタートさせる仮想プロ
セッサ開始手段11と、仮想プロセッサ停止状態判定手
段10により仮想プロセッサ4.・・・、5の状態が命
令の途中までの動作をCPU/FWにて直接実行可能な
特権命令の途中にあると判定された場合にこの特権命令
があたかも命令の途中までの動作をCPU/FWにて直
接実行した後に仮想プロセッサ4.・・・、5上で仮想
計算機モニタ2に対してシミュレーション要求を発生し
たかのごとく疑似的に命令を発生させる疑似命令発生手
段12とを含んで構成されている。
The virtual computer monitor 2 monitors the virtual computer a when a virtual computer stop event 1 that causes the virtual computer 3 to stop occurs.
a plurality of virtual processors 4 . ...
, 5, and a virtual machine stop event processing means 8 that processes the virtual machine stop event 1 that caused the virtual calculation 1a3 to stop.
virtual machine execution start means 9 for restarting execution of virtual computation 113 after processing of virtual machine stop event l by virtual machine stop event processing means 8; and virtual processor 4. ...,
Based on the state of virtual processor 4.5 when the virtual machine 3 is stopped, . ..., 5
If it is determined that the state of virtual processor 4 is at an instruction break, virtual processor 4. . ..., if it is determined that state 5 is in the middle of a privileged instruction that can directly execute the operation up to the middle of the instruction by the CPU/FW, this privileged instruction will execute the operation up to the middle of the instruction by the CPU/FW. After direct execution on FW, virtual processor 4. .

第2図は、仮想計算機3内の仮想プロセッサ4上で特権
命令41が実行されたときの動作および仮想プロセッサ
5上で特権命令51が実行されたときの動作を表す図で
ある。特権命令41は、命令の途中までの動作をCPU
/FWにて直接実行可能な特権命令であり゛、命令解析
処理42と、命令に対する動作処理(途中まで実行)4
3と、仮想計算機モニタへのシミュレーション要求発行
処理44とからなる。また、特権命令51は、命令の途
中までの動作をCPU/FWにて直接実行可能でない特
権命令であり、命令解析処理52と、仮想計算機モニタ
へのシミュレーション要求発行処理53とからなる。
FIG. 2 is a diagram showing the operation when the privileged instruction 41 is executed on the virtual processor 4 in the virtual machine 3 and the operation when the privileged instruction 51 is executed on the virtual processor 5. The privileged instruction 41 allows the CPU to execute the operation up to the middle of the instruction.
/This is a privileged instruction that can be directly executed by the FW, and includes instruction analysis processing 42 and operation processing for the instruction (partially executed) 4
3 and a simulation request issuing process 44 to the virtual machine monitor. Further, the privileged instruction 51 is a privileged instruction whose operation up to the middle of the instruction cannot be directly executed by the CPU/FW, and consists of an instruction analysis process 52 and a simulation request issuing process 53 to the virtual machine monitor.

次に、このように構成された本実施例の仮想計算機シス
テムにおける疑似命令発生方式の動作について説明する
Next, the operation of the pseudo instruction generation method in the virtual computer system of this embodiment configured as described above will be explained.

仮想計算813に対する何らかの仮想計算機停止事象1
が発生すると、仮想計算機モニタ2は、仮想計算機停止
手段6によって仮想計算機3を停止状態に遷移させる処
理を実行することにより、仮想計算a3上で動作中の全
ての仮想プロセッサ4゜・・・、5を停止させ、仮想計
算a3を停止状態に遷移させる。
Some kind of virtual computer stop event 1 for virtual calculation 813
When this occurs, the virtual machine monitor 2 causes the virtual machine stopping means 6 to execute a process of transitioning the virtual machine 3 to a stopped state, thereby stopping all the virtual processors 4 . . . 5 is stopped, and the virtual calculation a3 is transitioned to the stopped state.

次に、仮想計算機モニタ2は、仮想プロセッサ停止状態
記憶手段7により、仮想計算機3で動作中の全ての仮想
プロセッサ4.・・・、5の停止直前の状態を記憶する
Next, the virtual machine monitor 2 uses the virtual processor stop state storage means 7 to store all the virtual processors 4. ..., stores the state immediately before the stop of 5.

ここで、例えば仮想計算機3で動作中の仮想プロセッサ
4は、命令の途中までの動作をCPU/FWにて直接実
行可能な特権命令41を処理中であり、この特権命令4
1の動作として、命令の解析処理42を行い、次に命令
に対する動作処理(途中まで実行)43を行い、仮想計
算機モニタへのシミュレーション要求発行処理44にて
仮想計算機モニタ2に制御を渡す直前の状態であったと
すると、仮想プロセッサ停止状態記憶手段7は、仮想計
算機3の仮想プロセッサ4は命令の途中であると記録す
る。なお、命令の途中までの動作をCPU/FWにて直
接実行可能な特権命令41であっても、仮想計算機モニ
タへのシミュレーション要求発行処理44にて仮想計算
機モニタ2に制御を渡す直前以外の状態であったときに
は、仮想プロセッサ停止状態記憶手段7は、仮想計算!
113の仮想プロセッサ4は命令の区切りであると記録
する。
Here, for example, the virtual processor 4 operating in the virtual machine 3 is processing a privileged instruction 41 whose operation up to the middle of the instruction can be directly executed by the CPU/FW, and this privileged instruction 4
As the first operation, an instruction analysis process 42 is performed, then an operation process for the instruction (partially executed) 43 is performed, and in a simulation request issuing process 44 to the virtual machine monitor, the process immediately before passing control to the virtual machine monitor 2 is performed. If so, the virtual processor stop state storage means 7 records that the virtual processor 4 of the virtual machine 3 is in the middle of executing an instruction. Note that even if the privileged instruction 41 allows the CPU/FW to directly execute the operation up to the middle of the instruction, the state other than immediately before passing control to the virtual machine monitor 2 in the simulation request issuing process 44 to the virtual machine monitor When it is, the virtual processor stop state storage means 7 stores the virtual calculation!
The virtual processor 4 of 113 records this as an instruction break.

これに対して、例えば仮想計算機3で動作中の仮想プロ
セッサ5は、命令の途中までの動作をCPU/FWにて
直接実行可能でない特権命令51を処理中であり、この
特権命令51の動作として、命令の解析処理52を行い
、命令に対する動作処理は行わずに仮想計算機モニタへ
のシミュレーション要求発行処理52にて仮想計算機モ
ニタ2に制御を渡す直前であったとすると、仮想プロセ
ッサ停止状態記憶手段7は、仮想計算機3の仮想プロセ
ッサ5は命令の切れ目、すなわち命令の再実行可能な状
態であると記録する。なお、命令の途中までの動作をC
PU/FWにて直接実行可能な特権命令41以外の命令
の場合には、どのような場合であっても、仮想プロセッ
サ停止状態記憶手段7は、仮想計算機3の仮想プロセッ
サ5は命令の切れ目、すなわち命令の再実行可能な状態
であると記録する。
On the other hand, for example, the virtual processor 5 operating in the virtual machine 3 is processing a privileged instruction 51 whose operation up to the middle of the instruction cannot be directly executed by the CPU/FW, and the operation of this privileged instruction 51 is , the instruction analysis process 52 is performed, and the simulation request issuance process 52 to the virtual machine monitor is performed without performing the operation process for the instruction, and control is just about to be transferred to the virtual machine monitor 2. records that the virtual processor 5 of the virtual machine 3 is at an instruction break, that is, the instruction can be re-executed. In addition, the operation up to the middle of the command is
In the case of an instruction other than the privileged instruction 41 that can be directly executed by the PU/FW, in any case, the virtual processor stop state storage means 7 stores the instruction break, the virtual processor 5 of the virtual machine 3, In other words, it is recorded that the instruction can be re-executed.

次に、仮想計算機モニタ2は、仮想計算機停止事象処理
手段8により仮想計算機停止事象lに対する停止要因の
解析および処理を行う。
Next, the virtual machine monitor 2 uses the virtual machine stop event processing means 8 to analyze and process the stop cause for the virtual machine stop event l.

これにより、仮想針X機3は再実行可能な状態となり、
仮想計算機モニタ2は、仮想計算機実行開始手段9によ
り仮想針[13を実行可能状態に遷移させる。
As a result, the virtual needle X machine 3 becomes in a state where it can be executed again.
The virtual computer monitor 2 causes the virtual computer execution start means 9 to transition the virtual needle [13 to an executable state.

そして、仮想計算機モニタ2は、仮想プロセッサ停止状
態判定手段10により仮想プロセッサ停止状態記憶手段
7により記録された情報を基に仮想計算機3内に存在す
る各仮想プロセッサ4.・・・5単位に仮想プロセッサ
の開始方法を判定する。
Then, the virtual machine monitor 2 uses the information recorded by the virtual processor stop state storage means 7 by the virtual processor stop state determination means 10 to determine whether each virtual processor 4 existing in the virtual machine 3 . ...Determine how to start a virtual processor in units of 5.

ここで、仮想プロセッサ停止状態記憶手段7により記録
された情報が命令の切れ目、すなわち命令の再実行可能
な状態の場合には、仮想計算機モニタ2は、仮想プロセ
ッサ開始手段11により仮想プロセッサ、例えば仮想プ
ロセッサ5の実行を開始させる。このとき、実行を再開
する仮想プロセッサ5は、停止状態に遷移したときの命
令から実行を開始する。
Here, if the information recorded by the virtual processor stop state storage means 7 indicates an instruction break, that is, a state in which the instruction can be re-executed, the virtual machine monitor 2 uses the virtual processor start means 11 to detect a virtual processor, for example, a virtual The execution of the processor 5 is started. At this time, the virtual processor 5 that resumes execution starts executing the instruction from which it entered the stopped state.

一方、仮想プロセッサ停止状態記憶手段7により記録さ
れた情報が命令の途中である場合には、仮想計算機モニ
タ2は、疑似命令発生手段12により、あたかも仮想プ
ロセッサ、例えば仮想プロセッサ4上で特権命令41が
あたかも命令の途中までの動作を実行した後に仮想計算
機モニタ2に対してシミュレーション要求を発生したか
のごとく疑似的に命令を発生させ、処理途中にあった特
権命令41に対する処理を仮想計算機モニタ2により引
き続き実行することを可能とする。
On the other hand, when the information recorded by the virtual processor stop state storage means 7 is in the middle of an instruction, the virtual machine monitor 2 uses the pseudo instruction generation means 12 to generate a privileged instruction 41 on the virtual processor, for example, the virtual processor 4. generates an instruction in a pseudo manner as if it issued a simulation request to the virtual computer monitor 2 after executing the operation up to the middle of the instruction, and causes the virtual computer monitor 2 to execute the processing for the privileged instruction 41 that is in the middle of processing. This allows continued execution.

以上のように、仮想計算機停止事象1が発生した場合に
おいても、仮想計算機モニタ2にて疑似命令発生手段1
2を動作させることにより、仮想計算機3上にて命令の
途中にある特権命令41に対する仮想計算機モニタ2で
の継続処理を可能としている。
As described above, even when the virtual machine stop event 1 occurs, the pseudo instruction generating means 1 is displayed on the virtual machine monitor 2.
By operating 2, it is possible for the virtual machine monitor 2 to continue processing the privileged instruction 41 that is in the middle of an instruction on the virtual machine 3.

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

以上説明したように本発明は、仮想計算機停止事象が発
生した場合においても仮想計算機モニタによる疑似命令
発生手段を動作させることにより、命令の途中までの動
作をCPLJ/FWにて直接実行可能な特権命令の途中
からの処理の再開が可能となり、これによって仮想計算
機モニタが処理する仮想計算機上の特権命令は命令の途
中までをCPU/FWにて直接実行した処理の後から再
開されることになり、仮想計算機モニタのシミュレーシ
ョンによる命令処理時間に対してのオーバヘッドを少な
くできるという効果がある。
As explained above, the present invention provides a privilege that allows the CPLJ/FW to directly execute the operation up to the middle of the instruction by operating the pseudo instruction generation means by the virtual computer monitor even when a virtual machine stop event occurs. It is now possible to restart processing from the middle of the instruction, and as a result, the privileged instructions on the virtual machine that are processed by the virtual machine monitor will be restarted after the processing that was directly executed by the CPU/FW up to the middle of the instruction. This has the effect of reducing the overhead of instruction processing time due to virtual machine monitor simulation.

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

第1図は本発明の一実施例に係る仮想計算機システムに
おける疑似命令発生方式の構成を示すブロック図、 第2図は第1図中の仮想計算機内の仮想プロセッサ上で
特権命令が実行されたときの動作および仮想プロセッサ
上で特権命令が実行されたときの動作を表す図である。 図において、 l・・・仮想計算機停止事象、 2・・・仮想計算機モニタ、 3・・・仮想計算機、 4.5・仮想プロセッサ、 6・・・仮想計算機停止手段、 7 ・ − 8・ ・ 9 ・ ・ 10 ・ l 1 ・ 12 ・ 4 l ・ 42 ・ 43 ・ 44 ・ 52 ・ 53 ・ 仮想プロセッサ停止状態記憶手段、 仮想計算機停止事象処理手段、 仮想計算機実行開始手段、 仮想プロセッサ停止状態判定手段、 仮想プロセッサ開始手段、 疑似命令発生手段、 特権命令、 命令の解析処理、 命令に対する動作処理(途中まで実行)仮想計算機モニ
タへのシミュレーショ ン要求発行処理、 特権命令、 命令の解析処理、 仮想計算機モニタへのシミュレーショ ン要求発行処理である。
FIG. 1 is a block diagram showing the configuration of a pseudo-instruction generation method in a virtual computer system according to an embodiment of the present invention, and FIG. FIG. 4 is a diagram showing the operation when a privileged instruction is executed on a virtual processor; and the operation when a privileged instruction is executed on a virtual processor. In the figure, 1...Virtual computer stop event, 2...Virtual computer monitor, 3...Virtual computer, 4.5.Virtual processor, 6...Virtual computer stopping means, 7. - 8.. 9・ ・ 10 ・ l 1 ・ 12 ・ 4 l ・ 42 ・ 43 ・ 44 ・ 52 ・ 53 ・ Virtual processor stop state storage means, virtual machine stop event processing means, virtual machine execution start means, virtual processor stop state determination means, virtual Processor start means, pseudo-instruction generation means, privileged instructions, instruction analysis processing, operation processing for instructions (partial execution), simulation request issuing processing to the virtual machine monitor, privileged instructions, instruction analysis processing, simulation to the virtual machine monitor This is request issuing processing.

Claims (1)

【特許請求の範囲】 仮想計算機システムの仮想計算機モニタにおいて、 仮想計算機を停止させる何らかの仮想計算機停止事象が
発生した場合に仮想計算機を停止状態に遷移させる仮想
計算機停止手段と、 この仮想計算機停止手段により停止状態に遷移された仮
想計算機上で実行中の複数の仮想プロセッサの状態を記
憶する仮想プロセッサ停止状態記憶手段と、 仮想計算機の停止要因となった仮想計算機停止事象を処
理する仮想計算機停止事象処理手段と、この仮想計算機
停止事象処理手段による仮想計算機停止事象の処理の後
に仮想計算機の実行を再開させる仮想計算機実行開始手
段と、 この仮想計算機実行開始手段による仮想計算機の実行再
開後に前記仮想プロセッサ停止状態記憶手段により記憶
された仮想プロセッサの状態に基づいて仮想計算機の停
止時における仮想プロセッサの停止状態を判定する仮想
プロセッサ停止状態判定手段と、 この仮想プロセッサ停止状態判定手段により仮想プロセ
ッサの状態が命令の切れ目にあると判定された場合に仮
想プロセッサを再度スタートさせる仮想プロセッサ開始
手段と、 前記仮想プロセッサ停止状態判定手段により仮想プロセ
ッサの状態が命令の途中までの動作をCPU/FWにて
直接実行可能な特権命令の途中にあると判定された場合
にこの特権命令があたかも命令の途中までの動作をCP
U/FWにて直接実行した後に仮想プロセッサ上で仮想
計算機モニタに対してシミュレーション要求を発生した
かのごとく疑似的に命令を発生させる疑似命令発生手段
と を有することを特徴とする仮想計算機システムにおける
疑似命令発生方式。
[Scope of Claims] In a virtual machine monitor of a virtual computer system, there is provided a virtual machine stopping means for transitioning the virtual machine to a stopped state when some kind of virtual machine stopping event that causes the virtual machine to stop occurs, and the virtual machine stopping means A virtual processor stop state storage means that stores the states of multiple virtual processors running on a virtual machine that has been transitioned to a stop state, and a virtual machine stop event process that processes a virtual machine stop event that caused the virtual machine to stop. means, a virtual machine execution start means for restarting execution of the virtual machine after the virtual machine stop event processing means has processed the virtual machine stop event, and stopping the virtual processor after the virtual machine execution start means resumes execution of the virtual machine. a virtual processor stop state determination means for determining the stop state of the virtual processor when the virtual machine is stopped based on the state of the virtual processor stored by the state storage means; a virtual processor start means that restarts the virtual processor when it is determined that the virtual processor is at the end of the instruction; and a virtual processor stop state determination means that allows the CPU/FW to directly execute operations up to the middle of the instruction. If it is determined that the privileged instruction is in the middle of a privileged instruction, the operation up to the middle of the instruction is
A virtual computer system characterized by having a pseudo-instruction generation means that pseudo-instructions are generated as if a simulation request was generated to a virtual computer monitor on a virtual processor after being directly executed in a U/FW. Pseudo-instruction generation method.
JP19820489A 1989-07-31 1989-07-31 Pseudo instruction generation system for virtual machine system Pending JPH0362228A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19820489A JPH0362228A (en) 1989-07-31 1989-07-31 Pseudo instruction generation system for virtual machine system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19820489A JPH0362228A (en) 1989-07-31 1989-07-31 Pseudo instruction generation system for virtual machine system

Publications (1)

Publication Number Publication Date
JPH0362228A true JPH0362228A (en) 1991-03-18

Family

ID=16387214

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19820489A Pending JPH0362228A (en) 1989-07-31 1989-07-31 Pseudo instruction generation system for virtual machine system

Country Status (1)

Country Link
JP (1) JPH0362228A (en)

Similar Documents

Publication Publication Date Title
KR20070091047A (en) A computer-readable recording medium that records a program for executing a debug support device and a debug processing method on a computer.
TW200941340A (en) A method and apparatus for suspending execution of a thread until a specified memory access occurs
KR20050014636A (en) Memory managing system and task controller in multitask system
JP2522158B2 (en) Program debugging method for multiprocessor system
JPH0362228A (en) Pseudo instruction generation system for virtual machine system
JP6510430B2 (en) Trace data editing apparatus and method
JPH064318A (en) Error detecting system
JPH02201543A (en) Processing system for privileged instruction of virtual computer
JP3719241B2 (en) Arithmetic unit
JP3029355B2 (en) Single-step instruction execution method
JPH09259004A (en) Debugging method
JPS62113238A (en) Correction system for program of electronic computer system
JP3102381B2 (en) Task debugging device, task debugging method, and recording medium therefor
JPH0340143A (en) Debugging system for pipeline type computer
JPS63236142A (en) Software monitoring device
JPS5835648A (en) Program execution controlling system
JPS61233838A (en) Information processor
JPH05324416A (en) System error history saving system
JPH06187217A (en) System for synchronization between data base and normal file
JPH02187831A (en) Exception processing system in virtual computer system
JPS6119050B2 (en)
JPH0772874B2 (en) Interrupt receiving device
JPH0652482B2 (en) Sequence controller
JPS59202548A (en) Debugging device
JPH08272653A (en) Freeze processing system