JPH03100833A - Virtual machine control system - Google Patents

Virtual machine control system

Info

Publication number
JPH03100833A
JPH03100833A JP1239246A JP23924689A JPH03100833A JP H03100833 A JPH03100833 A JP H03100833A JP 1239246 A JP1239246 A JP 1239246A JP 23924689 A JP23924689 A JP 23924689A JP H03100833 A JPH03100833 A JP H03100833A
Authority
JP
Japan
Prior art keywords
interrupt
host
guest
subchannel
selection information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP1239246A
Other languages
Japanese (ja)
Other versions
JP2864255B2 (en
Inventor
Yasuhiko Nakajima
康彦 中島
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP1239246A priority Critical patent/JP2864255B2/en
Publication of JPH03100833A publication Critical patent/JPH03100833A/en
Application granted granted Critical
Publication of JP2864255B2 publication Critical patent/JP2864255B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To inform a host of an I/O interruption corresponding to an I/O instruction by securing such a constitution where the host produces the I/O instruction with use of a domain and at the same time controls the value of the queue selection information. CONSTITUTION:A host hardware interruption queue 41 is provided together with a gust hardware interruption queue 42, a physical subchannel 52 containing a domain identifier and the interruption queue selection information, an input/ output processor 4, and the channels 5. The processor 4 checks the interruption queue selection information when the end of an input/output process is informed from the channel 5. Then the processor 4 connects the subchannel 52 to the queue 41 when the contents of the interruption queue selection information have the prescribed value. If the contents are not equal to the prescribed value, the subchannel 52 is connected to the queue 42 designated by the domain identifier of the subchannel 52. In such a constitution, an I/O interruption corresponding to an I/O instruction is informed to the host.

Description

【発明の詳細な説明】 (概要) 仮想計算機の入出力制御方式に関し、 ホストがゲストのドメインを使用してI10命令を発行
できると共に、割込みキュー選択情報の値を制御するこ
とにより、上記I10命令に対応する110割込みをホ
ストに通知できるようにすることを目的とし1 .ゲスト・サブチャネルに割込みキュー選択情報を設け
、割込みキュー選択情報をホストから変更できるように
し、割込みキュー選択情報の内容が所定値の場合には、
当該サブチャネルに起因する割込み条件を当該サブチャ
ネルのドメイン識別子で指定されるゲストの割込みキュ
ーではなく、ホストの割込みキューに投入できるように
したものである。
Detailed Description of the Invention (Summary) Regarding the input/output control method of a virtual machine, the host can issue the I10 instruction using the domain of the guest, and by controlling the value of the interrupt queue selection information, the above I10 instruction can be issued. The purpose is to be able to notify the host of the 110 interrupt corresponding to 1. Interrupt queue selection information is provided in the guest subchannel so that the interrupt queue selection information can be changed from the host, and when the contents of the interrupt queue selection information are a predetermined value,
This allows interrupt conditions caused by the subchannel to be submitted to the host's interrupt queue instead of to the guest's interrupt queue specified by the domain identifier of the subchannel.

〔産業上の利用分野〕[Industrial application field]

本発明は、仮想計算機制御方式、特に入出力制御方式に
関するものである。
The present invention relates to a virtual computer control method, particularly an input/output control method.

〔従来の技術〕[Conventional technology]

最初に、第6図および第7図を参照して、仮想計算機の
一般的構成について説明する。第6図は仮想計算機シス
テムの構成を示す図である。仮想計算機機構は、複数の
ユーザ(O8)に対して単一ハードウェアによる仮想的
実計算機環境を提供することを目的とするものである。
First, the general configuration of the virtual machine will be described with reference to FIGS. 6 and 7. FIG. 6 is a diagram showing the configuration of a virtual computer system. The purpose of the virtual computer mechanism is to provide a virtual real computer environment using a single piece of hardware to a plurality of users (O8).

ハードウェア上の構成は、従来の計算機システムと変わ
らない。
The hardware configuration is the same as a conventional computer system.

仮想計算機機構には大きく分けて3つの構成要素がある
。仮想計算機制御プログラム(以下、ホスト・プログラ
ム、或いは単にホストと記述する)は時分割方式により
仮想計算機(以下、ゲスト・プログラム、或いは単にゲ
ストと記述する)を順番に起動して行く、先ず、ゲス)
lを起動する。
The virtual machine mechanism has three main components. A virtual machine control program (hereinafter referred to as a host program or simply a host) sequentially starts a virtual machine (hereinafter referred to as a guest program or simply a guest) in a time-sharing manner. )
Start l.

