JPH04346136A - Virtual instruction processor structure control method - Google Patents

Virtual instruction processor structure control method

Info

Publication number
JPH04346136A
JPH04346136A JP11847291A JP11847291A JPH04346136A JP H04346136 A JPH04346136 A JP H04346136A JP 11847291 A JP11847291 A JP 11847291A JP 11847291 A JP11847291 A JP 11847291A JP H04346136 A JPH04346136 A JP H04346136A
Authority
JP
Japan
Prior art keywords
task
instruction processor
virtual
instruction
physical
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
JP11847291A
Other languages
Japanese (ja)
Inventor
Toshimichi Kojima
小島 利道
Takashi Shimojo
孝 下城
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP11847291A priority Critical patent/JPH04346136A/en
Publication of JPH04346136A publication Critical patent/JPH04346136A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide the virtual instruction processor structure control method capable of arbitrarily changing the processing ability of a data processing system by changing the system structure during the operation of the operating system in a computer system. CONSTITUTION:A computer system, equipped with physical instruction processors 1 and 2 for an physical computer 9 and a virtual instruction processor to be used by logically dividing the physical instruction processors 1 and 2, corresponds to one or more tasks 14, 15, 18, and 19 realizing the virtual instruction processor for each physical instruction processor 1 and 2. By the generation and deletion of the task, the number of virtual instruction processors is increased or reduced, so as to perform the control setting the allocation of the virtual instruction processor to physical instruction processors and the number of virtual instruction processors.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、仮想命令プロセッサ構
成制御方法に関し、特に、物理計算機の複数の物理命令
プロセッサを有し、複数の物理命令プロセッサを論理的
に分割して使用する仮想命令プロセッサを備える計算機
システムにおいて、仮想命令プロセッサの構成の変更,
再構成などの構成制御を行う仮想命令プロセッサ構成制
御方法に関するものである。
[Field of Industrial Application] The present invention relates to a virtual instruction processor configuration control method, and more particularly to a virtual instruction processor that has a plurality of physical instruction processors of a physical computer and uses the plurality of physical instruction processors by logically dividing them. In a computer system equipped with, changing the configuration of a virtual instruction processor,
The present invention relates to a virtual instruction processor configuration control method that performs configuration control such as reconfiguration.

【0002】0002

【従来の技術】従来、複数のユーザからの多くのデータ
処理要求に対して、適切なサービスを行うため、データ
処理システムでは、オペレーティングシステムの制御下
にシステム運用がなされる。オペレーティングシステム
を動作させるハードウェアの計算機システムは、システ
ム運用に必要な十分なデータ処理能力を備えるため、シ
ステムに組み込む記憶装置の記憶容量,命令プロセッサ
の数などが定められて、システム構成が行なわれて、デ
ータ処理システムの運用がなされる。
2. Description of the Related Art Conventionally, in order to provide appropriate services in response to many data processing requests from a plurality of users, a data processing system is operated under the control of an operating system. In order to ensure that a hardware computer system that runs an operating system has sufficient data processing capacity necessary for system operation, the storage capacity of the storage device to be built into the system, the number of instruction processors, etc. are determined, and the system configuration is performed. The data processing system is operated accordingly.

【0003】このようなデータ処理システムにおいて、
適切なシステム運用を行うため、また、将来のデータ処
理能力の増大を図かるため、システムに組み込む記憶装
置の記憶容量,命令プロセッサの数などのシステムの処
理能力を任意に変え、また、システムの構成を任意に変
えられることが望ましい。
[0003] In such a data processing system,
In order to operate the system appropriately and to increase the data processing capacity in the future, the processing capacity of the system, such as the storage capacity of the storage device built into the system and the number of instruction processors, can be arbitrarily changed. It is desirable to be able to change the configuration arbitrarily.

【0004】しかし、このようにシステム構成の変更は
、従来においては、静的に変えることは行なわれていが
、動的にシステム構成を変更することは行なわれていな
い。この種のデータ処理能力の増加にかかるシステム構
成の変更の技術として、例えば、特開昭63−1639
53号公報に記載されている「プロセッサ増設システム
」の提案では、電子交換機(データ処理システム)にお
いて、呼処理(データ処理サービス)の中断時間を最小
限に押えて、ユニプロセッサ構成からマルチプロセッサ
構成への移行するため、予じめ外部記憶装置の一部に増
設後のシステムファイルを格納しておき、通信路系とプ
ロセッサの接続を切り換えて増設後のシステムファイル
でシステムを立ち上げることにより、呼処理用のプロセ
ッサの増設を行うようにしている。
However, in the past, the system configuration has been changed statically, but not dynamically. As a technique for changing the system configuration to increase this kind of data processing capacity, for example, Japanese Patent Application Laid-Open No. 63-1639
In the proposal for a "processor expansion system" described in Publication No. 53, an electronic exchange (data processing system) can be configured from a uniprocessor configuration to a multiprocessor configuration in order to minimize call processing (data processing service) interruption time. In order to migrate to , store the expanded system file in a part of the external storage device in advance, switch the connection between the communication path system and processor, and start up the system with the expanded system file. We are adding more processors for call processing.

【0005】このように、計算機システムで命令プロセ
ッサの再構成を行う場合、システムの停止および再立ち
上げが必要となっている。また、オペレーティングシス
テムの制御下に仮想計算機システムを実現しているシス
テム運用においても、命令プロセッサの再構成を行う場
合には、該当する仮想計算機システムのオペレーティン
グシステムを停止した後、論理パーティションを停止し
、該当する仮想命令プロセッサの構成を変更するように
している。
As described above, when reconfiguring the instruction processor in a computer system, it is necessary to stop and restart the system. In addition, even when operating a system that implements a virtual computer system under the control of an operating system, when reconfiguring the instruction processor, stop the operating system of the relevant virtual computer system, and then stop the logical partition. , the configuration of the corresponding virtual instruction processor is changed.

