JPH06222998A - Executing method for virtual computer system - Google Patents

Executing method for virtual computer system

Info

Publication number
JPH06222998A
JPH06222998A JP5010227A JP1022793A JPH06222998A JP H06222998 A JPH06222998 A JP H06222998A JP 5010227 A JP5010227 A JP 5010227A JP 1022793 A JP1022793 A JP 1022793A JP H06222998 A JPH06222998 A JP H06222998A
Authority
JP
Japan
Prior art keywords
computer
virtual
mode
rom
real
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
JP5010227A
Other languages
Japanese (ja)
Inventor
Hiroyasu Ogata
裕保 尾形
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP5010227A priority Critical patent/JPH06222998A/en
Publication of JPH06222998A publication Critical patent/JPH06222998A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To share a device mounted on an extended ROM area by realizing a virtual computer system to simultaneously operate plural virtual computers different in operation modes on a computer which is provided with the plural operation modes and is changed in the memory constitution of the extended ROM area depending on the operation modes. CONSTITUTION:When starting or setting up the virtual computer system, an address where the device mounted on the extended ROM area of the real computer is arranged at the time of changing the memory constitution of the real computer, is stored. Then, the operation modes of all the virtual computers to be started on the real computer are stored and at the time when the memory constitution of the real computer is changed by the instruction of an operator, the addresses to the devices mounted on the extended ROM areas of the virtual computers on all the operation modes operated at the time are mapped again so as to indicate the real device after the memory constitution is changed.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、単一の実在の計算機
(実計算機)上で拡張ROM領域のメモリ構成の異なる
複数の仮想的な計算機(仮想計算機)を動作させる仮想
計算機システムの実行方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of executing a virtual computer system for operating a plurality of virtual computers (virtual computers) having different memory configurations in an expansion ROM area on a single real computer (real computer). It is about.

【0002】[0002]

【従来の技術】計算機はさまざまな目的に使用されるた
め、必要となるハードウェア上の機能、性能は多種多用
にわたる。その中には、複数の動作モードを持ち動作モ
ードによってBIOS ROMの内容やVRAMのメモ
リ構成、そして特に拡張ROM領域のメモリ構成が変わ
る計算機もある。(ここで拡張ROM領域とは、計算機
に後から追加するオプションボードと共にROM等で供
給されオプションボードを制御する拡張BIOS、に割
り当てられたアドレス空間のことである)例えば、ハイ
レゾモードとノーマルモードという拡張ROM領域のメ
モリ構成が異なる2つの動作モードを持ち、ハード的な
切り換えスイッチを用いてどちらのモードで動作するか
を選択してから計算機の電源投入またはリセットを行う
ことにより、そのモードに合わせたメモリ構成で動作す
る計算機が存在する(その計算機のモード別のメモリ構
成の例を図1に示す)。従来のこのタイプの計算機に
は、ハードウェアの仕様として動作中には他のモードに
切り換えることができないものも多く、動作モードを切
り換える必要が生じた場合には処理を一旦終了してから
計算機をリセットしていた。従ってこのタイプの計算機
上では、仮想計算機システムを動作させる場合にも、そ
の上で動作できる仮想計算機は実計算機と同じモードの
みであった。
2. Description of the Related Art A computer is used for various purposes, and therefore, various necessary hardware functions and performances are used. Among them, there is a computer which has a plurality of operation modes and in which the contents of the BIOS ROM, the memory configuration of the VRAM, and particularly the memory configuration of the expansion ROM area are changed depending on the operation mode. (Here, the expansion ROM area is an address space allocated to an expansion BIOS that is supplied by ROM together with an option board to be added later to the computer and controls the option board.) For example, high resolution mode and normal mode It has two operation modes with different memory configurations in the expansion ROM area. Select which mode to operate with a hardware switch and then turn on or reset the computer to match that mode. There is a computer that operates with a different memory configuration (an example of the memory configuration for each mode of the computer is shown in FIG. 1). Many conventional computers of this type cannot be switched to another mode during operation due to the hardware specifications, and when it becomes necessary to switch the operating mode, the process is terminated and the computer is stopped. It was reset. Therefore, on this type of computer, even when the virtual computer system is operated, the virtual computer that can operate on it is only in the same mode as the real computer.

【0003】次に、このタイプの計算機で従来から実現
していた仮想計算機システムについて説明する。仮想計
算機システムの実現方法として、BIOS ROMのよ
うな共有できるハードウェア資源Aと、VRAM(表示
画面の内容をそのまま設定するRAM)のような共有で
きないハードウェア資源Bを分けて管理するやり方があ
る。VRAMのような共有できないハードウェア資源B
を複数の仮想計算機で使用する方法の一例として、公知
資料(Microsoft Systems Journal No.2 1989.8 Win
dows/386の仮想マシン環境)に記載されている
ように、以下のような方法がある。
Next, a virtual computer system conventionally realized by this type of computer will be described. As a method of implementing a virtual computer system, there is a method of separately managing a sharable hardware resource A such as a BIOS ROM and a non-sharable hardware resource B such as a VRAM (RAM that directly sets the contents of the display screen). . Non-sharable hardware resource B such as VRAM
As an example of the method of using Windows with multiple virtual machines, a known document (Microsoft Systems Journal No.2 1989.8 Win
As described in (Dows / 386 virtual machine environment), there are the following methods.

【0004】(1)排他制御によりVRAMは1つの仮
想計算機に占有させてそれ以外の仮想計算機の動作を一
時停止させておき、画面に表示する仮想計算機(VRA
Mを占有する仮想計算機)を切り換える指示に合わせ
て、それまで画面に表示されていた仮想計算機の表示内
容(VRAMの内容)を通常のRAMに退避し、新たに
画面に表示する仮想計算機の表示内容をRAM(以前に
VRAMの内容を退避したもの)からVRAMに復帰す
る方法 (2)排他制御によりVRAMは1つの仮想計算機に占
有させるが、それ以外の仮想計算機に対してはVRAM
のアドレスに通常のRAM(VRAM内容を退避したも
の)をマッピングしてバックグラウンドで動作させてお
き、(1)と同様の方法でVRAM内容の退避/復帰を
行う方法 (3)各仮想計算機に対して、VRAMのアドレスに通
常のRAMをマッピングして使用させておき、その内容
を画面の一部にウィンドウとして表示する方法(マルチ
ウィンドウ表示)。
(1) By exclusive control, the VRAM is occupied by one virtual computer and the operations of the other virtual computers are temporarily stopped, and the virtual computer (VRA) is displayed on the screen.
In accordance with the instruction to switch the virtual machine that occupies M), the display contents of the virtual machine (the contents of VRAM) that were displayed on the screen up to that point are saved in the normal RAM, and the new virtual machine is displayed on the screen. A method of restoring the contents from the RAM (the contents of the VRAM previously saved) to the VRAM (2) The VRAM is occupied by one virtual computer by exclusive control, but the VRAM is used for other virtual computers.
Ordinary RAM (VRAM contents saved) is mapped to the address of, and is operated in the background, and the VRAM contents are saved / restored in the same manner as (1). (3) Each virtual computer On the other hand, a method in which a normal RAM is mapped to a VRAM address and used, and the contents are displayed as a window on a part of the screen (multi-window display).