ゲスト1に割付けたタイム・スライスが経過したら次は
ゲスト22次はゲスト3・・・と言う方法で順繰りにゲ
ストを起動して行く。この方式により、単一のハードウ
ェア上で複数のオペレーティング・システムが走行可能
となる。
After the time slice assigned to guest 1 has elapsed, the next guest is activated as guest 22, then guest 3, and so on. This approach allows multiple operating systems to run on a single piece of hardware.

上記のように、単一のハードウェアを複数のゲストで共
用するため、そのゲストのみが使用するシステム資源(
コンソールなど)は該ゲストが勝手に使用してもよいが
、ゲスト間で共用する資源(物理CPU等)はゲストが
勝手に操作することが出来ない。従って、システム共用
資源を操作することが必要な場合には、ホストがゲスト
の制御に介入する。
As mentioned above, since a single piece of hardware is shared by multiple guests, the system resources used only by that guest (
The guest may use the console (such as a console) without permission, but the guest cannot freely operate resources (such as a physical CPU) that are shared between guests. Therefore, the host intervenes in the control of the guest when it is necessary to manipulate system shared resources.

第7図はシステム操作命令が発行されたときの処理の流
れを示す図である。ゲストは仮想計算機であるが、しか
し大部分の命令はホストが介入することなく直接的に実
行可能である。ゲストの発行した命令がシステム資源操
作命令であり、ホストの介入が必要な場合には、命令が
発行された時点で゛命令の割り出し” (命令インタセ
プト)が発生し、ホストに制御権を委譲する。同様に、
割込みを契機としてホストに制御権を委譲することを“
°割込み割り出し°゛ (割込みインタセプト)と呼ぶ
。従って、ゲスト・プログラムを高速に走行させるため
には、物理CPUの制御権をホストからゲストに移す必
要がある。仮想計算機支援機構付ハードウェアには、こ
のための命令が追加されている。この命令をここではE
 X V M (Execute Virtual M
achine)と呼ぶ。このEXVM命令と命令/割込
み割り出しによるホスト←→ゲスト間の制御権の移行は
第7図に示される。
FIG. 7 is a diagram showing the flow of processing when a system operation command is issued. The guest is a virtual machine, but most instructions can be executed directly without host intervention. If the command issued by the guest is a system resource manipulation command and requires host intervention, "instruction interception" occurs at the time the command is issued, and control is transferred to the host. .Similarly,
“Delegating control to the host using an interrupt as a trigger”
It is called ``Interrupt Interception'' (interrupt intercept). Therefore, in order to run a guest program at high speed, it is necessary to transfer control of the physical CPU from the host to the guest. Hardware with a virtual machine support mechanism has additional instructions for this purpose. This command is E
X V M (Execute Virtual M
It is called achine). The transfer of control rights between the host and the guest by the EXVM command and command/interrupt is shown in FIG.

ところで、仮想計算機システムにおいては、この上で走
行する仮想計算機に対して、ゲスト環境で走行している
ことを特に意識させる事なく、実計算機上で走行してい
るのと同じ機能・環境を提供する事が要求される。この
ことはI10処理においても同様である。既存の仮想計
算機システムでは、ゲストが発行したI10命令に対す
る割込みは該ゲストに対して報告されるため、ゲストに
対して割込みを起こせない場合には、ホストが自ドメイ
ン内のサブチャネルを使用してI10命令を発行するこ
とが要求された。ゲストに対して割込みが起こせない場
合とは、ホストがゲストを新規に開設する時、或いはゲ
ストが発行した割込みを伴わないI10命令を割込みを
伴うI10命令によりホストがエミュレートする時を指
す。具体的には、前者の場合、該ゲストのI10スーパ
バイザが未存在のため該ゲストに対して割込みを起こす
ことが出来ない、また、後者の場合、例えばゲストが発
行したチャネル・リセット命令をホストが通常のチャネ
ル・コマンドによりエミュレートする場合、ゲストは通
常のチャネル・コマンドが発生する割込みを予期しない
ため、この割込みをゲストに対して報告してはならない
By the way, in a virtual computer system, the same functions and environment as those running on a real computer are provided to the virtual computer running on it, without making the virtual computer aware that it is running in a guest environment. is required to do. This also applies to I10 processing. In existing virtual machine systems, interrupts for I10 instructions issued by a guest are reported to the guest, so if an interrupt cannot be caused to the guest, the host uses a subchannel within its own domain. An I10 instruction was required to be issued. The case where an interrupt cannot be caused to a guest refers to when the host newly establishes a guest, or when the host emulates an I10 instruction that does not involve an interrupt issued by the guest by using an I10 instruction that involves an interrupt. Specifically, in the former case, the I10 supervisor of the guest does not exist, so it is not possible to interrupt the guest, and in the latter case, for example, the host cannot issue a channel reset command issued by the guest. When emulating with normal channel commands, this interrupt should not be reported to the guest because the guest does not expect the interrupt that normal channel commands generate.

第4図は従来方式による計算機システムにおける割込み
管理を説明する図である。同図において、4はI10プ
ロセッサ、11はホストCPU、12はゲストCPU、
31と32はハードウェア割込みマスク、41と42は
割込みキュー、51と52は物理サブチャネル、61と
62はドメイン識別子(ID)、Piはホスト、P2は
ゲストをそれぞれ示している。
FIG. 4 is a diagram illustrating interrupt management in a conventional computer system. In the figure, 4 is an I10 processor, 11 is a host CPU, 12 is a guest CPU,
31 and 32 are hardware interrupt masks, 41 and 42 are interrupt queues, 51 and 52 are physical subchannels, 61 and 62 are domain identifiers (ID), Pi is a host, and P2 is a guest, respectively.

ハードウェア割込みマスク31はホストCPU11に対
応して設けられ、ハードウェア割込みマスク32はゲス
トCPU12に対応して設けられている。ハードウェア
割込みマスクは、複数のビットを有しており、ビット値
が1の場合には対応するクラスの割込み要求が受は付け
られる。ハードウェア割込みキュー41はホストCPU
I 1に対応し、ハードウェア割込みキュー42はゲス
トCPtJ12に対応している。ハードウェア割込みキ
ューの各エントリは、ハードウェア割込みマスクの各ビ
ットと1対lに対応しており、各クラスの割込み要求が
キューイングされる。I10プロセッサ4は、I10処
理を行い、割込み要求をホスト又は各ゲストに振り分け
る機能を持つ。図示の例では、サブチャネル51はホス
トP1の中に存在し、サブチャネル52はゲストP2の
中に存在する。サブチャネルは、I10装置に対応する
A hardware interrupt mask 31 is provided corresponding to the host CPU 11, and a hardware interrupt mask 32 is provided corresponding to the guest CPU 12. The hardware interrupt mask has a plurality of bits, and when the bit value is 1, an interrupt request of the corresponding class is accepted. The hardware interrupt queue 41 is the host CPU
I1, and the hardware interrupt queue 42 corresponds to the guest CPtJ12. Each entry in the hardware interrupt queue has a one-to-one correspondence with each bit in the hardware interrupt mask, and interrupt requests of each class are queued. The I10 processor 4 performs I10 processing and has a function of distributing interrupt requests to the host or each guest. In the illustrated example, subchannel 51 resides in host P1 and subchannel 52 resides in guest P2. The subchannels correspond to I10 devices.

サブチャネル51の中にはドメイン識別子61が存在し
、サブチャネル62の中にはドメイン識別子62が存在
する。ドメイン識別子の中には、自己の属するサブチャ
ネルを保持するドメインの識別子が記述される。ドメイ
ンAはホストP1に割り当てられている主記憶の区画で
あり、ドメインBはゲストP2に割り当てられている主
記憶の区画である0例えば、サブチャネル52に対応す
るI10装置からI10処理終了が通知された場合には
、I10プロセッサ4によってサブチャネル52が割込
みキュー42に繋がれ、割込みマスク32を介してゲス
トCPU12にI10処理終了が報告される。
A domain identifier 61 exists in the subchannel 51, and a domain identifier 62 exists in the subchannel 62. In the domain identifier, the identifier of the domain that holds the subchannel to which it belongs is written. Domain A is a main memory section assigned to host P1, and domain B is a main memory section assigned to guest P2. If so, the subchannel 52 is connected to the interrupt queue 42 by the I10 processor 4, and the completion of the I10 processing is reported to the guest CPU 12 via the interrupt mask 32.

第5図は従来方式におけるI10起動→I10処理→割
込み報告を示す図である。同図において、1はホスト空
間、2はゲスト空間、5はチャネル、6はメモリ制御装
置、7は主記憶装置、30はハードウェア割込みマスク
、53は物理サブチャネル、63はドメイン識別子、1
01は制御情報、201はチャネル制御語(CCW)、
301はデータをそれぞれ示す。
FIG. 5 is a diagram showing I10 activation→I10 processing→interrupt report in the conventional system. In the figure, 1 is a host space, 2 is a guest space, 5 is a channel, 6 is a memory control device, 7 is a main storage device, 30 is a hardware interrupt mask, 53 is a physical subchannel, 63 is a domain identifier, 1
01 is control information, 201 is channel control word (CCW),
301 indicates data.

主記憶装置7の中には、ハードウェア固有領域があり、
このハードウェア固有領域の中にドメインA用のハード
ウェア割込みキュー41.ドメインB用のハードウェア
割込みキュー42や物理サブチャネル51〜53が設け
られている。ホスト空間(ドメインA)1はホストP1
のプログラムが格納される区画であり、ゲスト空間(ド
メインB)はゲストP2のプログラムが格納される区画
である。
There is a hardware specific area in the main storage device 7.
This hardware-specific area contains a hardware interrupt queue 41 for domain A. A hardware interrupt queue 42 and physical subchannels 51 to 53 for domain B are provided. Host space (domain A) 1 is host P1
The guest space (domain B) is a partition where the program of guest P2 is stored.

第5図を参照して従来方式におけるI10起動→I10
処理→割込み報告を説明する。
Referring to Figure 5, I10 startup in the conventional method → I10
Processing→Explain interrupt reporting.

■ ホストCPUIIが、サブチャネル番号および制御
情報(CCWアドレス等)の格納先アドレスをオペラン
ドとして、I10起動命令を発行する。制御情報の内容
は、引き続く■10100ために、ハードウェアまたは
ソフトウェアにより物理サブチャネル51に反映される
(2) The host CPU II issues an I10 activation command using the subchannel number and the storage address of control information (CCW address, etc.) as operands. The contents of the control information are reflected in the physical subchannel 51 by hardware or software for the subsequent step 10100.

■ チャネル5は、物理サブチャネルを使用し、チャネ
ル制御語201に従ってデータ空間301との間でI1
0処理を行う。
■ Channel 5 uses physical subchannels and communicates I1 with data space 301 according to channel control word 201.
Perform 0 processing.

■ チャネル5は、I10処理終了を割込みにより通知
する。I10プロセッサ4は、物理サブチャネル51内
に記述されたドメイン識別子61の内容を見て、該物理
サブチャネルをドメインA用の割込みキュー41に繋ぎ
、ハードウェア割込みマスク30を通じてホストCPt
J11に割込み条件を報告する。
(2) Channel 5 notifies the end of I10 processing by interrupt. The I10 processor 4 looks at the content of the domain identifier 61 written in the physical subchannel 51, connects the physical subchannel to the interrupt queue 41 for domain A, and sends the host CPt through the hardware interrupt mask 30.
Reports the interrupt condition to J11.

■ ホストCPtJ11は、ハードウェア割込みキュー
に繋がれている物理サブチャネル51から割込み情報を
取り込み、対応する割込み処理を行う。
(2) The host CPtJ11 takes in interrupt information from the physical subchannel 51 connected to the hardware interrupt queue, and performs the corresponding interrupt processing.

従来方式では、ゲストがチャネル・リセット命令などを
発行した場合にゲストに割込まないためには、ホスト空
間に当該チャネル・リセット命令のだめの制御情報やC
CW、データを書込む必要があり、ホスト空間1の消費
量が増大する。
In the conventional method, in order not to interrupt the guest when the guest issues a channel reset command, etc., the control information and C
CW, it is necessary to write data, and the amount of host space 1 consumed increases.

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

上述のように、従来方式では、ゲストのドメインを使用
して発行されたゲス)I10命令に対する割込みは、該
ゲストに対してのみ報告されるため、ゲストに対して割
込みを起こせない場合のI10命令は、全てホストが自
ドメインを使用して発行する必要があった。
As mentioned above, in the conventional method, an interrupt for a guest I10 instruction issued using a guest's domain is reported only for that guest, so an I10 instruction that cannot cause an interrupt for a guest all required hosts to issue using their own domain.