【0006】[0006]

【発明が解決しようとする課題】上述のように、従来の
技術では、計算機システムにおいて命令プロセッサのシ
ステム組込みの構成を変更する場合、動的にシステム構
成を変更(再構成)することについての配慮がなされて
いない。例えば、仮想計算機システムでシステム運用し
ているオペレーティングシステムの運用中にシステム構
成を変更しようとすると、オペレーティングシステムお
よび論理パーティションを終了しなければならない。し
かしながら、オペレーティングシステムの運用中では、
オペレーティングシステムおよび論理パーティションを
終了させる処理は、オペレーティングシステムにおける
負荷が大きくなり、動的にシステム構成を変更しようと
しても、事実上不可能であった。
[Problems to be Solved by the Invention] As described above, in the conventional technology, when changing the built-in configuration of an instruction processor in a computer system, consideration is given to dynamically changing (reconfiguring) the system configuration. has not been done. For example, if an attempt is made to change the system configuration while an operating system is being operated on a virtual computer system, the operating system and logical partition must be terminated. However, during operation of the operating system,
The process of terminating the operating system and logical partitions places a heavy load on the operating system, making it virtually impossible to dynamically change the system configuration.

【0007】本発明は、物理計算機の複数の物理命令プ
ロセッサを有し、複数の物理命令プロセッサを論理的に
分割して使用する仮想命令プロセッサを備える計算機シ
ステムにおいて、オペレーティングシステムの運用中に
おいても、システム構成を変更してデータ処理システム
の処理能力を任意に変更可能とし、効果的にシステム運
用が行なえる仮想命令プロセッサ構成制御方法を提供す
ることにある。
The present invention provides a computer system having a plurality of physical instruction processors of a physical computer and a virtual instruction processor that logically divides and uses the plurality of physical instruction processors, even during operation of an operating system. It is an object of the present invention to provide a virtual instruction processor configuration control method that allows the processing capacity of a data processing system to be arbitrarily changed by changing the system configuration and enables effective system operation.

【0008】[0008]

【課題を解決するための手段】上記の目的を達成するた
め、本発明の仮想命令プロセッサ構成制御方法は、物理
計算機の複数の物理命令プロセッサを有し、複数の物理
命令プロセッサを論理的に分割して使用する仮想命令プ
ロセッサを備える計算機システムにおいて、物理命令プ
ロセッサ毎に仮想命令プロセッサを実現する1または複
数のタスクを対応づけ、当該タスクの生成および消去に
より、仮想命令プロセッサの数を増加および減少して、
複数の物理命令プロセッサへの仮想命令プロセッサの割
当ておよび仮想命令プロセッサの数を設定する構成制御
を行うことを特徴する。
[Means for Solving the Problems] In order to achieve the above object, the virtual instruction processor configuration control method of the present invention has a plurality of physical instruction processors of a physical computer, and logically divides the plurality of physical instruction processors. In a computer system equipped with virtual instruction processors used as virtual instruction processors, the number of virtual instruction processors can be increased or decreased by associating one or more tasks that implement virtual instruction processors with each physical instruction processor, and creating and erasing the tasks. do,
It is characterized by performing configuration control for allocating virtual instruction processors to a plurality of physical instruction processors and setting the number of virtual instruction processors.

【0009】[0009]

【作用】本発明の仮想命令プロセッサ構成制御方法によ
れば、論理パーティションおよびオペレーティングシス
テムの実行中に、タスクの生成および消去を行う。ここ
でのタスクは、仮想命令プロセッサを実現するために、
物理命令プロセッサ毎に対応づけた1または複数のタス
クである。仮想命令プロセッサは、当該タスクの動作に
より、あたかも命令プロセッサが存在しているように動
作するので、当該タスクの生成および消去により、仮想
計算機システムにおいては仮想命令プロセッサの接続ま
たは切り離しと同一の作用となる。これにより、仮想命
令プロセッサの再構成制御が動的に行えることになる。
According to the virtual instruction processor configuration control method of the present invention, tasks are created and deleted while the logical partition and operating system are being executed. The task here is to realize a virtual instruction processor.
One or more tasks are associated with each physical instruction processor. The virtual instruction processor operates as if an instruction processor existed due to the operation of the task, so the creation and deletion of the task has the same effect as connecting or disconnecting the virtual instruction processor in the virtual computer system. Become. This allows dynamic reconfiguration control of the virtual instruction processor.

【0010】このようにシステム構成制御を行うことに
より、動的にシステム構成を変更でき、仮想計算機シス
テムの技術でシステム運用を行う場合に、処理性能の最
適化がシステム運用中にダイナミックに行える。
[0010] By controlling the system configuration in this manner, the system configuration can be dynamically changed, and when a system is operated using virtual computer system technology, processing performance can be dynamically optimized during system operation.

【0011】[0011]