【0005】それに対し、BIOS ROMや拡張RO
Mのような共有できるハードウェア資源Aについては、
各仮想計算機間で排他制御する必要がないため、 (4)仮想計算機を生成する時点で仮想計算機上でのB
IOS ROMや拡張ROMを指すアドレスがそのまま
実際のアドレスを指すように最初にマッピング(仮想計
算機上でのアドレスが実計算機の指定したメモリを指す
ようにするための処理)しておく方法 だけで、仮想計算機の状態に関係なくBIOS ROM
や拡張ROMを使用することが可能であった。
On the other hand, BIOS ROM and extended RO
For a hardware resource A that can be shared such as M,
Since it is not necessary to perform exclusive control between the virtual machines, (4) B on the virtual machine at the time of creating the virtual machine
Only by first mapping so that the address that points to the IOS ROM or expansion ROM directly points to the actual address (the process to make the address on the virtual computer point to the memory specified by the real computer), BIOS ROM regardless of the state of the virtual machine
It was possible to use an expansion ROM.

【0006】[0006]

【発明が解決しようとする課題】ところが、複数の動作
モードを持ち動作モードによってBIOS ROMの内
容やVRAMのメモリ構成、そして特に拡張ROM領域
のメモリ構成が変わる計算機(その中で、ハードウェア
の仕様上は動作中でも他のモードに切り換えることが可
能なタイプ)において、上記の方法を用いて動作モード
の異なる仮想計算機を実行することが可能な仮想計算機
システムを実現しようとすると、同一の動作モードの仮
想計算機間では共有することが可能であったハードウェ
ア資源Aが、動作モードが異なる仮想計算機間では内容
やアドレスが異なり共有できない。
However, a computer having a plurality of operation modes and in which the contents of the BIOS ROM, the memory configuration of the VRAM, and particularly the memory configuration of the extended ROM area are changed depending on the operation mode (in which, the hardware specifications are specified) Above is a type that can be switched to another mode even while operating), and if a virtual computer system that can execute a virtual computer with a different operation mode is implemented using the above method, the The hardware resource A that could be shared between virtual machines cannot be shared between virtual machines with different operation modes because of different contents and addresses.

【0007】さらに、上記(1)、(2)の方法を用い
る場合には、仮想計算機の動作モードによりVRAMの
メモリ構成が異なるため実際のVRAMを占有する仮想
計算機の動作モードに合わせて実計算機の動作モード
(メモリ構成)を変更しなければならないが、それにと
もない実際のハードウェア資源Aのメモリ構成も変更さ
れてしまう。このため(4)の方法では、ハードウェア
資源Aを動作モードの異なる仮想計算機間で使用するこ
とができないという問題があった。
Further, when the above methods (1) and (2) are used, since the memory configuration of the VRAM differs depending on the operation mode of the virtual computer, the actual computer is adjusted according to the operation mode of the virtual computer occupying the actual VRAM. However, the actual memory configuration of the hardware resource A is also changed accordingly. Therefore, the method (4) has a problem that the hardware resource A cannot be used between virtual machines having different operation modes.

【0008】この問題の解決策の一つとして(1)の方
法の応用で、 (5)各動作モードにおけるハードウェア資源A(BI
OS ROM、拡張ROM等)の内容を通常のRAMに
あらかじめコピーしておき、仮想計算機のハードウェア
資源Aのアドレスに対して「その動作モードの時のハー
ドウェア資源Aの内容をコピーしたRAM」をマッピン
グして使用するという方法 がある。しかし、BIOS ROMのようにその内容が
明確になっていて、RAMにコピーしても動作が可能だ
とわかっているものについてはこの方法で問題は解決で
きるが、拡張ROM領域には何が搭載されるかわからな
いためその内容は単純にはコピーできない。例えば、同
じアドレスに複数バンクのROMを持ち、ROM内のプ
ログラム自身が必要に応じてバンクを切り換えて動作す
る装置(以下で述べるSCSI HDボード等)や、メ
モリマップドI/O方式のI/Oポートを持つ装置(以
下で述べるアウトラインフォントボード等)を搭載した
場合には(5)の方法では正しく動作させる事ができな
い。
As one of the solutions to this problem, the method (1) is applied. (5) The hardware resource A (BI) in each operation mode
The contents of the OS ROM, expansion ROM, etc.) are copied to a normal RAM in advance, and the "RAM in which the contents of the hardware resource A in that operation mode is copied" is assigned to the address of the hardware resource A of the virtual machine. There is a method of mapping and using. However, the problem can be solved by this method for the one that the contents are clear like the BIOS ROM and it is known that the operation is possible even if it is copied to the RAM, but what is mounted in the expansion ROM area? The contents cannot be copied simply because it is not known. For example, a device having a plurality of banks of ROMs at the same address, and a program in the ROM itself switching banks to operate as necessary (such as a SCSI HD board described below) or a memory-mapped I / O system I / O system When a device having an O port (such as an outline font board described below) is installed, the method (5) cannot be operated properly.