しかし、ホストがゲストのドメインを使用してI10命
令を発行すると言った柔軟な制御のためには、前述の状
況下においてもゲストの記憶空間に対してI10命令を
発行できる必要があるが、ホスト・サブチャネルはホス
ト空間に対する転送は出来てもゲスト空間への転送は出
来ない。
However, in order to achieve flexible control in which the host issues I10 instructions using the guest's domain, it is necessary to be able to issue I10 instructions to the guest's storage space even under the above circumstances. - Although subchannels can be transferred to the host space, they cannot be transferred to the guest space.

本発明は、この点に鑑みて創作されたものであって、ホ
ストがゲストのドメインを使用してI10命令を発行で
きると共に、割込みキュー選択情報の値を制御すること
により、上記I10命令に対応する110割込みをホス
トに通知できるようになった仮想計算機制御方式を提供
することを目的としている。
The present invention was created in view of this point, and allows the host to issue the I10 instruction using the guest's domain, and also supports the above-mentioned I10 instruction by controlling the value of the interrupt queue selection information. The purpose of the present invention is to provide a virtual machine control method that can notify the host of 110 interrupts.

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

第1図は本発明の原理説明図である。本発明の仮想計算
機制御方式は、ホストに対応して設けられたホスト用の
ハードウェア割込みキュー41と、ゲストに対応して設
けられたゲスト用のハードウェア割込みキュー42と、
ドメイン識別子及び割込みキュー選択情報を有する物理
サブチャネル52、・・・・・・と、入出力処理を行う
と共に入出力割込みをホスト又はゲストに振り分ける入
出力プロセッサ4と、チャネル5とを具備している。
FIG. 1 is a diagram explaining the principle of the present invention. The virtual machine control method of the present invention includes a host hardware interrupt queue 41 provided corresponding to the host, a guest hardware interrupt queue 42 provided corresponding to the guest,
A physical subchannel 52 having a domain identifier and interrupt queue selection information, an input/output processor 4 that performs input/output processing and distributes input/output interrupts to the host or guest, and a channel 5. There is.

