JPH0731609B2 - VM mode change device - Google Patents

VM mode change device

Info

Publication number
JPH0731609B2
JPH0731609B2 JP60205533A JP20553385A JPH0731609B2 JP H0731609 B2 JPH0731609 B2 JP H0731609B2 JP 60205533 A JP60205533 A JP 60205533A JP 20553385 A JP20553385 A JP 20553385A JP H0731609 B2 JPH0731609 B2 JP H0731609B2
Authority
JP
Japan
Prior art keywords
mode
register
vmcp
software
runs
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.)
Expired - Lifetime
Application number
JP60205533A
Other languages
Japanese (ja)
Other versions
JPS6266336A (en
Inventor
高夫 岸
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
Original Assignee
NEC Corp
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 filed Critical NEC Corp
Priority to JP60205533A priority Critical patent/JPH0731609B2/en
Priority to FR8613071A priority patent/FR2587519B1/en
Publication of JPS6266336A publication Critical patent/JPS6266336A/en
Publication of JPH0731609B2 publication Critical patent/JPH0731609B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は仮想計算機システムに関し、特に異なった走行
モード間でソフトウエア命令によってモードを変更する
装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a virtual computer system, and more particularly to a device for changing modes between different running modes by software instructions.

(従来の技術) 従来、仮想計算機システムでは、VMCPは、ゲストOSを形
成して制御をする機能と、通常のOSとしての機能を有し
ていた。そのため、通常のOSとしての機能を新たに設計
し、メンテナンスを行なうことは無駄であった。
(Prior Art) Conventionally, in a virtual computer system, the VMCP has a function of forming a guest OS for control and a function of a normal OS. Therefore, it is useless to newly design the function as an ordinary OS and perform maintenance.

また、従来の仮想計算機システムでは、NVMモードからV
MMモードへの移行、すなわち、実計算機システムを仮想
計算機システムとして使用するには、一度システムをダ
ウンさせて、もう一度立ち上げを行なわなければならな
かった。
In addition, in the conventional virtual machine system, V
In order to shift to the MM mode, that is, to use the real computer system as the virtual computer system, the system had to be brought down and restarted.

(発明が解決しようとする問題点) 上述した従来の仮想計算機システムでは、VMCPは、ゲス
トOSを形成して制御をする機能と、通常のOSとしての機
能を有しているので、VMCPを開発するときには、通常の
OSとしての機能について新たに設計し、メンテナンスを
行わなければならないという欠点がある。
(Problems to be Solved by the Invention) In the above-mentioned conventional virtual computer system, VMCP has a function of forming a guest OS and controlling it, and a function of a normal OS. When you are normal
It has the drawback of having to newly design and maintain the functions of the OS.

また、従来の仮想計算機システムでは、NVMモードからV
MMモードへの移行、すなわち、実計算機システムを仮想
計算機システムとして使用するには、一度システムをダ
ウンさせて、もう一度立ち上げを行わなければならない
という欠点がある。
In addition, in the conventional virtual machine system, V
In order to shift to the MM mode, that is, to use the real computer system as the virtual computer system, there is a drawback that the system must be brought down and then restarted.

本発明の目的は、NVMモード,VMMモード,ならびにVMOS
モードのモードを指定するモードレジスタと、モードレ
ジスタの内容を変更するソフトウエア命令を新たに設定
して、モードレジスタの内容を変更するだけで、モード
の変更を可能とすることによって、VMCPは、従来有して
いた通常のOSの機能をホストOSにある機能で代用するこ
とにして、既存のOSの有効利用をはかり、またNVMモー
ドからVMMモードへモードの変更を行なう場合には、実
計算機システムとして動作していたシステムを、そのま
ま仮想計算機システムとして動作するように簡単に変更
できる装置を提供することにある。
The object of the present invention is to provide NVM mode, VMM mode, and VMOS.
By newly setting the mode register that specifies the mode of the mode and the software instruction that changes the contents of the mode register, and by changing the contents of the mode register, the mode can be changed. If you want to effectively use the existing OS by substituting the functions of the host OS for the functions of the conventional OS that you had in the past, and change the mode from NVM mode to VMM mode, use a real computer. An object of the present invention is to provide a device that can be easily changed from a system that was operating as a system to a virtual computer system.

(問題点を解決するための手段) 本発明によるVMモード変更装置は、実CPUとメモリを含
み、ホストOSのもとで走行する通常のジョブとして複数
のゲストOSの制御を行うVMCPが走行し、前記VMCPのもと
で走行する前記複数のゲストOSのもとで通常のジョブが
走行する仮想計算機システムにおいて、 前記ホストOS内に格納されているジョブを含むソフトウ
エアが走行するNVMモードと、前記VMCPが走行するVMMモ
ードと、前記複数のゲストOSにそれぞれ格納されている
ジョブを含むソフトウエアが走行するVMOSモードとを指
定するためのモードレジスタと、 前記モードレジスタにモード値を前記メモリからロード
するためのソフトウエア命令を格納するためのソフトウ
エア命令レジスタと、 前記ソフトウエア命令レジスタ内のソフトウエア命令に
基づきロードされた前記モードレジスタのモード値を判
定し、そのモードに必要な前記実CPUの機能を有効化す
る切換え手段を具備して構成されている。
(Means for Solving Problems) A VM mode changing device according to the present invention includes a real CPU and a memory, and a VMCP that controls a plurality of guest OSs is run as a normal job that runs under the host OS. In a virtual machine system in which normal jobs run under the plurality of guest OSs running under the VMCP, an NVM mode in which software including jobs stored in the host OS runs, A mode register for designating a VMM mode in which the VMCP runs, and a VMOS mode in which software including a job stored in each of the plurality of guest OSs runs, and a mode value in the mode register from the memory A software instruction register for storing a software instruction for loading, and a load based on the software instruction in the software instruction register. It has been determined mode value of the mode register is configured by including a switching means for enabling a function of the real CPU required for the mode.

(実施例) 次に、本発明について図面を参照して説明する。(Example) Next, this invention is demonstrated with reference to drawings.

第1図は、本発明によるVMモード変更装置の動作概念を
表す説明図である。
FIG. 1 is an explanatory diagram showing an operation concept of a VM mode changing device according to the present invention.

第1図において、1はソフトウエア命令レジスタ、2は
メモリ、3はモードレジスタ、4はホストOSの領域、5
はVMCPの領域、6はゲストOSの領域である。
In FIG. 1, 1 is a software instruction register, 2 is a memory, 3 is a mode register, 4 is a host OS area, 5
Is a VMCP area, and 6 is a guest OS area.

第1図において、ソフトウエア命令レジスタ1にセット
されたソフトウエア命令によってメモリ2をアクセス
し、アクセスされた値をモードレジスタ3にロードす
る。モードは、ロードされた値によって決定される。ホ
ストOSの領域4に格納されたジョブはNVMモードで走行
し、VMCPの領域5に格納されたVMCPはVMMモードで走行
し、ゲストOSの領域6に格納されたジョブはVMOSモード
で走行する。
In FIG. 1, the memory 2 is accessed by the software instruction set in the software instruction register 1, and the accessed value is loaded into the mode register 3. The mode is determined by the loaded value. The job stored in the area 4 of the host OS runs in the NVM mode, the VMCP stored in the area 5 of the VMCP runs in the VMM mode, and the job stored in the area 6 of the guest OS runs in the VMOS mode.

第2図は、本発明に関連する仮想計算機システムのソフ
トウエア構成を示す図である。第2図において、11はホ
ストOS,12はVMCP,13〜15はゲストOS,16はホストOS下で
走行しているジョブ、17はゲストOS下で走行しているジ
ョブである。
FIG. 2 is a diagram showing a software configuration of a virtual computer system related to the present invention. In FIG. 2, 11 is a host OS, 12 is a VMCP, 13 to 15 are guest OSs, 16 is a job running under the host OS, and 17 is a job running under the guest OS.

第2図において、ホストOS11によってディスパッチされ
るVMCP12があり、ゲストOS13〜15をそれぞれ制御してい
る。
In FIG. 2, there is a VMCP 12 dispatched by the host OS 11, which controls the guest OSs 13 to 15, respectively.

第3図は、本発明によるVMモード変更装置の一実施例を
示すブロック図である。第3図において、21はソフトウ
エア命令レジスタ、22はメモリ、23はデータレジスタ、
24はモードレジスタ、25はモード判定切換え装置、26は
実CPU、27〜29はそれぞれ実CPU26に含まれたOSである。
FIG. 3 is a block diagram showing an embodiment of the VM mode changing device according to the present invention. In FIG. 3, 21 is a software instruction register, 22 is a memory, 23 is a data register,
Reference numeral 24 is a mode register, 25 is a mode determination switching device, 26 is a real CPU, and 27 to 29 are OSs included in the real CPU 26.

第3図において、ソフトウエア命令レジスタ21にセット
されたソフトウエア命令によってメモリ22をアクセス
し、データをメモリ22からデータレジスタ23へ読出す。
次に、データレジスタ23の内容の上位2ビットをモード
レジスタ24へロードする。モードレジスタ24にロードさ
れた上記2ビットのデータは、モード判定切換え装置25
によってNVMモード、VMMモード、あるいはVMOSモードで
あると判定する。NVMモードであれば、実CPU26の内部の
ホストOSのもとで通常のジョブが走行する。VMMモード
であれば、実CPU26の内部のゲストOSを形成して制御を
するVMCP28が走行するVMOSモードであれば、実CPU26の
内部のゲストOS29のもとで通常のジョブが走行する。
In FIG. 3, the memory 22 is accessed by the software instruction set in the software instruction register 21, and the data is read from the memory 22 to the data register 23.
Next, the upper 2 bits of the contents of the data register 23 are loaded into the mode register 24. The 2-bit data loaded in the mode register 24 is used as the mode determination switching device 25.
It is determined by the NVM mode, VMM mode, or VMOS mode. In the NVM mode, a normal job runs under the host OS inside the real CPU 26. In the VMM mode, the VMCP 28 that forms and controls the guest OS inside the real CPU 26 runs, and in the VMOS mode, a normal job runs under the guest OS 29 inside the real CPU 26.

以上のようにして、モードの切換えをダイナミックに行
なうことが可能である。
As described above, it is possible to dynamically switch modes.

(発明の効果) 以上説明したように、本発明は、モードを指定するモー
ドレジスタと、モードレジスタの内容を変更するソフト
ウエア命令を設定して、モードレジスタの内容を変更す
るだけで、モードの変更を可能とすることによって、VM
CPがホストOSと共用できるOSとしての機能と利用できる
ようにし、また、ホストOS内のプログラムが走行してい
る状態(NVMモード)からVMCPが走行している状態(VMM
モード)に移行する場合、ホストOSがVMCPをディスパッ
チしてからVMCPがモード値をVMMに変更するだけでホス
トOSが使用してきた機能をVMCPがそのまま利用できると
いう効果がある。
(Effects of the Invention) As described above, according to the present invention, a mode register for designating a mode and a software instruction for changing the contents of the mode register are set and the contents of the mode register are changed. VM by allowing changes
The CP can be used with the function as an OS that can be shared with the host OS, and the program in the host OS is running (NVM mode) while VMCP is running (VMM
Mode), when the host OS dispatches VMCP and then VMCP changes the mode value to VMM, VMCP can use the function that the host OS has used.

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

第1図は、本発明によるVMモード変更装置の動作概念を
表す説明図である。 第2図は、本発明に関連する仮想計算機システムのソフ
トウエア構成例を示す説明図である。 第3図は、本発明によるVMモード変更装置の一実施例を
示すブロック図である。 1,4……ソフトウエア命令レジスタ 2,22……メモリ 3,24……モードレジスタ 4〜6……OS領域 11,13〜15,27〜29……OS 12……VMモニタプログラム 23……データレジスタ 25……モード判定切換え装置 26……実CPU」 (2)添付図面の第1図,第2図および第3図を別添の
第1図,第2図および第3図に補正する。
FIG. 1 is an explanatory diagram showing an operation concept of a VM mode changing device according to the present invention. FIG. 2 is an explanatory diagram showing a software configuration example of the virtual computer system related to the present invention. FIG. 3 is a block diagram showing an embodiment of the VM mode changing device according to the present invention. 1,4 …… Software instruction register 2,22 …… Memory 3,24 …… Mode register 4 ~ 6 …… OS area 11,13 ~ 15,27 ~ 29 …… OS 12 …… VM monitor program 23 …… Data register 25 ...... Mode judgment switching device 26 …… Actual CPU ”(2) Amended Figures 1, 2 and 3 of the attached drawings to the attached Figures 1, 2 and 3 .

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】実CPUとメモリを含み、ホストOSのもとで
走行する通常のジョブとして複数のゲストOSの制御を行
うVMCPが走行し、前記VMCPのもとで走行する前記複数の
ゲストOSのもとで通常のジョブが走行する仮想計算機シ
ステムにおいて、 前記ホストOS内に格納されているジョブを含むソフトウ
エアが走行するNVMモードと、前記VMCPが走行するVMMモ
ードと、前記複数のゲストOSにそれぞれ格納されている
ジョブを含むソフトウエアが走行するVMOSモードとを指
定するためのモードレジスタと、 前記モードレジスタにモード値を前記メモリからロード
するためのソフトウエア命令を格納するためのソフトウ
エア命令レジスタと、 前記ソフトウエア命令レジスタ内のソフトウエア命令に
基づきロードされた前記モードレジスタのモード値を判
定し、そのモードに必要な前記実CPUの機能を有効化す
る切換手段を具備して構成したことを特徴とするVMモー
ド変更装置。
1. A plurality of guest OSs including an actual CPU and a memory, running VMCP for controlling a plurality of guest OSs as a normal job running under a host OS, and running under the VMCP. In a virtual machine system in which a normal job runs under the following conditions, NVM mode in which software including a job stored in the host OS runs, VMM mode in which the VMCP runs, and the plurality of guest OSs A mode register for designating the VMOS mode in which the software including the jobs respectively stored therein is run, and software for storing a software instruction for loading a mode value from the memory into the mode register. The mode value of the instruction register and the mode register loaded based on the software instruction in the software instruction register is determined, and VM mode change apparatus characterized by being configured to include a switching means for enabling a function of the real CPU required over de.
JP60205533A 1985-09-18 1985-09-18 VM mode change device Expired - Lifetime JPH0731609B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP60205533A JPH0731609B2 (en) 1985-09-18 1985-09-18 VM mode change device
FR8613071A FR2587519B1 (en) 1985-09-18 1986-09-18 MODE CHANGE ARRANGEMENT FOR SELECTIVELY CHANGING OPERATING MODES OF A VIRTUAL MACHINE SYSTEM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60205533A JPH0731609B2 (en) 1985-09-18 1985-09-18 VM mode change device

Publications (2)

Publication Number Publication Date
JPS6266336A JPS6266336A (en) 1987-03-25
JPH0731609B2 true JPH0731609B2 (en) 1995-04-10

Family

ID=16508461

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60205533A Expired - Lifetime JPH0731609B2 (en) 1985-09-18 1985-09-18 VM mode change device

Country Status (2)

Country Link
JP (1) JPH0731609B2 (en)
FR (1) FR2587519B1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6410338A (en) * 1987-07-02 1989-01-13 Nec Corp Virtual computer controller
US5291599A (en) * 1991-08-08 1994-03-01 International Business Machines Corporation Dispatcher switch for a partitioner
US7085705B2 (en) 2000-12-21 2006-08-01 Microsoft Corporation System and method for the logical substitution of processor control in an emulated computing environment
EP1410170B1 (en) * 2000-12-21 2010-01-20 Microsoft Corporation Logical substitution of processor control in an emulated computing environment
US8271976B2 (en) 2004-06-30 2012-09-18 Microsoft Corporation Systems and methods for initializing multiple virtual processors within a single virtual machine
US20060005190A1 (en) * 2004-06-30 2006-01-05 Microsoft Corporation Systems and methods for implementing an operating system in a virtual machine environment
US7886126B2 (en) * 2005-01-14 2011-02-08 Intel Corporation Extended paging tables to map guest physical memory addresses from virtual memory page tables to host physical memory addresses in a virtual machine system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3828327A (en) * 1973-04-30 1974-08-06 Ibm Simplified storage protection and address translation under system mode control in a data processing system
JPS6049352B2 (en) * 1978-02-13 1985-11-01 株式会社日立製作所 data processing equipment
JPS6057438A (en) * 1983-09-08 1985-04-03 Hitachi Ltd Virtual computer system controller
JPS60136833A (en) * 1983-12-26 1985-07-20 Hitachi Ltd Switching method of operating system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
日経エレクトロニクス1980.5−12No.238P.95〜96

Also Published As

Publication number Publication date
JPS6266336A (en) 1987-03-25
FR2587519A1 (en) 1987-03-20
FR2587519B1 (en) 1991-09-20

Similar Documents

Publication Publication Date Title
US5553291A (en) Virtual machine control method and virtual machine system
US5095427A (en) Dispatch control of virtual machine
JP2610812B2 (en) Emulation of data processing system
KR920010978B1 (en) Computer system with interrupt controller
US4812967A (en) Method and apparatus for controlling interrupts in a virtual machine system
US5913058A (en) System and method for using a real mode bios interface to read physical disk sectors after the operating system has loaded and before the operating system device drivers have loaded
EP0093267B1 (en) Method for switching the control of central processing units in a data processing system, and apparatus for initiating the switching of cpu control
US6385718B1 (en) Computer system and method for executing interrupt instructions in operating modes
JPH0731609B2 (en) VM mode change device
US8719836B2 (en) Method and device for operating a secondary operating system auxiliary to a primary operating system
EP0303783A2 (en) Data processing system with logical processor facitily
JPS60159948A (en) Instruction exception processing system
JPH06332803A (en) Tlb control method in virtual computer system
JPH0470935A (en) Computer system
JPS6339933B2 (en)
JPH0754470B2 (en) Control method for virtual computer system
JPS61184643A (en) Starting control system for virtual computer
JPH04227547A (en) Information processor
JPS62108335A (en) Input/output operation controlling system
JPH0552535B2 (en)
JPS61273634A (en) Multi-operating system personal computer
JP2899009B2 (en) Information processing device
JPH0567973B2 (en)
JPS62114042A (en) Program event recording control system
JPH0157374B2 (en)