【0009】[0009]

【課題を解決するための手段】本発明の目的は、上記の
ような従来技術の問題点を解決し、動作モードによって
拡張ROM領域のメモリ構成が変わる計算機上で、動作
モードの異なる複数の仮想計算機を動作させる仮想計算
機システムを実現させるための仮想計算機のアドレスマ
ッピング方式を提供する事にある。
SUMMARY OF THE INVENTION An object of the present invention is to solve the problems of the prior art as described above and to provide a plurality of virtual machines with different operation modes on a computer in which the memory configuration of the extended ROM area changes depending on the operation mode. An object is to provide a virtual computer address mapping method for realizing a virtual computer system for operating a computer.

【0010】本発明の仮想計算機システムの実行方法は
複数の動作モードを有し、各動作モード対応して拡張R
OM領域のメモリ構成を変更する実計算機上で、動作モ
ードが異なる複数の仮想計算機を動作させる仮想計算機
システムの実行方法において、各仮想計算機の動作モー
ドを記憶する工程と、実計算機が各動作モードで動作す
るときの拡張ROM領域のメモリ構成を記憶する工程
と、実計算機の動作モードが変更されると、前記動作モ
ードおよび前記拡張ROM領域のメモリ構成を参照し、
現在動作している各々の仮想計算機の拡張ROM領域に
搭載されている装置に対するアドレスを実計算機のメモ
リ構成に合わせて設定し直す工程とを有することを特徴
とするので、実計算機の拡張ROM領域に搭載されてい
る装置を、動作モードの異なる複数の仮想計算機上で使
用することが可能となる。
The execution method of the virtual computer system of the present invention has a plurality of operation modes, and the extended R is associated with each operation mode.
In a method of executing a virtual computer system in which a plurality of virtual computers having different operation modes are operated on a real computer that changes the memory configuration of the OM area, a step of storing the operation mode of each virtual computer and the operation mode of the real computer A step of storing the memory configuration of the extended ROM area when operating in the above, and the operation mode of the real computer is changed, the operation mode and the memory configuration of the extended ROM area are referred to,
The method further comprises the step of resetting an address for a device mounted in the expansion ROM area of each virtual computer currently operating in accordance with the memory configuration of the real computer. It is possible to use the device installed in the virtual machine on a plurality of virtual machines with different operation modes.

【0011】[0011]

【実施例】まず、本発明の動作原理を簡単に説明する。
仮想計算機システムの起動時に、実計算機の拡張ROM
領域に搭載されているアウトラインフォントボード(以
下OFBとする)、SCSI HD用ボード、その他制
御用ボード等の装置(以下、合わせて「拡張ROM」と
する)が、その計算機が持つそれぞれの動作モードで動
作する時にどこのアドレスに配置されて動作するかを記
憶しておく。(拡張ROM領域のメモリ構成の記憶) このアドレスの調査方法については自動、手動等多々存
在するが、最も単純な一例を上げれば、その「拡張RO
M」が各々のモードの時にどこのアドレスで動作するか
を使用者にあらかじめ指定させて記録しておけばよい。
First, the operating principle of the present invention will be briefly described.
Expansion ROM of the actual computer when starting the virtual computer system
The outline font board (hereinafter referred to as OFB), SCSI HD board, and other control board devices (hereinafter referred to as "extended ROM") installed in the area have respective operation modes of the computer. It is remembered at which address it is placed and operates when it operates. (Memory of extended ROM area memory configuration) There are many methods of checking this address, such as automatic and manual, but the simplest example is the "extended RO area".
It suffices for the user to specify in advance which address the M operates in each mode and record it.

【0012】次に、仮想計算機システムから各々の仮想
計算機を起動する際の拡張ROM領域のマッピングであ
るが、この方法には、(a)現在の実計算機の動作モー
ド(メモリ構成)から実際の「拡張ROM」のアドレス
を調べ、起動する仮想計算機上での「拡張ROM」を指
すアドレスが実際の「拡張ROM」を指すようにマッピ
ングを行う方法と、(b)起動する仮想計算機の動作モ
ードに合わせて実計算機側の動作モード(メモリ構成)
を変更することにより「拡張ROM」を指すアドレスが
そのまま実際のアドレスになるようにマッピングする方
法がある。
Next, regarding the mapping of the expansion ROM area when each virtual computer is started from the virtual computer system, the method is as follows: (a) the actual operation mode (memory configuration) of the actual computer; A method for checking the address of the "extended ROM" and mapping so that the address that points to the "extended ROM" on the booting virtual computer points to the actual "extended ROM", and (b) the operating mode of the booted virtual computer According to the operating mode of the actual computer (memory configuration)
There is a method of mapping so that the address indicating the "expansion ROM" becomes the actual address as it is by changing.