ホストは、物理サブチャネル52.・・・内の割込みキ
ュー選択情報を変更することが出来る。
The host connects physical subchannels 52 . You can change the interrupt queue selection information within...

入出力プロセッサ4は、チャネル5から入出力処理終了
が通知された時、対応する物理サブチャネルの割込みキ
ュー選択情報を調べ、当該物理サブチャネルの割込みキ
ュー選択情報の内容が所定値である場合には、当該物理
サブチャネルをホストのハードウェア割込みキューに繋
ぎ、当該物理サブチャネルの割込みキュー選択情報の内
容が所定値でない場合には、当該物理サブチャネルのド
メイン識別子で指定されたゲストのハードウェア割込み
キューに当該物理サブチャネルを繋ぐ処理を行う。
When the input/output processor 4 is notified of the end of input/output processing from the channel 5, it checks the interrupt queue selection information of the corresponding physical subchannel, and if the content of the interrupt queue selection information of the physical subchannel is a predetermined value, connects the physical subchannel to the host's hardware interrupt queue, and if the content of the interrupt queue selection information of the physical subchannel is not a predetermined value, connects the physical subchannel to the hardware interrupt queue of the guest specified by the domain identifier of the physical subchannel. Performs processing to connect the physical subchannel to the interrupt queue.