【実施例】以下、本発明の一実施例を図面を用いて説明
する。図1は本発明の一実施例にかかる計算機システム
の構成を物理計算機および仮想仮想機との関係で説明す
るブロック図である。図1では物理計算機における物理
命令プロセッサへの仮想計機システムのタスク割当てを
示している。図1において、1は第1の命令プロセッサ
(物理命令プロセッサ)であり、2は第2の命令プロセ
ッサ(物理命令プロセッサ)である。第1の命令プロセ
ッサ1および第2の命令プロセッサ2の各々の命令プロ
セッサはそれぞれ#1,#2の番号を内部に保持してい
る。3はコンソール、4は共通メモリである。共通メモ
リ4は、第1の命令プロセッサ1および第2の命令プロ
セッサ2の双方からアクセス可能となっている。コンソ
ール3はオペレータと仮想計算機10との間のユーザイ
ンタフェースとなる表示入出力装置である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram illustrating the configuration of a computer system according to an embodiment of the present invention in relation to a physical computer and a virtual machine. FIG. 1 shows the assignment of tasks in a virtual computer system to physical instruction processors in a physical computer. In FIG. 1, 1 is a first instruction processor (physical instruction processor), and 2 is a second instruction processor (physical instruction processor). Each of the first instruction processor 1 and the second instruction processor 2 internally holds numbers #1 and #2, respectively. 3 is a console, and 4 is a common memory. The common memory 4 is accessible from both the first instruction processor 1 and the second instruction processor 2. The console 3 is a display input/output device that serves as a user interface between the operator and the virtual machine 10.