【0013】この2つの方式のどちらを採用するかは仮
想計算機を起動する時点で決定すればよく、モードの違
う複数の仮想計算機をマルチウィンドウ表示で動作させ
る時のように実計算機の動作モード(メモリ構成)を固
定して動作させる場合には(a)の方法を用い、表示画
面を起動する仮想計算機に占有させて動作させる時(以
下、フルスクリーン表示とする)のように仮想計算機の
動作モードを優先させる場合には(b)の方法を用い
る。どちらの方式を用いた場合でも、各仮想計算機の動
作モードと現在の実計算機の動作モードを記憶してお
く。
Which of these two methods should be adopted may be determined at the time of starting the virtual machine, and the operation mode of the real machine (such as when operating a plurality of virtual machines of different modes in multi-window display) When operating with a fixed memory configuration, use the method of (a), and operate the virtual machine such as when occupying the virtual machine that activates the display screen to operate (hereinafter referred to as full-screen display) When giving priority to the mode, the method (b) is used. Whichever method is used, the operation mode of each virtual computer and the current operation mode of the real computer are stored.

【0014】その後オペレータの指示により、 マルチウィンドウ表示をやめて動作モードが異なる
一つの仮想計算機をフルスクリーン表示で動作させた
り、 の逆を行ったり、 フルスクリーン表示で動作している状態で、表示す
る仮想計算機を動作モードが異なる他の仮想計算機に切
り換えたり、 (b)の方式で動作モードが異なるあらたな仮想計
算機を起動したり、というような実計算機の動作モード
(メモリ構成)を変更しなければならない場合に、変更
後の実計算機の動作モード(メモリ構成)に対する実際
の「拡張ROM」のアドレスを調べ、それに合わせてそ
の時動作している全ての仮想計算機の「拡張ROM」を
指すアドレスが実際の「拡張ROM」を指すようにマッ
ピングをやり直す。
Then, according to an operator's instruction, the multi-window display is stopped and one virtual machine having a different operation mode is operated in full screen display, or vice versa, or is displayed in the state of operating in full screen display. You must change the operating mode (memory configuration) of the real computer, such as switching the virtual computer to another virtual computer with a different operating mode, or starting a new virtual computer with a different operating mode by the method (b). If it is necessary, check the address of the actual "expansion ROM" for the changed operating mode (memory configuration) of the real computer, and according to it, find the address that points to the "expansion ROM" of all virtual computers currently operating. Perform mapping again to point to the actual "expansion ROM".

【0015】その結果、全ての仮想計算機の「拡張RO
M」を指すアドレスは、実計算機の動作モード(メモリ
構成)がどのように変わった場合でも、常にその時の実
際の「拡張ROM」を指すことができる。
As a result, the "extended RO" of all virtual machines
The address indicating "M" can always indicate the actual "expansion ROM" at that time, no matter how the operation mode (memory configuration) of the real computer changes.

【0016】以下に、図を用いて本発明の一実施例を述
べる。図1は、ハイレゾモードとノーマルモードという
2つの動作モードを持ち、動作モードによってBIOS
ROMの内容、VRAMのメモリ構成、拡張ROM領
域のメモリ構成が異なる計算機に、SCSI HDボー
ド1、OFB2、その他の機能を有するボードである拡
張ROM A3の3種類の装置を搭載した時のメモリ構
成例である。計算機及び拡張ROM領域に搭載した装置
は動作中に他の動作モードに切り換えることが可能なタ
イプとする。また、CPUには、80x86(米国イン
テル社 登録商標)のように仮想計算機機能を持ち、仮
想計算機のアドレスをページ単位(1000Hが1ペー
ジ)でメモリにマッピングして使用するものが搭載され
ているとして、この計算機上で本発明を実施する時の流
れを説明する。
An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 has two operation modes, a high resolution mode and a normal mode.
Memory configuration when three types of devices, SCSI HD board 1, OFB2, and extended ROM A3 that is a board having other functions, are installed in a computer having different ROM contents, VRAM memory configuration, and extended ROM area memory configuration Here is an example. The computer and the device installed in the expansion ROM area are of a type that can be switched to another operation mode during operation. Further, the CPU is equipped with a virtual computer function such as 80x86 (registered trademark of Intel Corporation in the United States) that maps the address of the virtual computer to the memory in page units (1000H is one page) and uses it. The flow of carrying out the present invention on this computer will be described below.