〔実施例〕〔Example〕

第2図は本発明の計算機システムにおける割込み管理を
説明する図である。同図において、72は割込みキュー
選択情報を示している。なお、第4図と同一符号は同一
物を示している。
FIG. 2 is a diagram illustrating interrupt management in the computer system of the present invention. In the figure, 72 indicates interrupt queue selection information. Note that the same reference numerals as in FIG. 4 indicate the same parts.

第2図に示すように、本発明においては、ゲストの物理
サブチャネルの中に割込みキュー選択情報72が設けら
れている。ホトスCPUI 1は、割込みキュー選択情
報の値を変更できる。割込みキュー選択情報が1の場合
には該サブチャネルに対する割込み要求はホストに対し
て報告され、0の場合には割込みキュー選択情報が属す
る物理サブチャネルの中に存在するドメイン識別子で指
定されたゲストに報告される0図示の例では、物理サブ
チャネル52のドメイン識別子はドメインBを指定して
いるので、割込みキュー選択情報がOの状態の下では、
物理サブチャネル52に対する割込み要求はゲストCP
U12に報告される。
As shown in FIG. 2, in the present invention, interrupt queue selection information 72 is provided in the physical subchannel of the guest. The Hotos CPU 1 can change the value of interrupt queue selection information. If the interrupt queue selection information is 1, the interrupt request for the subchannel is reported to the host, and if it is 0, the interrupt request for the subchannel is reported to the host, and if it is 0, the interrupt request is reported to the host specified by the domain identifier that exists in the physical subchannel to which the interrupt queue selection information belongs. In the illustrated example, the domain identifier of the physical subchannel 52 specifies domain B, so when the interrupt queue selection information is O,
An interrupt request for the physical subchannel 52 is made by the guest CP.
Reported to U12.