【0012】仮想計算機10には、物理命令プロセッサ
である第1の命令プロセッサ1(命令プロセッサ#1)
上で動作するモニタタスク11と、フレームタスク12
と、論理パーティション(LPAR#1)タスク13が
生成される。また、同じく、物理命令プロセッサの第1
の命令プロセッサ1(命令プロセッサ#1)上で動作し
、論理パーティション(LPAR#1)タスク13の制
御下に動作する仮想命令プロセッサ(LIP#1.1)
タスク14が生成されて、システム運用がなされる。ま
た、必要に応じて、後述するように、第2の命令プロセ
ッサ2(命令プロセッサ#2)上で動作する論理パーテ
ィション(LPAR#2)タスク17の制御下に動作す
る仮想命令プロセッサ(LIP#2.1)タスク15が
生成されて、物理命令プロセッサの第1の命令プロセッ
サ1(命令プロセッサ#1)上で動作するようにして、
システム運用がなされる。
The virtual computer 10 includes a first instruction processor 1 (instruction processor #1) which is a physical instruction processor.
Monitor task 11 and frame task 12 running on
Then, logical partition (LPAR#1) task 13 is generated. Similarly, the first physical instruction processor
A virtual instruction processor (LIP#1.1) that operates on the instruction processor 1 (instruction processor #1) of , and operates under the control of the logical partition (LPAR#1) task 13.
A task 14 is generated and the system is operated. In addition, if necessary, as will be described later, a virtual instruction processor (LIP#2) that operates under the control of a logical partition (LPAR#2) task 17 that operates on the second instruction processor 2 (instruction processor #2) is added. .1) Task 15 is generated and runs on the first instruction processor 1 (instruction processor #1) of the physical instruction processors;
The system is operated.

【0013】また、仮想計算機10には、物理命令プロ
セッサである第2の命令プロセッサ2(命令プロセッサ
#2)上で動作するモニタタスク16と、論理パーティ
ション(LPAR#2)タスク17とが生成され、更に
、該論理パーティション(LPAR#2)タスク17で
制御される仮想命令プロセッサ(LIP#2.1)タス
ク18が生成されて、システム運用がなされている。 また、必要に応じて、前述した論理パーティション(L
PAR#1)タスク13で制御下に動作する仮想命令プ
ロセッサ(LIP#1.2)タスク19が新たに生成さ
れてシステム運用がなされる。なお、この仮想命令プロ
セッサ(LIP#1.2)タスク19は、物理命令プロ
セッサである第2の命令プロセッサ2(命令プロセッサ
#2)上で動作するタスクとしてシステム運用がなされ
る。
Furthermore, a monitor task 16 that operates on the second instruction processor 2 (instruction processor #2), which is a physical instruction processor, and a logical partition (LPAR #2) task 17 are generated in the virtual machine 10. Furthermore, a virtual instruction processor (LIP#2.1) task 18 controlled by the logical partition (LPAR#2) task 17 is generated to operate the system. In addition, if necessary, the above-mentioned logical partition (L
A virtual instruction processor (LIP#1.2) task 19 that operates under the control of the PAR#1) task 13 is newly generated to perform system operation. Note that this virtual instruction processor (LIP#1.2) task 19 is operated in the system as a task that operates on the second instruction processor 2 (instruction processor #2), which is a physical instruction processor.

【0014】共通メモリ4には、物理命令プロセッサ1
(命令プロセッサ#1)上で動作するタスクをキューイ
ングする第1のタスクキュー5(タスクキュー#1)と
、物理命令プロセッサ2(命令プロセッサ#2)上で動
作するタスクをキューイングする第2のタスクキュー6
(タスクキュー#2)とが設けられ、また、物理命令プ
ロセッサ1(命令プロセッサ#1)および物理命令プロ
セッサ2(命令プロセッサ#2)の任意の物理命令プロ
セッサ上で動作するタスクをキューイングする第3のタ
スクキュー7(タスクキュー#3)が設けられる。この
ように、各々の物理命令プロセッサに対応して、該物理
命令プロセッサ上で動作するタスクをキューイングする
各々のタスクキューが設けられる。
A physical instruction processor 1 is stored in the common memory 4.
A first task queue 5 (task queue #1) that queues tasks that run on the physical instruction processor 2 (instruction processor #1), and a second task queue that queues tasks that run on the physical instruction processor 2 (instruction processor #2). task queue 6
(task queue #2), and a task queue for queuing tasks that operate on any physical instruction processor of physical instruction processor 1 (instruction processor #1) and physical instruction processor 2 (instruction processor #2). 3 task queues 7 (task queue #3) are provided. In this way, corresponding to each physical instruction processor, each task queue is provided for queuing tasks that operate on the physical instruction processor.

【0015】ここでは、物理命令プロセッサである第2
の命令プロセッサ2(命令プロセッサ#2)において動
作する仮想命令プロセッサ(LIP#1.2)タスク1
9を新たに生成することで、論理パーティション(LP
AR#1)タスク13で制御される仮想命令プロセッサ
数を増加させ、一方、物理命令プロセッサ1(命令プロ
セッサ#1)において動作する仮想命令プロセッサ(L
IP#2.1)タスク15を消去することにより、第1
の命令プロセッサ1(命令プロセッサ#1)で動作する
仮想命令プロセッサ数を減少させるようにして、各々の
物理命令プロセッサで動作する仮想命令プロセッサ数を
合わせる。このようにして、仮想命令プロセッサの物理
命令プロセッサ割当て(各々の物理命令プロセッサに対
する仮想命令プロセッサ割当て)を変更し、システムの
再構成処理を行う。
[0015] Here, the second processor, which is a physical instruction processor,
Virtual instruction processor (LIP#1.2) task 1 operating on instruction processor 2 (instruction processor #2) of
By newly generating 9, the logical partition (LP
AR#1) Increase the number of virtual instruction processors controlled by task 13, while increasing the number of virtual instruction processors (L
IP#2.1) By erasing task 15, the first
The number of virtual instruction processors operating on each physical instruction processor is adjusted by reducing the number of virtual instruction processors operating on instruction processor 1 (instruction processor #1). In this way, the physical instruction processor allocation of the virtual instruction processors (virtual instruction processor allocation for each physical instruction processor) is changed, and system reconfiguration processing is performed.

【0016】図2は、仮想計算機のシステム構成を示す
機能構成のブロック図である。図2において、21はモ
ニタセクションであり、モニタセクション21は、タス
ク管理機能,割込みハンドラ機構,タイマ制御機能,お
よびマクロ制御機能を持っている。23,24,27,
28は仮想命令プロセッサセクションであり、これらの
仮想命令プロセッサ(以下LIPと略称する)セクショ
ンは、命令シミュレータ機能,割込みシミュレータ機能
を持っている。また、22,26は論理パーティション
セクションであり、論理パーティション(以下LPAR
と略称する)セクションは仮想命令プロセッサを制御す
るLIP制御機能を持っている。
FIG. 2 is a functional block diagram showing the system configuration of a virtual machine. In FIG. 2, 21 is a monitor section, and the monitor section 21 has a task management function, an interrupt handler mechanism, a timer control function, and a macro control function. 23, 24, 27,
28 is a virtual instruction processor section, and these virtual instruction processor (hereinafter abbreviated as LIP) sections have an instruction simulator function and an interrupt simulator function. In addition, 22 and 26 are logical partition sections, and logical partitions (hereinafter referred to as LPAR) are logical partition sections.
) section has a LIP control function that controls the virtual instruction processor.

【0017】仮想命令プロセッサの機能を実現するLI
Pセクション23(LIP#1.1)およびLIPセク
ション24(LIP#1.2)は、LPARセクション
22(LPAR#1)により制御され、LIPセクショ
ン27(LIP#2.1)およびLIPセクション28
(LIP#2.2)は、LPARセクション26(LP
AR#2)により制御される。オペレーティングシステ
ムはLPAR単位に1個稼働することができる。また、
25はフレームセクションであり、コンソール(3;図
1)を経由して、オペレータからのコマンドやデータを
入出力する入出力機能を有している。各セクションの処
理機能はタスク処理により実行されるので、各セクショ
ン間のデータ連絡は、タスク間通信機能を用いて、仮想
計算機内部のコマンドやデータの通信が可能となってい
る。
LI that realizes the functions of a virtual instruction processor
P section 23 (LIP#1.1) and LIP section 24 (LIP#1.2) are controlled by LPAR section 22 (LPAR#1), and LIP section 27 (LIP#2.1) and LIP section 28
(LIP#2.2) is LPAR section 26 (LP
AR#2). One operating system can run in each LPAR. Also,
A frame section 25 has an input/output function for inputting and outputting commands and data from an operator via a console (3; FIG. 1). Since the processing function of each section is executed by task processing, data communication between each section is made possible by using the inter-task communication function to communicate commands and data within the virtual machine.

【0018】図3は、オペレーティングシステムにより
物理計算機との命令プロセッサ再構成を実行するための
命令語のフォーマットを示す図である。この命令語は、
図示するように、オペコード31とオペランド32から
構成されている。オペランド32には命令プロセッサ番
号が設定され、命令プロセッサ再構成を実行するための
処理が行なわれる。
FIG. 3 is a diagram showing the format of an instruction word for executing instruction processor reconfiguration with a physical computer by the operating system. This command word is
As shown in the figure, it is composed of an opcode 31 and an operand 32. An instruction processor number is set in the operand 32, and processing for executing instruction processor reconfiguration is performed.

【0019】図4は仮想命令プロセッサを実現するタス
クの処理フローを示すフローチャートであり、図5は論
理パーティションタスクの処理フローを示すフローチャ
ートである。また、図6はモニタタスクのマクロ実行部
の処理フローを示すフローチャートである。図4〜図6
を参照して、LIPタスク(仮想命令プロセッサ)の生
成と消去の具体例を説明する。LIPタスクの生成は、
LPARが発行するCRTASKマクロによりモニタタ
スクの処理により行う。また、LIPタスクの消去は、
LPARが発行するDETASKマクロにより実現する
FIG. 4 is a flowchart showing the processing flow of a task that implements a virtual instruction processor, and FIG. 5 is a flowchart showing the processing flow of a logical partition task. Further, FIG. 6 is a flowchart showing the processing flow of the macro execution unit of the monitor task. Figures 4 to 6
A specific example of creation and deletion of a LIP task (virtual instruction processor) will be explained with reference to . Generation of LIP task is
This is done by processing a monitor task using the CRTASK macro issued by LPAR. Also, to delete the LIP task,
This is realized by the DETASK macro issued by LPAR.

【0020】まず、図5を参照すると、論理パーティシ
ョンタスクの処理では、図5に示すように、仮想計算機
の立ち上げによってLPAR(論理パーティション)タ
スクがスタートし、ステップ51のLPAR立つ上げ処
理の後に、次のステップ52においてCRTASKによ
り全てのLIPを生成する。その後にステップ53にお
いて他のタスクからの命令を待つ。
First, referring to FIG. 5, in the processing of the logical partition task, as shown in FIG. , in the next step 52, generate all LIPs by CRTASK. Thereafter, in step 53, instructions from other tasks are awaited.

【0021】仮想命令プロセッサを実現する各々のLI
Pタスクの処理は、図4に示すような処理フローにより
実行される。LIPタスクの処理は、LPARタスクの
CRTASKによって、図6に示すようなマクロ実行部
の処理により、処理が開始される。
Each LI realizing a virtual instruction processor
The processing of the P task is executed according to the processing flow shown in FIG. The processing of the LIP task is started by the CRTASK of the LPAR task and by the processing of the macro execution unit as shown in FIG.

【0022】LIPタスクの処理は、図4を参照して説
明すると、LIPタスクの処理では、ステップ40にお
いて、LIP立ち上げ処理が行なわれると、次に、ステ
ップ41において、オペレーティングシステムのタスク
起動が行なわれ、オペレーティングシステムが動作する
。オペレーティングシステムは、例えば、図3に示すよ
うな命令語による命令プロセッサ再構成のコマンドを受
け取ると、命令プロセッサ番号をオペランドとして格納
し、オペレーション(接続または切り離し)を区別した
オペコードにより命令語を実行する。該命令語は、また
自動的にLIPによる命令語シミュレーション要求にな
り、ここでの処理の制御がステップ41からステップ4
2に移ることになる。ステップ42では、オペレテーテ
ィングシステムの動作を保証するため、物理レジスタ,
プログラムステータスワードなどの情報がメモリに退避
される。そして、次のステップ43において、このタス
クで実行する命令語が、他のシミュレーション要求命令
であるか、またはシステム構成制御の当該再接続命令で
あるかを区別する。すなわち、ステップ43において、
オペコードはLIPの生成または消去指示であるか否か
の判定を行う。オペコードはLIPの生成または消去指
示である場合には、ステップ44に進み、命令プロセッ
サ番号をLPAR(LPARタスク)に通知すると共に
(当該LIPの)生成/消去を指示する。これは、タス
ク間通信により、命令プロセッサ番号と接続(タスク生
成を意味する)または切り離し(タスク消去を意味する
)の指示をLPARタスクに通知する。一方、オペコー
ドがLIPの生成または消去指示でない場合は、他のシ
ミュレーション要求命令であるので、ステップ45に進
み、当該命令語にかかる他の命令シミュレーション処理
を行う。そして、次にステップ46に進む。
The LIP task processing will be explained with reference to FIG. 4. In the LIP task processing, in step 40, LIP startup processing is performed, and then in step 41, the task startup of the operating system is performed. The operating system runs. For example, when the operating system receives a command to reconfigure the instruction processor using an instruction word as shown in FIG. 3, it stores the instruction processor number as an operand and executes the instruction word using an opcode that distinguishes the operation (connection or disconnection). . The command word also automatically becomes a command word simulation request by LIP, and the processing here is controlled from step 41 to step 4.
I will move on to 2. In step 42, in order to guarantee the operation of the operating system, physical registers,
Information such as the program status word is saved to memory. Then, in the next step 43, it is determined whether the command to be executed in this task is another simulation request command or the relevant reconnection command for system configuration control. That is, in step 43,
It is determined whether the operation code is an LIP generation or deletion instruction. If the operation code is an LIP generation or deletion instruction, the process proceeds to step 44, where the instruction processor number is notified to the LPAR (LPAR task) and generation/deletion (of the LIP) is instructed. This notifies the LPAR task of an instruction processor number and a connection (meaning task creation) or disconnection (meaning task deletion) instruction through inter-task communication. On the other hand, if the opcode is not an LIP generation or deletion instruction, it is another simulation request instruction, and the process proceeds to step 45, where another instruction simulation process related to the instruction word is performed. Then, the process proceeds to step 46.

【0023】LPARの処理は、後述するが、LPAR
からの完了通知により、LIPタスクでは、次のステッ
プ46において先に退避した情報(オペレーティングシ
ステムのタスク情報)の回復処理を行う。そして、ステ
ップ41に戻り、再びオペレーティングシステムのタス
クを起動する。
[0023] The LPAR processing will be described later, but the LPAR
In response to the completion notification from , the LIP task performs recovery processing of the previously saved information (operating system task information) in the next step 46 . Then, the process returns to step 41 and the operating system task is started again.

【0024】再び、図5を参照して説明を続けると、ス
テップ53で待ち状態(WAIT状態)中のLPARタ
スクは、フレームタスクまたはその制御下のLIPタス
クからの通信を受けると、WAIT状態が解除される。 そして、次のステップ54において、再構成要求と他の
要求とを区別し、再構成要求であると、次のステップ5
5において、新LIP(タスク)生成処理とLIP(タ
スク)消去処理とを切り分けてそれぞれの処理を行う。 すなわち、ステップ54でLIP(タスク)またはフレ
ーム(タスク)からの再構成要求であるか否かを判定し
、再構成要求であると、ステップ55に進み、新LIP
生成であるか否かを判定する。新LIP生成である判定
されると、ステップ56において、該LPARタスク制
御下のLIPタスクが使用していない命令プロセッサ番
号(物理命令プロセッサ)を求める。そして、次のステ
ップ57において、CRTASKマクロの処理を行い、
LIP(タスク)の生成を行う。また、ステップ55の
判定処理で再構成要求が新LIP生成でないと判定され
ると、再構成要求はLIPタスク消去の要求であるので
、ステップ58に進み、DETASKマクロの処理を行
い、該当するLIPタスクを消去する。そして、ステッ
プ53に戻り、WAIT状態となって、次のタスクから
の処理要求の通信を待つ状態となる。
Continuing the explanation with reference to FIG. 5 again, in step 53, when the LPAR task in the WAIT state receives communication from the frame task or the LIP task under its control, it changes from the WAIT state. It will be canceled. Then, in the next step 54, the reconfiguration request is distinguished from other requests, and if it is a reconfiguration request, the next step 5
In step 5, new LIP (task) generation processing and LIP (task) deletion processing are separately performed. That is, in step 54, it is determined whether the request is a reconfiguration request from a LIP (task) or a frame (task), and if it is a reconfiguration request, the process proceeds to step 55, where a new LIP is requested.
Determine whether it is generated. If it is determined that a new LIP is to be generated, in step 56, an instruction processor number (physical instruction processor) that is not used by the LIP task under the control of the LPAR task is determined. Then, in the next step 57, the CRTASK macro is processed,
Generates a LIP (task). If the reconfiguration request is determined not to generate a new LIP in the determination process of step 55, the reconfiguration request is a request to delete a LIP task, so the process proceeds to step 58, where the DETASK macro is processed and the corresponding LIP Delete tasks. Then, the process returns to step 53 and enters a WAIT state, in which it waits for communication of a processing request from the next task.

【0025】一方、ステップ54の判定処理により、タ
スク間通信により他のタスクから受けた処理要求が、L
IP(タスク)またはフレーム(タスク)からの再構成
要求でないと判定された場合には、ステップ59に進み
、該当する処理要求の他の処理を行い、ステップ53に
戻り、WAIT状態となって、次のタスクからの処理要
求の通信を待つ状態となる。
On the other hand, the determination process in step 54 determines that the processing request received from another task through inter-task communication is
If it is determined that the reconfiguration request is not from an IP (task) or a frame (task), the process proceeds to step 59, performs other processing for the corresponding processing request, returns to step 53, enters the WAIT state, It enters a state where it waits for communication of a processing request from the next task.

【0026】ここでの再構成要求の処理を具体的に説明
すると、例えば、LPARタスクがLPAR#1(LP
ARタスク13;図1)である場合、LIP#1.2(
LIPタスク19;図1)がまだ生成されていないため
、再構成要求がLIP生成要求であると、物理命令プロ
セッサとして第2の命令プロセッサ2の命令プロセッサ
番号#2が求められ、CRTASKタスクのオペランド
として、LIP番号の#1.2および命令プロセッサ番
号の#2が指定されて、モニタタスクの処理により、L
IPタスク19(LIP#1.2)が、第2の命令プロ
ッサ2(命令プロセッサ番号#2の物理命令プロセッサ
)で動作する仮想命令プロセッサとして生成される。 また、再構成要求がLIP消去要求であると、LPAR
タスクがLPAR#2(LPARタスク17;図1)で
ある場合、DETASKタスクのオペランドとして命令
プロセッサ番号の#1を指定すると、モニタタスクの処
理により、LIPタスク15(LIP#2.1)が消去
される。このようにして、LIPタスクの生成および消
去の処理が行なわれ、仮想命令プロセッサの再構成制御
が行なわれる。
[0026] To specifically explain the processing of the reconfiguration request here, for example, the LPAR task
AR task 13; Figure 1), LIP #1.2 (
Since the LIP task 19 (Figure 1) has not been generated yet, if the reconfiguration request is a LIP generation request, the instruction processor number #2 of the second instruction processor 2 as the physical instruction processor is obtained, and the operand of the CRTASK task is , the LIP number #1.2 and the instruction processor number #2 are specified, and the LIP number is specified by the process of the monitor task.
An IP task 19 (LIP #1.2) is generated as a virtual instruction processor that operates on the second instruction processor 2 (physical instruction processor with instruction processor number #2). Also, if the reconfiguration request is an LIP deletion request, LPAR
When the task is LPAR #2 (LPAR task 17; Figure 1), if instruction processor number #1 is specified as the operand of the DETASK task, LIP task 15 (LIP #2.1) is deleted by the monitor task processing. be done. In this way, the generation and deletion of LIP tasks are performed, and the reconfiguration control of the virtual instruction processor is performed.

【0027】次に、モニタタスクのマクロ実行部の処理
を、図6に示す処理フローに従って説明する。処理要求
のマクロが発行されると、ステップ61において、当該
マクロがCRTASKであるか否かを判定する。CRT
ASKであると判定された場合には、ステップ62に進
み、タスク管理テーブルを作成し、次のステップ63に
おいて、オペランドとして指定されてい物理命令プロセ
ッサの命令プロセッサ番号に対応するタスクキュー(5
,6,7;図1)にタスク管理テーブルをキューイング
する。
Next, the processing of the macro execution unit of the monitor task will be explained according to the processing flow shown in FIG. When a processing request macro is issued, in step 61 it is determined whether the macro is CRTASK. CRT
If it is determined that the ASK is ASK, the process proceeds to step 62, a task management table is created, and in the next step 63, the task queue (5) corresponding to the instruction processor number of the physical instruction processor specified as an operand is
, 6, 7; Figure 1) to queue the task management table.

【0028】一方、ステップ61の判定処理で、マクロ
がCRTASKであると判定されない場合、次にステッ
プ64に進み、当該マクロがDETASKであるか否か
を判定する。DETASKであると判定された場合、ス
テップ65に進み、オペランドで消去指示された該当タ
スクが実行中であるか否かを判定し、当該タスクが実行
中の場合、ステップ65のスピンループで当該タスク実
行の終了まで待ち、当該タスクの実行が終了し、次の処
理のためタスクキューに登録されると、ステップ66に
おいて、タスクキューからタスク管理テーブルをデキュ
ーし、次のステップ67でタスク管理テーブルを消去す
る。また、ステップ64の判定でマクロがDETASK
であると判定されない場合は、他の処理であるので、ス
テップ68に進んで、該当する他の処理を行う。
On the other hand, if the macro is not determined to be CRTASK in the determination process of step 61, then the process proceeds to step 64, where it is determined whether the macro is DETASK. If it is determined that the task is DETASK, the process proceeds to step 65, and it is determined whether the corresponding task whose deletion is instructed by the operand is being executed. If the task is currently being executed, the task is deleted in the spin loop of step 65. Wait until the end of execution, and when the execution of the task is finished and registered in the task queue for next processing, the task management table is dequeued from the task queue in step 66, and the task management table is dequeued in the next step 67. to erase. Also, in the judgment at step 64, the macro is DETASK.
If it is not determined that this is the case, then the process proceeds to step 68, and the corresponding other process is performed.

【0029】以上の実施例の説明では、コマンドをオペ
レーティングシステムから仮想計算機が受け取ることに
したが、フレームタスクからコマンドを投入し、LPA
Rタスクがタスク間通信で受け取るようにしても、図5
および図6の処理によって、同様な処理が行なわれて、
仮想命令プロセッサの生成および消去のシステム再構成
制御を行うことができる。
In the above description of the embodiment, it was assumed that the virtual machine receives the command from the operating system, but the command is input from the frame task and the LPA
Even if the R task receives it through inter-task communication, Figure 5
Similar processing is performed by the processing shown in FIG.
System reconfiguration control of creation and deletion of virtual instruction processors can be performed.

【0030】このように、本実施例の仮想命令プロセッ
サ構成制御方法によれば、仮想計算機上のオペレーティ
ングシステムを終了することなく、仮想命令プロセッサ
の立ち上げ処理と同様なタスク生成および消去という方
法により、仮想命令プロセッサの再構成制御を行うこと
ができる。
As described above, according to the virtual instruction processor configuration control method of this embodiment, task generation and deletion are performed in the same way as the startup process of the virtual instruction processor, without terminating the operating system on the virtual machine. , it is possible to perform reconfiguration control of the virtual instruction processor.

【0031】[0031]

【発明の効果】以上に説明したように、本発明によれば
、仮想命令プロセッサを実現するタスクの生成および消
去という立ち上げ処理と同様な方法により、仮想命令プ
ロセッサの再構成ができる。このため、オペレーティン
グシステムの負荷を増大させないで、システム構成の再
構成が容易に行える。また、オペレーティングシステム
を終了させないで、再構成の処理を行うことができるた
め、処理性能の最適化がシステム運用中にダイナミック
にできる。
As described above, according to the present invention, a virtual instruction processor can be reconfigured using a method similar to the start-up process of creating and erasing tasks for realizing a virtual instruction processor. Therefore, the system configuration can be easily reconfigured without increasing the load on the operating system. Furthermore, since reconfiguration processing can be performed without terminating the operating system, processing performance can be dynamically optimized during system operation.

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

【図1】図1は本発明の一実施例にかかる計算機システ
ムの構成を物理計算機および仮想仮想機との関係で説明
するブロック図、
FIG. 1 is a block diagram illustrating the configuration of a computer system according to an embodiment of the present invention in relation to a physical computer and a virtual machine;

【図2】図2は仮想計算機のシステム構成を示す機能構
成のブロック図、
[Fig. 2] Fig. 2 is a functional configuration block diagram showing the system configuration of a virtual machine;

【図3】図3はオペレーティングシステムにより物理計
算機との命令プロセッサ再構成を実行するための命令語
のフォーマットを示す図、
FIG. 3 is a diagram showing the format of an instruction word for executing instruction processor reconfiguration with a physical computer by an operating system;

【図4】図4は仮想命令プロセッサを実現するタスクの
処理フローを示すフローチャート、
FIG. 4 is a flowchart showing the processing flow of a task to realize a virtual instruction processor;

【図5】図5は論理パーティションタスクの処理フロー
を示すフローチャート、
FIG. 5 is a flowchart showing the processing flow of a logical partition task;

【図6】図6はモニタタスクのマクロ実行部の処理フロ
ーを示すフローチャートである。
FIG. 6 is a flowchart showing the processing flow of a macro execution unit of a monitor task.

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

1  第1の命令プロセッサ(物理命令プロセッサ)2
  第2の命令プロセッサ(物理命令プロセッサ)3 
 コンソール 4  共用メモリ 5,6,7  タスクキュー 9  物理計算機 10  仮想計算機 11,16  モニタタスク 12  フレームタスク 13,17  LPAR(論理パーティション)タスク
14,15,18,19  LIP(仮想命令プロセッ
サ)タスク 21  モニタセクション 22,26  論理パーティションセクション23,2
4,27,28  仮想命令プロセッサセクション 31  オペコード 32  オペランド
1 First instruction processor (physical instruction processor) 2
Second instruction processor (physical instruction processor) 3
Console 4 Shared memory 5, 6, 7 Task queue 9 Physical computer 10 Virtual computer 11, 16 Monitor task 12 Frame task 13, 17 LPAR (logical partition) task 14, 15, 18, 19 LIP (virtual instruction processor) task 21 Monitor Section 22, 26 Logical partition section 23, 2
4, 27, 28 Virtual instruction processor section 31 Opcode 32 Operand

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  物理計算機の複数の物理命令プロセッ
サを有し、複数の物理命令プロセッサを論理的に分割し
て使用する仮想命令プロセッサを備える計算機システム
において、物理命令プロセッサ毎に仮想命令プロセッサ
を実現する1または複数のタスクを対応づけ、当該タス
クの生成および消去により、仮想命令プロセッサの数を
増加および減少して、複数の物理命令プロセッサへの仮
想命令プロセッサの割当ておよび仮想命令プロセッサの
数を設定する構成制御を行うことを特徴する仮想命令プ
ロセッサ構成制御方法。
Claim 1: In a computer system including a plurality of physical instruction processors of a physical computer and a virtual instruction processor that logically divides and uses the plurality of physical instruction processors, a virtual instruction processor is realized for each physical instruction processor. assign one or more tasks to a plurality of physical instruction processors, and increase and decrease the number of virtual instruction processors by creating and deleting the tasks, allocating virtual instruction processors to multiple physical instruction processors, and setting the number of virtual instruction processors. A virtual instruction processor configuration control method characterized by performing configuration control.
JP11847291A 1991-05-23 1991-05-23 Virtual instruction processor structure control method Pending JPH04346136A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11847291A JPH04346136A (en) 1991-05-23 1991-05-23 Virtual instruction processor structure control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11847291A JPH04346136A (en) 1991-05-23 1991-05-23 Virtual instruction processor structure control method

Publications (1)

Publication Number Publication Date
JPH04346136A true JPH04346136A (en) 1992-12-02

Family

ID=14737523

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11847291A Pending JPH04346136A (en) 1991-05-23 1991-05-23 Virtual instruction processor structure control method

Country Status (1)

Country Link
JP (1) JPH04346136A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6408393B1 (en) * 1998-01-09 2002-06-18 Hitachi, Ltd. CPU power adjustment method
JP2006507561A (en) * 2002-05-09 2006-03-02 インターナショナル・ビジネス・マシーンズ・コーポレーション Method and apparatus for dynamically allocating and deallocating processors in a logically partitioned data processing system
WO2010137092A1 (en) * 2009-05-26 2010-12-02 パナソニック株式会社 Multi-operating system control method and processor system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6408393B1 (en) * 1998-01-09 2002-06-18 Hitachi, Ltd. CPU power adjustment method
US7073076B2 (en) 1998-01-09 2006-07-04 Hitachi, Ltd. CPU power adjustment method
US7461276B2 (en) 1998-01-09 2008-12-02 Hitachi, Ltd. CPU power adjustment method
JP2006507561A (en) * 2002-05-09 2006-03-02 インターナショナル・ビジネス・マシーンズ・コーポレーション Method and apparatus for dynamically allocating and deallocating processors in a logically partitioned data processing system
US7480911B2 (en) 2002-05-09 2009-01-20 International Business Machines Corporation Method and apparatus for dynamically allocating and deallocating processors in a logical partitioned data processing system
WO2010137092A1 (en) * 2009-05-26 2010-12-02 パナソニック株式会社 Multi-operating system control method and processor system

Similar Documents

Publication Publication Date Title
JP3659062B2 (en) Computer system
US7721285B2 (en) Virtual machine system and virtual machine control method
US7810096B2 (en) Computer executing multiple operating systems
JPH0754471B2 (en) Data processing device
JP2009157684A (en) Virtualization program, simulation device, and virtualization method
JP2002132741A (en) Processor adding method, computer and recording medium
JP2001290665A (en) Processor system
JPH06110715A (en) Dynamic allocating method for computer resources in virtual computer system
JPH11259316A (en) Cpu capability adjustment method
JPH0926889A (en) Virtual machine system
JPH04346136A (en) Virtual instruction processor structure control method
JP2001236237A (en) Method for constituting multi-os
JP2000215071A (en) Virtual computer system
JPH06110717A (en) Complex computer system
Fagg et al. Taskers and general resource managers: PVM supporting DCE process management
JP3560762B2 (en) Computer display occupancy user switching device
JP2003076562A (en) Method, device for quantitatively controlling memory, computer program and recording medium
KR100372886B1 (en) Real time scheduling method by standby process
JP4548514B2 (en) Control method of virtual computer system
JP4292220B2 (en) Virtual computer system
JPH0296833A (en) Different type job control system
JPH09179822A (en) Console screen control method
JPH0922363A (en) Task constituting system
JPH05120248A (en) Computer system of multiprocessor constitution
JP2004152060A (en) Computer system and its disk subsystem