【0017】この例では説明を簡単にするために、"実
アドレスにマッピングする必要がある「拡張ROM」の
アドレス" の調査方法は仮想計算機システムをセットア
ップするときに使用者にあらかじめ指定させたものと
し、使用者がSCSI HDボード1とOFB2のハイ
レゾモード時及びノーマルモード時のアドレスを指定し
たとする(SCSI HDボード1のアドレスについて
はシステムが自動的に検出する方法があるが、ここでは
説明を割愛する)。このアドレスをページ単位に変換
し、システム内では図2のテーブルの形で記憶する。
In this example, for simplification of explanation, the method of checking the "address of the" extension ROM "that needs to be mapped to the real address" is specified by the user in advance when setting up the virtual computer system. Then, it is assumed that the user specifies the addresses of the SCSI HD board 1 and the OFB 2 in the high resolution mode and the normal mode (the system automatically detects the address of the SCSI HD board 1, but it is explained here. This address is converted into page units and stored in the system in the form of the table in FIG.

【0018】BIOS ROMの内容と "使用者からア
ドレスが指定されなかった「拡張ROM」のアドレス及
び内容" を記憶する時の処理の流れを図3に示す。実計
算機をハイレゾモードで起動した場合、そこから仮想計
算機システムを起動する時に、まずハイレゾモードのB
IOS ROMの内容をRAMにコピーする。それから
拡張ROM領域内(E5000H〜EFFFFH)に存
在するROMを調べるとE7000H、EA000H、
EC000HにROMが見つかるが、E7000H(O
FB2)とEC000H(SCSI HDボード1)の
ROMは既に "実アドレスにマッピングする必要がある
「拡張ROM」" (図2)に登録されているので、EA
000HのROM(拡張ROM A3)の内容のみをR
AMにコピーする。そして、システム内に図4のテーブ
ル形式で記憶する。
The flow of processing when storing the contents of the BIOS ROM and the "addresses and contents of the" extension ROM "for which no address has been specified by the user" is shown in Fig. 3. When the actual computer is started in high resolution mode , When starting the virtual computer system from there, first set the high-resolution mode B
Copy the contents of IOS ROM to RAM. Then, when the ROM existing in the expansion ROM area (E5000H to EFFFFH) is examined, E7000H, EA000H,
ROM is found in EC000H, but E7000H (O
The FB2) and EC000H (SCSI HD board 1) ROMs are already registered in the "extended ROM" that needs to be mapped to the real address (Fig. 2), so EA
Only the contents of the ROM (expansion ROM A3) of 000H are read
Copy to AM. Then, it is stored in the system in the table format of FIG.

【0019】次に、実計算機のメモリ構成を一旦ノーマ
ルモードに切り換え、ノーマルモードのBIOS RO
Mの内容をRAMにコピーし、それから拡張ROM領域
内(C0000H〜DFFFFH)に存在するROMを
調べる。するとD0000H、D2000H、DC00
0HにROMが見つかるが、D2000H(OFB2)
とDC000H(SCSI HDボード1)のROMは
既に "実アドレスにマッピングする必要がある「拡張R
OM」" (図2)に登録されているので、D0000H
のROM(拡張ROM A3)の内容のみをRAMにコ
ピーして、システム内に図5のテーブル形式で記憶し、
その後、実計算機のメモリ構成をハイレゾモードに戻
す。
Next, the memory configuration of the actual computer is once switched to the normal mode, and the normal mode BIOS RO
The contents of M are copied to RAM, and then the ROM existing in the expansion ROM area (C0000H to DFFFFH) is examined. Then D0000H, D2000H, DC00
ROM can be found at 0H, but D2000H (OFB2)
And the ROM of DC000H (SCSI HD board 1) already has "extended R" that needs to be mapped to the real address.
Since it is registered in OM "" (Fig. 2), D0000H
Copy only the contents of the ROM (expansion ROM A3) to the RAM, and store it in the system in the table format of FIG.
After that, the memory configuration of the actual computer is returned to the high resolution mode.

【0020】なお、実計算機のタイプにより動作中にマ
シンのメモリ構成を変更した場合には変更後のメモリ構
成のBIOS ROMの内容が正しく読めないものがあ
るが、このような計算機の場合にはシステムをセットア
ップした時にあらかじめ "切り換えて動作させるモード
のBIOS ROM" の内容をファイルに出力してお
き、それを起動時にRAMに読み込むという方法を用い
る。
If the memory configuration of the machine is changed during operation depending on the type of real computer, the contents of the BIOS ROM of the changed memory configuration may not be read correctly. However, in the case of such a computer, When the system is set up, the contents of the "switching and operating mode BIOS ROM" are output to a file in advance, and this is read into RAM at startup.

【0021】図6は、実計算機の動作モード(メモリ構
成)に合わせた仮想計算機の "実アドレスにマッピング
する必要がある「拡張ROM」" のアドレスのマッピン
グの方法を示している。図7は、仮想計算機システム内
で動作している全ての仮想計算機の動作モードを記憶し
管理するためのテーブルであり、仮想計算機を起動する
都度それを制御するためのハンドルと動作モードを記録
し、終了する都度その記録を削除する。ここでハンドル
とは各仮想計算機を区別するIDの意味を持ち、ハンド
ルがポイントするアドレスに従って各仮想計算機に対応
した処理が実行される。
6 shows a method of mapping the addresses of the "extended ROM" that needs to be mapped to the real address of the virtual computer according to the operation mode (memory configuration) of the real computer. , A table for storing and managing the operation modes of all the virtual machines operating in the virtual machine system, recording the handle and the operation mode for controlling the virtual machine each time it is started, and ending Each time the record is deleted, the handle has the meaning of an ID that distinguishes each virtual computer, and the processing corresponding to each virtual computer is executed according to the address pointed to by the handle.

【0022】図4、図2、図6を用いて、仮想計算機シ
ステム上でハイレゾモードで動作する1つ目の仮想計算
機をフルスクリーン表示で起動する時のBIOS RO
Mや「拡張ROM」に対するアドレスのマッピング処理
の流れを説明する。
Referring to FIGS. 4, 2 and 6, the BIOS RO at the time of booting the first virtual computer operating in the high resolution mode on the virtual computer system in the full screen display mode.
The flow of address mapping processing for M and the "extended ROM" will be described.

【0023】まず図7のテーブルに、起動する仮想計算
機のハンドルと動作モード(ハイレゾモード)を記録
し、次に図4を参照し、0FOH〜0FFHページに対
し(5)の方法を用いて、ハイレゾモードのBIOS
ROMの内容をコピーしたメモリを指すようにマッピン
グし、さらにそのページを書き込み禁止にする。同様
に、0EAHページがハイレゾモードのEA000Hの
ROMの内容をコピーしたRAMを指すようにマッピン
グし、そのページを書き込み禁止にする。この処理によ
り、この仮想計算機における0F0H〜0FFHページ
及び0EAHページは、実計算機の動作モード(メモリ
構成)にかかわらずハイレゾモード時のROMの内容を
指す事ができる。
First, the handle and operation mode (high resolution mode) of the virtual computer to be started are recorded in the table of FIG. 7, and then referring to FIG. 4, the method (5) is used for pages 0FOH to 0FFH, High resolution mode BIOS
The contents of the ROM are mapped to point to the copied memory, and the page is write protected. Similarly, the 0EAH page is mapped so as to point to the RAM that is a copy of the ROM content of the EA000H in the high resolution mode, and the page is write-protected. By this processing, pages 0F0H to 0FFH and 0EAH in this virtual computer can point to the contents of ROM in the high resolution mode regardless of the operation mode (memory configuration) of the real computer.

【0024】次に、この状態では実計算機はハイレゾモ
ードで動作中であり、起動する仮想計算機の動作モード
も同じなので、図6の "実計算機のメモリ構成" がハイ
レゾモードで "仮想計算機の動作モード" もハイレゾモ
ードの時のマッピングの方法と、図2の "ハイレゾモー
ド時のページ番号" を参照し、0ECHページと0E7
Hページがそのまま実計算機の0ECHページと0E7
Hページを指すようにマッピングする。この処理によ
り、この仮想計算機における0ECHページと0E7H
ページは、実計算機の動作モード(メモリ構成)がハイ
レゾモードである間、実際のSCSI HDボード1と
OFB2を指す事ができる。この時の仮想計算機と実計
算機のメモリ構成の関連を図8に示す。
Next, in this state, the real computer is operating in the high resolution mode, and the operating mode of the virtual computer to be started is also the same, so the "memory configuration of the real computer" in FIG. 0ECH page and 0E7 referring to the mapping method when the mode is also high resolution mode and "Page number in high resolution mode" in Fig. 2.
H page is 0ECH page and 0E7 of real computer
Map to point to page H. By this processing, 0ECH page and 0E7H in this virtual computer
The page can refer to the actual SCSI HD board 1 and OFB 2 while the operation mode (memory configuration) of the real computer is the high resolution mode. FIG. 8 shows the relationship between the memory configurations of the virtual computer and the real computer at this time.

【0025】図5、図2、図6を用いて、ノーマルモー
ドで動作する2つ目の仮想計算機をフルスクリーン表示
で起動する時のBIOS ROMや「拡張ROM」に対
するアドレスのマッピング処理の流れを説明する。まず
図7のテーブルに、起動する仮想計算機のハンドルと動
作モード(ノーマルモード)を記録し、それから図5を
参照し、0E8H〜0FFHページに対し(5)の方法
を用いて、ノーマルモードのBIOS ROMの内容を
コピーしたメモリを指すようにマッピングし、さらにそ
のページを書き込み禁止にする。同様に、0D0Hペー
ジがノーマルモードのD0000HのROMの内容をコ
ピーしたRAMを指すようにマッピングし、そのページ
を書き込み禁止にする。この処理により、この仮想計算
機における0E8H〜0FFHページ及び0D0Hペー
ジは、実計算機の動作モード(メモリ構成)にかかわら
ずノーマルモード時のROMの内容を指す事ができる。
The flow of the address mapping process for the BIOS ROM and the "expansion ROM" when the second virtual computer operating in the normal mode is started in full screen display will be described with reference to FIGS. 5, 2 and 6. explain. First, the handle and operating mode (normal mode) of the virtual machine to be started are recorded in the table of FIG. 7, and then referring to FIG. 5, the BIOS in normal mode is used for pages 0E8H to 0FFH using the method (5). The contents of the ROM are mapped to point to the copied memory, and the page is write protected. Similarly, the 0D0H page is mapped so as to point to the RAM which is a copy of the ROM content of the normal mode D0000H, and the page is write-protected. By this processing, pages 0E8H to 0FFH and 0D0H in this virtual computer can indicate the contents of the ROM in the normal mode regardless of the operation mode (memory configuration) of the real computer.

【0026】ここまでは実計算機はハイレゾモードで動
作中であるが、起動する仮想計算機の動作モードはノー
マルモードであり、しかもフルスクリーン表示で起動す
るため、この時点あるいは起動する仮想計算機が動作を
開始する直前に実計算機の動作モード(メモリ構成)は
ノーマルモードに変更されることになる(VRAMのア
ドレスには実計算機のVRAMをマッピングする必要が
あるため)。従って、これから起動する仮想計算機に対
しては、図6の "実計算機のメモリ構成" がノーマルモ
ードで "仮想計算機の動作モード" もノーマルモードの
時のマッピングの方法と、図2の "ノーマルモード時の
ページ番号" を参照し、0DCHページと0D2Hペー
ジがそのまま実計算機の0DCHページと0D2Hペー
ジを指すようにマッピングする。また、実計算機の動作
モード(メモリ構成)が変更になるため、図7を参照
し、既に動作中の仮想計算機を調べると、1つ目の仮想
計算機がハイレゾモードで動作中なので、この仮想計算
機に対して図6の "実計算機のメモリ構成" がノーマル
モードで "仮想計算機の動作モード" がハイレゾモード
の時のマッピングの方法と、図2の "ハイレゾモード時
のページ番号" と "ノーマルモード時のページ番号" を
参照し、0ECHページが実計算機の0DCHページ、
0E7Hページが実計算機の0D2Hページを指すよう
にマッピングしなおす。
Up to this point, the real computer has been operating in the high-resolution mode, but the operating mode of the virtual computer to be activated is the normal mode, and since it is activated in full-screen display, the virtual computer to be activated at this point or in operation. Immediately before starting, the operation mode (memory configuration) of the real computer is changed to the normal mode (because it is necessary to map the VRAM of the real computer to the address of VRAM). Therefore, for the virtual machine to be started from now on, the mapping method when the "memory configuration of the real machine" in FIG. 6 is the normal mode and the "operation mode of the virtual machine" is also the normal mode, and the "normal mode" in FIG. Refer to the "page number at the time", and map so that the 0DCH page and the 0D2H page directly refer to the 0DCH page and the 0D2H page of the real computer. Moreover, since the operation mode (memory configuration) of the real computer is changed, referring to FIG. 7, when examining the virtual computer that is already operating, the first virtual computer is operating in the high-resolution mode. In contrast, the mapping method when the "memory configuration of the actual computer" in Fig. 6 is the normal mode and the "operation mode of the virtual computer" is the high resolution mode, and the "page number in the high resolution mode" and the "normal mode" in Fig. 2 Page number at the time ", the 0ECH page is the 0DCH page of the actual computer,
Remap so that the 0E7H page points to the 0D2H page of the real computer.

【0027】この処理により、ノーマルモードの仮想計
算機における0DCHページと0D2Hページ及びハイ
レゾモードの仮想計算機における0ECHページと0E
7Hページは、実計算機の動作モード(メモリ構成)が
ノーマルモードである間、実際のSCSI HDボード
1とOFB2を指す事ができる。この時の仮想計算機と
実計算機のメモリ構成の関連を図9に示す。
By this processing, 0DCH page and 0D2H page in the normal mode virtual computer and 0ECH page and 0E in the high resolution mode virtual computer
The 7H page can refer to the actual SCSI HD board 1 and OFB 2 while the operation mode (memory configuration) of the real computer is the normal mode. FIG. 9 shows the relationship between the memory configurations of the virtual computer and the real computer at this time.

【0028】次に、この状態からフルスクリーン表示を
やめてマルチウィンドウ表示(画面はハイレゾモード)
状態で動作するようにオペレータから指示があった場
合、実計算機の動作モード(メモリ構成)はハイレゾモ
ードに変更されることになる。従って、図7を参照して
既に動作中の仮想計算機を調べ、ノーマルモードの仮想
計算機に対しては図6の "実計算機のメモリ構成" がハ
イレゾモードで "仮想計算機の動作モード" がノーマル
モードの時のマッピングの方法を、また、ハイレゾモー
ドの仮想計算機に対しては "実計算機のメモリ構成" が
ハイレゾモードで"仮想計算機の動作モード" もハイレ
ゾモードの時のマッピングの方法をそれぞれ参照し、図
2に示されるページがそれぞれ実際のSCSI HDボ
ード1とOFB2を指す事ができるようにマッピングし
なおせば良い。
Next, in this state, the full-screen display is stopped and the multi-window display (screen is in high resolution mode)
When the operator gives an instruction to operate in the state, the operation mode (memory configuration) of the real computer is changed to the high resolution mode. Therefore, referring to FIG. 7, the virtual computer that is already operating is checked, and for the normal mode virtual computer, the “real computer memory configuration” in FIG. 6 is the high-resolution mode and the “virtual computer operating mode” is the normal mode. For the high-resolution mode virtual computer, refer to the mapping method when the "real computer memory configuration" is high-resolution mode and the "virtual computer operating mode" is also high-resolution mode. The pages shown in FIG. 2 may be remapped so that they can point to the actual SCSI HD board 1 and OFB 2, respectively.

【0029】同じ要領で、オペレータの指示により実計
算機のメモリ構成が変更される場合に、変更後のメモリ
構成に合わせて各仮想計算機の「拡張ROM」のアドレ
スに対する再マッピングを行っていくことにより、実計
算機の動作モードの種類や動作中の仮想計算機の数がさ
らに多い場合でも、モードが異なる全ての仮想計算機の
「拡張ROM」のアドレスが、常にその時の実計算機の
「拡張ROM」を指して動作することができるようにな
る。
In the same manner, when the memory configuration of the real computer is changed by the operator's instruction, remapping to the address of the "extended ROM" of each virtual computer is performed according to the changed memory configuration. Even if there are more types of operating modes of real computers and the number of virtual computers in operation is larger, the "extended ROM" addresses of all virtual computers with different modes always point to the "extended ROM" of the actual computer at that time. Will be able to work.

【0030】なお、この例では、拡張ROM A3をR
AMにコピーして動作させる方法を説明したが、ハイレ
ゾモード時の拡張ROM A3の内容とノーマルモード
時の拡張ROM A3の内容を比較して、一致すればS
CSI HDボード1と同様の扱いで図2に登録し、実
アドレスにマッピングするという方法もあり、その方が
使用するメモリを節約できるという効果がある。
In this example, the expansion ROM A3 is set to R
The method of copying to the AM and operating it has been described, but the contents of the expansion ROM A3 in the high resolution mode and the contents of the expansion ROM A3 in the normal mode are compared, and if they match, S
There is also a method of registering in FIG. 2 and mapping to a real address in the same manner as the CSI HD board 1, which has the effect of saving the memory used.

【0031】また本実施例は、メモリ構成の異なるモー
ドの例としてハイレゾモードとノーマルモードを挙げて
説明したが、その他のモードの切換えであっても本実施
例の方法は適用可能である。
Further, although the present embodiment has been described by taking the high resolution mode and the normal mode as examples of the modes having different memory configurations, the method of the present embodiment can be applied to switching of other modes.

【0032】[0032]

【発明の効果】以上述べた如く、オペレータの指示に合
わせて動作中の全ての仮想計算機の「拡張ROM」のア
ドレスに対する再マッピングをその都度行っていくこと
により、複数の動作モードを持ち動作モードによって拡
張ROM領域のメモリ構成が変わる計算機に「拡張RO
M」を搭載した状態で、動作モードの異なる複数の仮想
計算機を同時に動作させる仮想計算機システムを実現さ
せることが可能になる。
As described above, according to the instruction of the operator, the re-mapping to the addresses of the "expansion ROM" of all the virtual computers in operation is performed each time, thereby having a plurality of operation modes. Depending on the computer, the memory configuration of the extended ROM area may change depending on
It becomes possible to realize a virtual computer system in which a plurality of virtual computers having different operation modes are operated at the same time with "M" mounted.

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

【図1】本発明の実施例で使用しているハイレゾモード
とノーマルモードの2つの動作モードを持つ計算機の、
モード別のメモリ構成図。
FIG. 1 shows a computer having two operation modes, a high resolution mode and a normal mode, used in an embodiment of the present invention,
FIG. 3 is a memory configuration diagram for each mode.

【図2】実アドレスにマッピングする必要がある「拡張
ROM」のページ番号の管理テーブルを示す図。
FIG. 2 is a diagram showing a management table of page numbers of “expansion ROM” that need to be mapped to real addresses.

【図3】BIOS ROMの内容と "「拡張ROM」の
アドレス及び内容" を記憶する際の処理を示すフローチ
ャート。
FIG. 3 is a flowchart showing a process of storing the contents of the BIOS ROM and the “address and contents of the“ extension ROM ””.

【図4】ハイレゾモードの仮想計算機のROMに対する
アドレスを、その内容をコピーしたRAMにマッピング
するためのテーブルを示す図。
FIG. 4 is a diagram showing a table for mapping an address for a ROM of a high-resolution mode virtual computer to a RAM in which its contents are copied.

【図5】ノーマルモードの仮想計算機のROMに対する
アドレスを、その内容をコピーしたRAMにマッピング
するためのテーブルを示す図。
FIG. 5 is a diagram showing a table for mapping an address for a ROM of a virtual machine in a normal mode to a RAM whose contents are copied.

【図6】実計算機のメモリ構成に合わせて仮想計算機の
「拡張ROM」のアドレスを実アドレスにマッピングす
る方法を示す図。
FIG. 6 is a diagram showing a method of mapping an address of an “expansion ROM” of a virtual computer to a real address according to a memory configuration of the real computer.

【図7】仮想計算機システム内で動作している全ての仮
想計算機の動作モードを記憶し管理するためのテーブル
を示す図。
FIG. 7 is a diagram showing a table for storing and managing operation modes of all virtual machines operating in the virtual machine system.

【図8】ハイレゾモードの仮想計算機を1つだけ起動し
てフルスクリーン表示で動作させている時のメモリ構成
を示す図。
FIG. 8 is a diagram showing a memory configuration when only one high-resolution mode virtual computer is activated and operated in full-screen display.

【図9】図8の状態から、ノーマルモードの仮想計算機
をフルスクリーン表示で動作するように指定して起動し
た時のメモリ構成を示す図。
FIG. 9 is a diagram showing a memory configuration when the normal mode virtual machine is designated to operate in a full screen display and started from the state of FIG. 8;

【符号の説明】[Explanation of symbols]

1:SCSI HDボード 2:アウトラインフォントボード 3:拡張ROM A 1: SCSI HD board 2: Outline font board 3: Expansion ROM A

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 複数の動作モードを有し、各動作モード
対応して拡張ROM領域のメモリ構成を変更する実計算
機上で、動作モードが異なる複数の仮想計算機を動作さ
せる仮想計算機システムの実行方法において、 各仮想計算機の動作モードを記憶する工程と、 実計算機が各動作モードで動作するときの拡張ROM領
域のメモリ構成を記憶する工程と、 実計算機の動作モードが変更されると、前記動作モード
および前記拡張ROM領域のメモリ構成を参照し、現在
動作している各々の仮想計算機の拡張ROM領域に搭載
されている装置に対するアドレスを実計算機のメモリ構
成に合わせて設定し直す工程とを有する仮想計算機シス
テムの実行方法。
1. An execution method of a virtual computer system for operating a plurality of virtual computers having different operation modes on a real computer having a plurality of operation modes and changing a memory configuration of an expansion ROM area corresponding to each operation mode. In the step of storing the operation mode of each virtual computer, the step of storing the memory configuration of the expansion ROM area when the real computer operates in each operation mode, and the operation when the operation mode of the real computer is changed. Referring to the mode and the memory configuration of the expansion ROM area, and resetting an address for a device mounted in the expansion ROM area of each currently operating virtual computer in accordance with the memory configuration of the actual computer. Execution method of virtual computer system.
JP5010227A 1993-01-25 1993-01-25 Executing method for virtual computer system Pending JPH06222998A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5010227A JPH06222998A (en) 1993-01-25 1993-01-25 Executing method for virtual computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5010227A JPH06222998A (en) 1993-01-25 1993-01-25 Executing method for virtual computer system

Publications (1)

Publication Number Publication Date
JPH06222998A true JPH06222998A (en) 1994-08-12

Family

ID=11744400

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5010227A Pending JPH06222998A (en) 1993-01-25 1993-01-25 Executing method for virtual computer system

Country Status (1)

Country Link
JP (1) JPH06222998A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010128943A (en) * 2008-11-28 2010-06-10 Toshiba Corp Information processing apparatus and method of controlling the same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010128943A (en) * 2008-11-28 2010-06-10 Toshiba Corp Information processing apparatus and method of controlling the same

Similar Documents

Publication Publication Date Title
US5675762A (en) System for locking down part of portion of memory and updating page directory with entry corresponding to part of portion of the memory locked down
US8151275B2 (en) Accessing copy information of MMIO register by guest OS in both active and inactive state of a designated logical processor corresponding to the guest OS
US6996828B1 (en) Multi-OS configuration method
JPS62165250A (en) Virtual memory
JP2007004661A (en) Control method and program for virtual machine
EP0835491A2 (en) Operating system for use with protection domains in a single address space
DE112005001798T5 (en) Managing processor resources during architectural events
JP2000330806A (en) Computer system
US8738890B2 (en) Coupled symbiotic operating system
US20110078474A1 (en) Method of controlling power consumption of a memory according to mapping
JP4921018B2 (en) System, computer system, method and program for providing direct execution function
US5280599A (en) Computer system with memory expansion function and expansion memory setting method
JP2878499B2 (en) Multi-window display method and window system
JPH06222998A (en) Executing method for virtual computer system
JP3613274B2 (en) Information processing device
JPH05250263A (en) Virtual processor system and nonvolatile storage system
JP2002259132A (en) Information processor
JPH0744256A (en) Portable computer
JP2002229800A (en) Information processor
JPH0413716B2 (en)
JPH0157374B2 (en)
JPH08106377A (en) Program registering method
JPS605369A (en) Memory control system
JPH05225108A (en) Multiple terminal input/output control system and its input/output control system
JPS61267149A (en) Data processor