ホストPIは、ゲストP2のI10スーパバイザが未実
装の場合には、ゲストP2に割り当てられている物理サ
ブチャネル52の割込みキュー選択情報72の値を1に
する。また、ゲストP2から割込みを伴わない!10命
令(チャネル・リセット命令等)が発行された時にも物
理サブチャネル52の割込みキュー選択情報72の値を
1にする0割込みキュー選択情報に値を書込む処理は、
所定の命令を使用して行われる。このような処理を行っ
た後、ホストP1はゲストI10起動命令を発行する。
If the I10 supervisor of the guest P2 is not installed, the host PI sets the value of the interrupt queue selection information 72 of the physical subchannel 52 assigned to the guest P2 to 1. Also, there is no interruption from guest P2! The process of writing a value to the 0 interrupt queue selection information that sets the value of the interrupt queue selection information 72 of the physical subchannel 52 to 1 even when a 10 instruction (channel reset instruction, etc.) is issued is as follows.
This is done using predetermined instructions. After performing such processing, the host P1 issues a command to start the guest I10.

110割込み発生時には、I10プロセッサ4が110
割込み生成ルーチンにおいて、割込みキュー選択情報7
2の値が1であるか否かを調べる。
When a 110 interrupt occurs, the I10 processor 4 interrupts the 110 interrupt.
In the interrupt generation routine, interrupt queue selection information 7
Check whether the value of 2 is 1.

割込みキュー選択情報72の値が1の場合には、ドメイ
ン識別子62の内容に関係なく、ホストP1に対して割
込みを発生する。
When the value of the interrupt queue selection information 72 is 1, an interrupt is generated to the host P1 regardless of the contents of the domain identifier 62.

第3図は本発明におけるI10起動→I10処理→割込
み報告を示す図である。なお、第2図。
FIG. 3 is a diagram showing I10 activation→I10 processing→interrupt report in the present invention. In addition, Fig. 2.

第5図と同一符号は同一物を示している。The same reference numerals as in FIG. 5 indicate the same parts.

■ ホストCPUI 1が、I10命令エミュレーショ
ンの対象とするドメイン識別子、エミュレートするI1
0命令、サブチャネル番号及び制御情報102  (C
CWアドレス等)の格納先アドレスをオペランドとして
、ゲストI10命令を発行する。制御情報の内容は、引
き続<110動作のために、ハードウェアまたはソフト
ウェアにより物理サブチャネル52内に反映される。
■ Host CPU 1 specifies the domain identifier for I10 instruction emulation and the I1 to be emulated.
0 command, subchannel number and control information 102 (C
A guest I10 instruction is issued using the storage address (CW address, etc.) as an operand. The content of the control information is reflected in the physical subchannel 52 by hardware or software for subsequent <110 operations.

■ チャネル5は、物理サブチャネル52を使用してチ
ャネル制御語202に従って、データ空間302との間
でI10処理を行う。
(2) Channel 5 performs I10 processing with data space 302 according to channel control word 202 using physical subchannel 52.

■ チャネル5は、I10処理終了を割込みにより通知
する。■10プロセッサ4は、物理サブチャネル52内
に記述されている割込みキュー選択情報72を見て、そ
の内容が1の場合には、該物理サブチャネル52をホス
ト用の割込みキュー41に繋ぐ。ハードウェア割込みマ
スク3Oの対応するビットが開いている場合にはCPU
1lに割込みが発生し、ビットが閉じている場合には該
割込みはベンディングされる。一方、割込みキュー選択
情報72の内容が0の場合には、ドメイン識別子62の
内容により、該物理サブチャネル52を割込みキュー4
2に繋ぐ。
(2) Channel 5 notifies the end of I10 processing by interrupt. (1) The processor 4 looks at the interrupt queue selection information 72 written in the physical subchannel 52, and if the content is 1, connects the physical subchannel 52 to the interrupt queue 41 for the host. If the corresponding bit of hardware interrupt mask 3O is open, the CPU
If an interrupt occurs at 1l and the bit is closed, the interrupt is bent. On the other hand, if the content of the interrupt queue selection information 72 is 0, the physical subchannel 52 is assigned to the interrupt queue 4 according to the content of the domain identifier 62.
Connect to 2.

■ ホストCPUIIは、新たにTEST  I10命
令(割込みを伴わないゲストI10命令)を起動するこ
とにより、ハードウェア割込みキュー41に繋がれてい
る物理サブチャネル52から■で報告された割込みに対
応する割込み情報を取り出し、対応する割込み処理を行
う。
■ By starting a new TEST I10 instruction (guest I10 instruction that does not involve an interrupt), the host CPU II issues an interrupt corresponding to the interrupt reported in ■ from the physical subchannel 52 connected to the hardware interrupt queue 41. Extracts information and performs corresponding interrupt processing.

以上の制御により、制御情報102.チャネル制御語2
02.データ302が全てゲスト空間(ドメインB)内
に存在するにも関わらず、ゲストに対して割込みを報告
しない制御が可能である。
With the above control, the control information 102. Channel control word 2
02. Even though all the data 302 exists in the guest space (domain B), it is possible to control not to report interrupts to the guest.

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

以上の説明から明らかなように1、本発明によれば、ゲ
ストに対してI10割込みを発生することなく、ホスト
がゲストのドメインを使用して■10命令を発行するこ
とが出来、ゲストへのI10処理サービスを柔軟に行う
ことが出来る。
As is clear from the above explanation, 1. According to the present invention, the host can issue the ■10 instruction using the guest's domain without generating an I10 interrupt to the guest. I10 processing services can be performed flexibly.

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

第1図は本発明の原理説明図、第2図は本発明による計
算機システムにおける割込み管理を説明する図、第3図
は本発明におけるI10起動→■10処理→割込み処理
を示す図、第4図は従来方式による計算機システムにお
ける割込み管理を説明する図、第5図は従来方式におけ
るI10起動→I10処理→割込み処理を示す図、第6
図は仮想計算機システムの構成を示す図、第7図はシス
テム操作命令が発行されたときの処理の流れを示す図で
ある。 l・・・ホスト空間、2・・・ゲスト空間1,4・・・
I10プロセッサ、5・・・チャネル、6・・・メモリ
制御装置、7・・・主記憶装置、11・・・ホス)CP
U、12・・・ゲストCPU、30ないし32・・・ハ
ードウェア割込みマスク、41と42・・・割込みキュ
ー、51ないし53・・・物理サブチャネル、61ない
し63・・・ドメイン識別子、72・・・割込みキュー
選択情報、101・・・制御情報、201・・・チャネ
ル制御語、301・・・データ。
FIG. 1 is a diagram explaining the principle of the present invention, FIG. 2 is a diagram explaining interrupt management in a computer system according to the present invention, FIG. 3 is a diagram showing I10 startup → ■10 processing → interrupt processing in the present invention, and FIG. The figure is a diagram explaining interrupt management in a computer system according to the conventional method, FIG. 5 is a diagram showing I10 startup → I10 processing → interrupt processing in the conventional method, and FIG.
The figure shows the configuration of the virtual computer system, and FIG. 7 shows the flow of processing when a system operation command is issued. l...Host space, 2...Guest space 1, 4...
I10 processor, 5...channel, 6...memory control device, 7...main storage device, 11...host) CP
U, 12...Guest CPU, 30-32...Hardware interrupt mask, 41 and 42...Interrupt queue, 51-53...Physical subchannel, 61-63...Domain identifier, 72... . . . Interrupt queue selection information, 101 . . . Control information, 201 . . . Channel control word, 301 . . . Data.

Claims (1)

【特許請求の範囲】 ホストに対応して設けられたホスト用のハードウェア割
込みキュー(41)と、 ゲストに対応して設けられたゲスト用のハードウェア割
込みキュー(42)と、 ドメイン識別子及び割込みキュー選択情報を有する物理
サブチャネル(52、…)と、 入出力処理を行うと共に、入出力割込みをホスト又はゲ
ストに振り分ける入出力プロセッサ(4)と、チャネル
(5)と を具備し、 ホストは、物理サブチャネル(52、…)内の割込みキ
ュー選択情報を変更することが出来るように構成され、 入出力プロセッサ(4)は、チャネル(5)から入出力
処理終了が通知された時、対応する物理サブチャネルの
割込みキュー選択情報を調べ、 当該物理サブチャネルの割込みキュー選択情報の内容が
所定値である場合には、当該物理サブチャネルをホスト
のハードウェア割込みキュー(41)に繋ぎ、 当該物理サブチャネルの割込みキュー選択情報の内容が
所定値でない場合には、当該物理サブチャネルのドメイ
ン識別子で指定されたゲストのハードウェア割込みキュ
ー(42)に当該物理サブチャネルを繋ぐ処理を行うよ
うに構成されていることを特徴とする仮想計算機制御方
式。
[Claims] A host hardware interrupt queue (41) provided corresponding to the host, a guest hardware interrupt queue (42) provided corresponding to the guest, a domain identifier and an interrupt. The host is equipped with physical subchannels (52,...) having queue selection information, an input/output processor (4) that performs input/output processing and distributes input/output interrupts to the host or guest, and a channel (5). , is configured to be able to change the interrupt queue selection information in the physical subchannels (52,...), and when the input/output processor (4) is notified of the end of input/output processing from the channel (5), the input/output processor (4) responds accordingly. Check the interrupt queue selection information of the physical subchannel to be processed, and if the content of the interrupt queue selection information of the physical subchannel is a predetermined value, connect the physical subchannel to the hardware interrupt queue (41) of the host, and If the content of the interrupt queue selection information of the physical subchannel is not a predetermined value, a process is performed to connect the physical subchannel to the hardware interrupt queue (42) of the guest specified by the domain identifier of the physical subchannel. A virtual computer control method characterized by:
JP1239246A 1989-09-14 1989-09-14 Virtual computer system Expired - Fee Related JP2864255B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1239246A JP2864255B2 (en) 1989-09-14 1989-09-14 Virtual computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1239246A JP2864255B2 (en) 1989-09-14 1989-09-14 Virtual computer system

Publications (2)

Publication Number Publication Date
JPH03100833A true JPH03100833A (en) 1991-04-25
JP2864255B2 JP2864255B2 (en) 1999-03-03

Family

ID=17041910

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1239246A Expired - Fee Related JP2864255B2 (en) 1989-09-14 1989-09-14 Virtual computer system

Country Status (1)

Country Link
JP (1) JP2864255B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006252565A (en) * 2005-03-11 2006-09-21 Microsoft Corp System and method for multi-level intercept processing in virtual machine environment
US8327353B2 (en) 2005-08-30 2012-12-04 Microsoft Corporation Hierarchical virtualization with a multi-level virtualization mechanism

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006252565A (en) * 2005-03-11 2006-09-21 Microsoft Corp System and method for multi-level intercept processing in virtual machine environment
US8327353B2 (en) 2005-08-30 2012-12-04 Microsoft Corporation Hierarchical virtualization with a multi-level virtualization mechanism

Also Published As

Publication number Publication date
JP2864255B2 (en) 1999-03-03

Similar Documents

Publication Publication Date Title
CN102207886B (en) Virtual machine high-speed simulation is assisted
CN109522087B (en) Virtual mechanism building method and system based on domestic Shenwei processor
JP5079246B2 (en) System and method for multi-level intercept processing in a virtual machine environment
US9207939B2 (en) Performing shadowing function by virtual machine manager in two-level virtual machine environment
JP3653159B2 (en) Virtual computer migration control method between virtual computer systems
US9141417B2 (en) Methods and systems for integrated storage and data management using a hypervisor
US5621912A (en) Method and apparatus for enabling monitoring of guests and native operating systems
CN101968746B (en) A kind of implementation method of kernel virtual machine Organizational Structure Mode
US7971203B2 (en) Method, apparatus and system for dynamically reassigning a physical device from one virtual machine to another
JPH0689253A (en) Data processing system including device driver having general-purpose operating system interface
CN100399274C (en) Method and device for dynamic allocation of input/output devices in a virtual machine system
CN106970821A (en) A kind of method and apparatus that I/O requests are handled under KVM virtualization
JP2010176693A (en) Delivering interrupt directly to virtual processor
KR20160033517A (en) Hybrid virtualization scheme for interrupt controller
WO2006088637A1 (en) Method, apparatus and system for dynamically reassigning memory from one virtual machine to another
JPH0754471B2 (en) Data processing device
JP5532793B2 (en) Program and communication control method
KR920003044B1 (en) Control system for guest execution of virtual computer system
JP2000259434A (en) Logical partitioning computer system
JPH03100833A (en) Virtual machine control system
US12210634B2 (en) Featureless machine enhancement discovery and verification
EP3255544B1 (en) Interrupt controller
JP2001175486A (en) Computer system
US8402191B2 (en) Computing element virtualization
TWI733745B (en) Method and device for processing I/O request under core mode virtual machine (KVM) virtualization

Legal Events

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