JPH05151084A - Tlb entry clearing system - Google Patents

Tlb entry clearing system

Info

Publication number
JPH05151084A
JPH05151084A JP3336062A JP33606291A JPH05151084A JP H05151084 A JPH05151084 A JP H05151084A JP 3336062 A JP3336062 A JP 3336062A JP 33606291 A JP33606291 A JP 33606291A JP H05151084 A JPH05151084 A JP H05151084A
Authority
JP
Japan
Prior art keywords
cpu
tlb
stbr
clear
entry
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
JP3336062A
Other languages
Japanese (ja)
Inventor
Takao Kishi
高夫 岸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP3336062A priority Critical patent/JPH05151084A/en
Publication of JPH05151084A publication Critical patent/JPH05151084A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Abstract

PURPOSE:To clear a TLB entry into the other CPU by using the contents of a 1st STBR in a GOS run by sending out the contents of a 2nd STBR to the CPU as a key for TLB entry clearing when a TLB entry clear request is sent again to the CPU after a TLB entry clear request to the CPU is a failure. CONSTITUTION:Both CPUs 43 and 44 are each provided with the STBR 9 which indicates the head of the segment table in the CPU, the 2nd STBR 10 wherein the contents of the 1st STBR 9 are set when the TLB entry clear request is sent to the other CPU, and a TLB clear failure flag 11 which displays a failure of the TLB entry clear request sent to the other CPU and inhibits the contents from being set in the 2nd STBR 10. When the TLB entry clear request is sent again to the other CPU after the failure of the clear request, the contents of the 2nd STBR 10 are sent to the other CPU as the TLB entry clear key.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は複数の中央処理装置から
構成される仮想計算機システムに於いてTLB(アドレ
ス変換バッファ;Translation Look−
asideBuffer)のエントリをクリアするTL
Bエントリクリア方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a TLB (Address Translation Buffer) in a virtual computer system composed of a plurality of central processing units.
TL that clears the entry of (assideBuffer)
B entry clear method.

【0002】[0002]

【従来の技術】従来から図4に示すような、主記憶装置
(MMU)41と、システム制御ユニット(SCU)4
2と、中央処理装置(CPU)43,44とから構成さ
れるシステムを用いて、図5に示すような仮想計算機シ
ステムが実現されている。
2. Description of the Related Art Conventionally, a main memory unit (MMU) 41 and a system control unit (SCU) 4 as shown in FIG.
A virtual computer system as shown in FIG. 5 is realized by using a system composed of 2 and a central processing unit (CPU) 43, 44.

【0003】図5に示した仮想計算機システムは、ジョ
ブを走行させるホストオペレーティングシステム(HO
S)51と、HOS51のもとで走行するジョブ65〜
67と、HOS51のもとで一つのジョブとして走行
し、複数のゲストオペレーティングシステム(GOS)
53〜55を走行させる仮想計算機監視プログラム(V
MCP)52と、GOS53〜55のもとで走行するジ
ョブ56〜64とから構成されている。
The virtual computer system shown in FIG. 5 is a host operating system (HO) for running a job.
S) 51 and jobs 65 running under the HOS 51
67 and multiple guest operating systems (GOS) running as one job under HOS 51
A virtual computer monitoring program (V
MCP) 52 and jobs 56 to 64 running under GOS 53 to 55.

【0004】ところで、図5に示すような仮想計算機シ
ステムに於いては、従来、TLBのエントリをクリアす
る場合、次のようにしている。
By the way, in the virtual computer system as shown in FIG. 5, conventionally, when clearing the entry of the TLB, the following is done.

【0005】GOS53〜55の走行時…セグメントテ
ーブルベースレジスタ(STBR)の内容をキーにして
TLBエントリのクリアを行なう。
When the GOS 53 to 55 are running: The TLB entry is cleared by using the content of the segment table base register (STBR) as a key.

【0006】VMCP52の走行時…TLBエントリを
全てクリアする。
When the VMCP 52 is running ... Clears all TLB entries.

【0007】HOS51の走行時…STBRの内容をキ
ーにしてTLBエントリのクリアを行なう。
When the HOS 51 is running: The contents of STBR are used as keys to clear the TLB entry.

【0008】このように、HOS51,GOS53〜5
5の走行時、STBRの内容をキーにしてTLBエント
リをクリアするのは、一度、TLBに登録した内容はで
きるだけクリアせずに保存しておこうという考えからで
ある。
As described above, the HOS 51 and GOS 53 to 5
The reason for clearing the TLB entry by using the contents of STBR as a key during traveling of 5 is that the contents once registered in the TLB should be saved without being cleared as much as possible.

【0009】さて、複数のCPU43,44から構成さ
れるシステムでは、他CPUのTLBエントリをクリア
する必要のある場合がある。そのとき、システムが仮想
計算機システムでない場合、STBRの内容はシステム
でひとつしかないので、他CPUのTLBのエントリク
リア時のキーとしてSTBRの内容は必要でない。
In a system including a plurality of CPUs 43 and 44, it may be necessary to clear the TLB entry of another CPU. At that time, if the system is not a virtual computer system, the content of STBR is only one in the system. Therefore, the content of STBR is not necessary as a key for clearing the TLB entry of another CPU.

【0010】一方、システムが仮想計算機システムの場
合は、STBRの内容に関し、HOS−VMCP間では
同一のもの、HOS−GOS間では異なるもの、GOS
−GOS間では異なるものになるので、ひとつのシステ
ムで複数のSTBRの内容が同時に存在することにな
る。即ち、全CPUが同一のSTBRの内容を持つとは
限らない。そこで、他CPUのTLBエントリをクリア
する場合は、自CPUのSTBRの内容を他CPUに対
してもキーとして使用し、自CPUのTLBのエントリ
クリアと同じようにする必要性が出てくる。
On the other hand, when the system is a virtual computer system, the contents of STBR are the same between HOS and VMCP, different between HOS and GOS, and GOS.
-The contents of multiple STBRs exist at the same time in one system, since they differ between GOSs. That is, not all CPUs have the same STBR contents. Therefore, when clearing the TLB entry of the other CPU, it becomes necessary to use the contents of STBR of the own CPU as a key for the other CPU as well as to clear the entry of the TLB of the own CPU.

【0011】今、例えば、GOS走行時に他CPUのT
LBのエントリクリアを実行しようとして失敗したとす
ると、制御がVMCPへ移行する。そこで、VMCPが
GOSの代わりに再度他CPUにTLBエントリクリア
要求を出す。この時、VMCPは前記したように、ST
BRの内容をキーとしないで、TLBのエントリを全て
クリアする。
Now, for example, when the GOS is running, the T of another CPU is
If the attempt to clear the entry of the LB is unsuccessful, the control shifts to VMCP. Therefore, VMCP again issues a TLB entry clear request to another CPU instead of GOS. At this time, VMCP is
Clears all TLB entries without using the contents of BR as a key.

【0012】そのため、HOSが登録したTLBのエン
トリまでクリアしてしまう。従って、VMCPからHO
S下のジョブへディスパッチされた時、該OS下のジョ
ブは再度アドレス変換テーブルを使用したアドレス変換
を行なわなければならない。結局、GOSがHOSに悪
影響を与えることになる。
Therefore, the entry of the TLB registered by HOS is also cleared. Therefore, from VMCP to HO
When dispatched to a job under S, the job under the OS must perform address translation again using the address translation table. Eventually, GOS will adversely affect HOS.

【0013】尚、VMCP走行時、TLBのエントリク
リア方法を変更してSTBRの内容をキーとして使用し
たとする。すると、VMCP走行時のSTBRの内容
と、HOS走行時のSTBRの内容は同一であるので、
HOS走行時のSTBRの内容をキーとしてTLBのエ
ントリをクリアしてしまうことになる。従って、GOS
走行時のSTBRの内容をキーとして使用する他CPU
のTLBエントリクリアがVMCPによって実現されな
いことになる。
It is assumed that the entry clear method of the TLB is changed and the contents of the STBR is used as a key when the VMCP is running. Then, the contents of STBR during VMCP running and the contents of STBR during HOS running are the same,
The entry of TLB will be cleared by using the contents of STBR during HOS running as a key. Therefore, GOS
Other CPU that uses the contents of STBR as a key when driving
TLB entry clear of will not be realized by VMCP.

【0014】[0014]

【発明が解決しようとする課題】上述した従来のTLB
エントリクリア方式は、VMCP走行時、STBRの内
容とは無関係に全てのTLBのエントリをクリアしてし
まうので、GOS,GOS下のジョブの走行時に行なっ
た他CPUに対するTLBエントリクリアが失敗となっ
て制御がVMCPへ移行し、VMCPが他CPUのTL
Bエントリクリアを行なった場合、HOSが登録したT
LBのエントリまでクリアされてしまうことになり、H
OS下のジョブは再びアドレス変換テーブルを使用した
アドレス変換を行なわなければならないという問題があ
る。
DISCLOSURE OF THE INVENTION Problems to be Solved by the Invention
Since the entry clear method clears all TLB entries regardless of the contents of STBR during VMCP running, the TLB entry clearing to other CPUs performed during the running of jobs under GOS and GOS fails. Control shifts to VMCP, VMCP is TL of other CPU
When B entry is cleared, T registered by HOS
Even the entry of LB will be cleared, and H
There is a problem that a job under the OS has to perform address conversion using the address conversion table again.

【0015】本発明の目的は、GOS,GOS下のジョ
ブの走行時に他CPUのTLBエントリクリアに失敗し
て制御がVMCPに移行した場合に於いても、GOS,
GOS下のジョブの走行時のSTBRの内容をキーにし
て他CPUのTLBエントリをクリアできるTLBエン
トリクリア方式を提供することにある。
An object of the present invention is to provide a GOS, GOS, even when the TLB entry of another CPU fails to be cleared and the control shifts to VMCP when a job under the GOS runs.
Another object of the present invention is to provide a TLB entry clear method capable of clearing TLB entries of other CPUs by using the contents of STBR when a job under GOS is running as a key.

【0016】[0016]

【課題を解決するための手段】本発明は上記目的を達成
するため、複数のCPUを含むシステムで実現される仮
想計算機システムに於いて、前記各CPUは、自CPU
内のセグメントテーブルの先頭を指示する第1のSTB
Rと、他CPUに対してTLBエントリクリア要求を行
なう時、前記第1のSTBRの内容がセットされる第2
のSTBRと、他CPUに対して行なったTLBエント
リクリア要求が失敗したことを表示し、前記第2のST
BRへのセットを抑止するTLBクリア失敗フラグとを
備え、他CPUに対して行なったTLBエントリクリア
要求が失敗した後、再度前記他CPUに対してTLBエ
ントリクリア要求を行なう場合は、前記第2のSTBR
の内容をTLBエントリクリアのキーとして前記他CP
Uに送出するものである。
To achieve the above object, the present invention provides a virtual computer system realized by a system including a plurality of CPUs, wherein each CPU is its own CPU.
First STB indicating the beginning of the segment table in the
When the TLB entry clear request is issued to R and another CPU, the contents of the first STBR are set to the second.
STBR and that the TLB entry clear request made to another CPU has failed, and the second ST is displayed.
When a TLB entry clear request made to another CPU fails and a TLB entry clear request is made to the other CPU again after the TLB clear failure flag for inhibiting the setting to BR, the second STBR
The contents of the above are used as a key for clearing the TLB entry,
It is sent to U.

【0017】[0017]

【作用】或るCPUが他のCPUに対してTLBエント
リクリア要求を行なう場合、セグメントテーブルの先頭
を指示する第1のSTBRの内容が第2のSTBRにセ
ットされる。
When a certain CPU makes a TLB entry clear request to another CPU, the contents of the first STBR designating the beginning of the segment table are set in the second STBR.

【0018】上記した他のCPUに対するTLBエント
リクリアが失敗すると、上記或るCPU内のTLBクリ
ア失敗フラグは他のCPUに対して行なったTLBエン
トリクリア要求が失敗したことを表示し、第1のSTB
Rの内容が第2のSTBRにセットされることを抑止す
る。
When the TLB entry clear to the other CPU fails, the TLB clear failure flag in the certain CPU indicates that the TLB entry clear request made to the other CPU has failed, and the first STB
Prevents the contents of R from being set in the second STBR.

【0019】その後、上記或るCPUが再度、他CPU
に対してTLBエントリクリア要求を行なう場合は、第
2のSTBRの内容をTLBエントリクリアのキーとし
て上記他CPUに送出する。この時、TLBクリア失敗
フラグは他のCPUに対して行なったTLBエントリク
リア要求が失敗したことを表示しており、第1のSTB
Rの内容が第2のSTBRにセットされることを抑止し
ているので、上記他CPUにキーとして送出される内容
は、最初に他CPUに対してTLBエントリクリア要求
を行なった時の第1のSTBRの内容と同じになる。
After that, the certain CPU is again activated by another CPU.
When making a TLB entry clear request to the other CPU, the contents of the second STBR are sent to the other CPU as a TLB entry clear key. At this time, the TLB clear failure flag indicates that the TLB entry clear request made to another CPU has failed, and the first STB
Since the contents of R are prevented from being set in the second STBR, the contents sent as the key to the other CPU are the first contents when the TLB entry clear request is first issued to the other CPU. It becomes the same as the contents of STBR.

【0020】[0020]

【実施例】次に本発明の実施例について図面を参照して
詳細に説明する。
Embodiments of the present invention will now be described in detail with reference to the drawings.

【0021】図1は本発明の実施例のブロック図であ
り、図4に示したCPU43,44の構成例を示したも
のである。
FIG. 1 is a block diagram of an embodiment of the present invention, showing a configuration example of the CPUs 43 and 44 shown in FIG.

【0022】CPU43,44はアドレス変換部2と、
演算処理部3と、仮想アドレスレジスタ(VAR)4
と、実アドレスレジスタ(RAR)5とを含んでいる。
The CPUs 43 and 44 include the address conversion unit 2 and
Arithmetic processing unit 3 and virtual address register (VAR) 4
And a real address register (RAR) 5.

【0023】アドレス変換部2はアドレス変換テーブル
を用いてアドレス変換を行なうアドレス変換手段7と、
TLBを用いてアドレス変換を行なうアドレス変換手段
8と、STBR9と、TLBヒット信号14が出力され
ている場合はアドレス変換手段8の出力を選択し、出力
されていない場合はアドレス変換手段7の出力を選択す
るセレクタ15とを含んでいる。
The address conversion unit 2 includes an address conversion unit 7 for performing address conversion using an address conversion table,
Address conversion means 8 for performing address conversion using TLB, STBR 9, and output of address conversion means 8 when STLB hit signal 14 is output, and output of address conversion means 7 when not output. And a selector 15 for selecting.

【0024】TLBを用いてアドレス変換を行なうアド
レス変換手段8はSTBR10と、TLBクリア失敗フ
ラグ11と、セレクタ12,19と、TLB13と、ク
リアロジック部16とから構成されている。
The address conversion means 8 for performing the address conversion using the TLB comprises an STBR 10, a TLB clear failure flag 11, selectors 12 and 19, a TLB 13 and a clear logic section 16.

【0025】セレクタ12は他CPUからSCU42を
介してTLBエントリクリア要求信号18が加えられた
場合は他CPUからSCU42を介して加えられる他C
PUのSTBR9の内容20を選択し、そうでない場合
は自CPU内のSTBR9の内容を選択する。
When the TLB entry clear request signal 18 is applied from the other CPU via the SCU 42, the selector 12 is applied by the other CPU via the SCU 42 to the other C.
The content 20 of STBR9 of PU is selected, and when that is not right, the content of STBR9 in the own CPU is selected.

【0026】セレクタ19はTLBクリア失敗フラグ1
1がONにセットされている場合及びSCU42を介し
て他CPUからTLBエントリクリア要求信号18が加
えられた場合はSTBR10を選択し、TLBクリア失
敗フラグ11がOFFにセットされ、且つTLBエント
リクリア要求信号18が加えられていない場合はSTB
R9を選択する。
The selector 19 uses the TLB clear failure flag 1
When 1 is set to ON and when the TLB entry clear request signal 18 is added from another CPU via the SCU 42, STBR 10 is selected, the TLB clear failure flag 11 is set to OFF, and the TLB entry clear request is made. STB if signal 18 is not applied
Select R9.

【0027】通常、メモリアクセスを行なう場合、VA
R4内に格納されている仮想アドレスがアドレス変換部
2で実アドレスに変換され、RAR5に格納される。そ
して、RAR5内に格納された実アドレスがSCU42
を経由してMMU41に供給され、メモリアクセスが行
なわれる。
Normally, when performing memory access, VA
The virtual address stored in R4 is converted into a real address by the address conversion unit 2 and stored in RAR5. Then, the real address stored in RAR5 is SCU42.
Is supplied to the MMU 41 via the memory and memory access is performed.

【0028】アドレス変換テーブルを使用してアドレス
変換を行なうアドレス変換手段7及びTLBを使用して
アドレス変換を行なうアドレス変換手段8を有している
アドレス変換部2は、アドレス変換手段8で実アドレス
が得られた場合はセレクタ15を介してRAR5に実ア
ドレスを格納し、アドレス変換手段8で実アドレスを得
ることができない場合はアドレス変換手段7で得られた
実アドレスをセレクタ15を介してRAR5に供給す
る。
The address translation unit 2 having the address translation means 7 for performing the address translation using the address translation table and the address translation means 8 for performing the address translation by using the TLB is the real address in the address translation means 8. Is obtained, the real address is stored in the RAR 5 via the selector 15. If the real address cannot be obtained by the address translation means 8, the real address obtained by the address translation means 7 is sent to the RAR 5 via the selector 15. Supply to.

【0029】図2はアドレス変換テーブルによりアドレ
ス変換を行なうアドレス変換手段7の構成例を示すブロ
ック図であり、セグメントテーブル71と、ページテー
ブル72とから構成されている。尚、図2に於いて図1
と同一符号は同一部分を表している。
FIG. 2 is a block diagram showing an example of the structure of the address conversion means 7 for performing the address conversion by the address conversion table, which is composed of a segment table 71 and a page table 72. In addition, in FIG.
The same reference numerals as in FIG.

【0030】VAR4にセグメント番号4−1,ページ
番号4−2,変位4−3から構成される仮想アドレスが
格納されると、STBR9の内容によって先頭位置が示
されるセグメントテーブル71がセグメント番号4−1
によって検索される。更に、セグメントテーブル71の
検索内容とページ番号4−2によってページテーブル7
2が検索される。そして、ページテーブル72の検索内
容及びVAR4内の変位4−3がそれぞれ実アドレスを
構成するページ番号5−1及び変位5−2としてRAR
5に格納される。
When a virtual address composed of a segment number 4-1, a page number 4-2, and a displacement 4-3 is stored in VAR4, the segment table 71 whose head position is indicated by the contents of STBR 9 is displayed as the segment number 4-. 1
To be searched by. Further, the page table 7 is searched according to the search contents of the segment table 71 and the page number 4-2.
2 is searched. Then, the search contents of the page table 72 and the displacement 4-3 in the VAR 4 are the RAR as the page number 5-1 and the displacement 5-2, respectively, which form the real address.
Stored in 5.

【0031】また、TLBによりアドレス変換を行なう
アドレス変換手段8はVAR4にセグメント番号4−
1,ページ番号4−2,変位4−3から構成される仮想
アドレスがセットされると、VAR4にセットされた仮
想アドレス及びSTBR9の内容に基づいてTLB13
を検索することにより、実アドレスを出力する。
Further, the address translation means 8 for performing the address translation by TLB adds the segment number 4-to VAR4.
When a virtual address composed of 1, page number 4-2 and displacement 4-3 is set, the TLB 13 is set based on the virtual address set in VAR 4 and the contents of STBR 9.
The actual address is output by searching for.

【0032】TLB13の各エントリは、例えば、図3
に示すように、エントリの有効無効を示すVビット13
−1,仮想空間番号(WSQ)13−2,仮想ページ番
号13−3,STBRの値13−4,ページ番号13−
5,アクセスするページの属性を示すフラグ13−6か
ら構成されている。
Each entry of the TLB 13 is, for example, as shown in FIG.
, V bit 13 indicating whether the entry is valid or invalid
-1, virtual space number (WSQ) 13-2, virtual page number 13-3, STBR value 13-4, page number 13-
5, a flag 13-6 indicating the attribute of the page to be accessed.

【0033】即ち、アドレス変換手段8はTLB13
に、STBRの値13−4がSTBR9の内容と同一
で、且つ仮想ページ番号13−3がVAR4にセットさ
れているページ番号4−2と同一のエントリが存在する
場合は、TLB13からそのエントリに格納されている
ページ番号13−5とVAR4にセットされている変位
4−3とを出力させ、更に、TLBヒット信号14を出
力させる。
That is, the address converting means 8 is the TLB 13
In the case where the STBR value 13-4 is the same as the content of STBR9 and the virtual page number 13-3 is the same as the page number 4-2 set in VAR4, the entry from the TLB 13 is changed to that entry. The stored page number 13-5 and the displacement 4-3 set in VAR4 are output, and further the TLB hit signal 14 is output.

【0034】TLBヒット信号14が出力された場合
は、セレクタ15はTLB13から出力されたページ番
号13−5及び変位4−2から構成される実アドレスを
選択してRAR5にセットし、TLBヒット信号14が
出力されない場合は、アドレス変換手段7から出力され
た実アドレスをRAR5にセットする。
When the TLB hit signal 14 is output, the selector 15 selects the real address composed of the page number 13-5 and the displacement 4-2 output from the TLB 13 and sets it in the RAR 5, and the TLB hit signal is output. When 14 is not output, the real address output from the address conversion means 7 is set in RAR5.

【0035】次に、図4に示すシステムを使用して図5
に示す仮想計算機システムを構成した場合に於けるTL
B13のエントリクリア時の動作について説明する。
Next, using the system shown in FIG.
TL in the case of configuring the virtual computer system shown in
The operation for clearing the entry of B13 will be described.

【0036】先ず、CPU43,44が自CPU内のT
LB13のエントリをクリアする場合の動作を説明す
る。
First, the CPUs 43 and 44 are T
The operation when clearing the entry of the LB 13 will be described.

【0037】この時、CPU43,44は自CPU内の
STBR9の内容をセレクタ19を介してクリアロジッ
ク部16に供給する。クリアロジック部16はSTBR
9の内容が加えられると、TLB13のエントリを1つ
ずつ読み出し、読み出したエントリのSTBRの値13
−4がSTBR9の内容と一致した場合はそのエントリ
のVビット13−1を無効にすることにより、エントリ
クリアを行なう。
At this time, the CPUs 43 and 44 supply the contents of the STBR 9 in their own CPUs to the clear logic unit 16 via the selector 19. The clear logic unit 16 is STBR
When the contents of 9 are added, the entries of the TLB 13 are read one by one, and the STBR value 13 of the read entry is read.
If -4 matches the contents of STBR 9, the entry is cleared by invalidating the V bit 13-1 of that entry.

【0038】次に、CPU43が他CPU44のTLB
13のエントリをクリアする場合の動作を説明する。
Next, the CPU 43 makes the TLB of the other CPU 44
The operation for clearing the 13 entries will be described.

【0039】CPU43はCPU44内のTLB13の
エントリをクリアする場合、SCU42を介してCPU
44にTLBエントリクリア要求信号18及びセレクタ
19の出力21を供給する。この時、TLBクリア失敗
フラグ11はONにセットされておらず、且つCPU4
4からTLBエントリクリア要求信号18が加えられて
いないので、セレクタ19の出力21はSTBR9の内
容を示すものとなる。また、この時、STBR9の内容
がセレクタ12を介してSTBR10にセットされる。
When the CPU 43 clears the entry of the TLB 13 in the CPU 44, the CPU 43 sends the CPU through the SCU 42.
The TLB entry clear request signal 18 and the output 21 of the selector 19 are supplied to 44. At this time, the TLB clear failure flag 11 is not set to ON, and the CPU 4
Since the TLB entry clear request signal 18 from 4 is not added, the output 21 of the selector 19 indicates the contents of STBR 9. At this time, the contents of STBR 9 are set in STBR 10 via selector 12.

【0040】CPU44内のセレクタ12はCPU43
からTLBエントリクリア要求信号18が加えられる
と、SCU42を介して加えられるCPU43内のST
BR9の内容20を選択し、それをSTBR10にセッ
トする。STBR10にセットされたCPU43内のS
TBR9の内容20はセレクタ19を介してクリアロジ
ック部16に加えられる。CPU44内のクリアロジッ
ク部16は加えられたCPU43内のSTBR9の内容
をキーにしてTLB13のエントリクリアを行なう。
The selector 12 in the CPU 44 is the CPU 43.
When the TLB entry clear request signal 18 is added from ST, the ST in the CPU 43 added via the SCU 42.
Select the content 20 of BR9 and set it in STBR10. S in the CPU 43 set in STBR10
The content 20 of the TBR 9 is added to the clear logic unit 16 via the selector 19. The clear logic unit 16 in the CPU 44 clears the entry of the TLB 13 by using the contents of the added STBR 9 in the CPU 43 as a key.

【0041】次に、CPU43がCPU44に対してT
LB13のエントリクリアを要求したが、CPU44も
自CPU内のTLB13のエントリクリア中ということ
で、CPU44のTLB13のエントリクリアに失敗し
た場合の動作を説明する。
Next, the CPU 43 sends a T to the CPU 44.
Although the entry clearing of the LB 13 is requested, the CPU 44 is also in the process of clearing the entry of the TLB 13 in its own CPU, so the operation when the entry clearing of the TLB 13 of the CPU 44 fails will be described.

【0042】図4に示すようなシステムで、図5に示す
ような仮想計算機システムが実現されている場合、VM
CP52はHOS51下のひとつのジョブである。従っ
て、VMCP52の走行時のSTBRの内容はHOS5
1の走行時のSTBRの内容と同一である。一方、GO
S53〜55はHOS51とは異なるOSである。従っ
て、GOS53〜55及びGOS53〜55下のジョブ
56〜64の走行時のSTBRの内容はHOS51及び
VMCP52の走行時のSTBRの内容とは異なるもの
となる。
If the system as shown in FIG. 4 realizes the virtual computer system as shown in FIG.
CP52 is one job under HOS51. Therefore, the contents of STBR when the VMCP 52 is running are HOS5.
This is the same as the content of STBR when running 1. On the other hand, GO
S53 to S55 are OSs different from the HOS 51. Therefore, the contents of STBR during running of GOS 53-55 and jobs 56-64 under GOS 53-55 are different from the contents of STBR during running of HOS 51 and VMCP 52.

【0043】以上のことから、図4に示すシステムで、
図5に示すような仮想計算機システムが実現されてお
り、CPU43,44のどちらか一方でVMCP52下
のGOS53〜55またはGOS53〜55下のジョブ
56〜64が走行し、もう一方でHOS51下のジョブ
65〜67が走行している場合、CPU43,44のS
TBR9の内容はそれぞれ異なるものとなる。
From the above, in the system shown in FIG.
A virtual computer system as shown in FIG. 5 is realized, and one of the CPUs 43 and 44 runs GOS 53 to 55 under VMCP 52 or jobs 56 to 64 under GOS 53 to 55, and runs jobs under HOS 51 on the other. When 65 to 67 are running, S of CPU43,44
The contents of TBR 9 are different from each other.

【0044】さて、ここで、次のような仮定を行なう。Now, the following assumptions are made.

【0045】(1)CPU43ではGOS53下のジョ
ブ56が走行している。 (2)CPU44ではHOS51下のジョブ65が走行
している。 (3)CPU43からCPU44へTLBエントリクリ
ア要求信号18を出力したが、CPU44も自CPU内
のTLB13のエントリクリア中ということで、TLB
クリア成功失敗信号17を用いて要求元のCPU43に
TLBエントリクリアを行なえないことを通知したとす
る。
(1) In the CPU 43, the job 56 under the GOS 53 is running. (2) In the CPU 44, the job 65 under the HOS 51 is running. (3) The TLB entry clear request signal 18 is output from the CPU 43 to the CPU 44, but the CPU 44 is also clearing the entry of the TLB 13 in its own CPU.
It is assumed that the clear success failure signal 17 is used to notify the requesting CPU 43 that the TLB entry cannot be cleared.

【0046】要求元のCPU43はSCU42を介して
CPU44からTLBエントリクリアを行なえないこと
を示すTLBクリア成功失敗信号17をもらうと、TL
Bクリア失敗フラグ11をONにセットする。ONにセ
ットされたTLBクリア失敗フラグ11はSTBR10
へのセットを抑止する。従って、GOS53下のジョブ
56から制御がVMCP52に移行し、CPU43内の
STBR9の内容が変化しても、STBR10の内容は
ジョブ56走行時の内容に保証される。
When the requesting CPU 43 receives the TLB clear success failure signal 17 indicating that the TLB entry cannot be cleared from the CPU 44 through the SCU 42, the TL
The B clear failure flag 11 is set to ON. The TLB clear failure flag 11 set to ON is STBR10.
To set to. Therefore, even if the control shifts from the job 56 under the GOS 53 to the VMCP 52 and the contents of the STBR 9 in the CPU 43 change, the contents of the STBR 10 are guaranteed to the contents when the job 56 is running.

【0047】また、CPU44からTLBエントリクリ
アを行なえないことを示すTLBエントリクリア成功失
敗信号17をもらうと、CPU43に於いては、ジョブ
56からVMCP52へ制御が移行し、VMCP52が
SCU42を介して再度CPU44へTLBエントリク
リア要求信号18及びセレクタ19の出力を送信する。
この場合、CPU43内のTLBクリア失敗フラグ11
はオンにセットされているので、セレクタ19はジョブ
56走行時のSTBR9の内容を保持しているSTBR
10の内容を選択することになる。従って、この場合、
CPU44へはSCU42を介してTLBエントリクリ
ア要求信号18及びSTBR10に保持されているジョ
ブ56走行時のSTBR9の内容が供給されることにな
る。また、CPU43内のクリアロジック部16はセレ
クタ19の出力21、即ちSTBR10に保持されてい
るジョブ56走行時のSTBR9の内容をキーにして前
述したと同様にCPU43内のTLB13のエントリク
リアを行なう。
When the CPU 44 receives a TLB entry clear success / failure signal 17 indicating that the TLB entry cannot be cleared, the CPU 43 shifts the control from the job 56 to the VMCP 52, and the VMCP 52 again passes through the SCU 42. The TLB entry clear request signal 18 and the output of the selector 19 are transmitted to the CPU 44.
In this case, the TLB clear failure flag 11 in the CPU 43
Is set to ON, the selector 19 holds the contents of STBR 9 when running job 56.
The content of 10 will be selected. So in this case,
The CPU 44 is supplied with the TLB entry clear request signal 18 and the contents of the STBR 9 during running of the job 56 held in the STBR 10 via the SCU 42. Further, the clear logic unit 16 in the CPU 43 clears the TLB 13 entry in the CPU 43 in the same manner as described above by using the output 21 of the selector 19, that is, the content of the STBR 9 held in the STBR 10 during the traveling of the job 56 as a key.

【0048】CPU43からSCU42を介してTLB
エントリクリア要求信号18及びSTBR10に保持さ
れているジョブ56走行時のSTBR9の内容が送られ
てきたCPU44は、送られてきたSTBR10の内容
を自CPU44内のSTBR10にセットする。CPU
44内のクリアロジック部16は他CPU43からのT
LBエントリクリア要求を受け付け可能な状態になる
と、STBR10の内容をキーにしてTLB13のエン
トリクリアを行なう。
TLB from CPU43 via SCU42
The CPU 44, to which the contents of the STBR 9 during the traveling of the job 56 held in the entry clear request signal 18 and the STBR 10 is sent, sets the contents of the sent STBR 10 in the STBR 10 in the own CPU 44. CPU
The clear logic unit 16 in 44 is a T from another CPU 43.
When the LB entry clear request can be accepted, the entry of the TLB 13 is cleared using the contents of the STBR 10 as a key.

【0049】そして、CPU44はTLB13のエント
リクリアが成功すると、要求元のCPU43に対してS
CU42を介してTLBエントリクリア成功を示すTL
Bクリア成功失敗信号17を出力する。
When the entry clear of the TLB 13 is successful, the CPU 44 sends S to the requesting CPU 43.
TL indicating successful clearing of TLB entry via CU42
The B clear success failure signal 17 is output.

【0050】要求元のCPU43はSCU42を介して
CPU44からTLBエントリクリア成功を示すTLB
クリア成功失敗信号17が送られてくると、TLBクリ
ア失敗フラグ11をOFFにセットする。OFFにセッ
トされたTLBクリア失敗フラグ11はセレクタ19を
制御してクリアロジック部16への入力としてSTBR
9を選択させる。
The requesting CPU 43 receives a TLB entry clear success from the CPU 44 via the SCU 42.
When the clear success failure signal 17 is sent, the TLB clear failure flag 11 is set to OFF. The TLB clear failure flag 11 set to OFF controls the selector 19 to input STBR as an input to the clear logic unit 16.
Select 9.

【0051】[0051]

【発明の効果】以上説明したように、本発明は、自CP
U内のセグメントテーブルの先頭を指示する第1のST
BRと、他CPUに対してTLBエントリクリア要求を
行なう時に第1のSTBRの内容がセットされる第2の
STBRと、他CPUに対して行なったTLBエントリ
クリア要求が失敗することにより、第1のSTBRの内
容が第2のSTBRにセットされることを抑止するTL
Bクリア失敗フラグを備えており、GOS,GOS下の
ジョブの走行時、他CPUに対するTLBエントリクリ
ア要求が失敗となって制御がVMCPに移行し、VMC
Pが再度他CPUに対してTLBエントリクリア要求を
行なう場合、VMCPが第2のSTBRに保持されてい
るGOS走行時の第1のSTBRの内容を使用して他C
PUのTLBエントリクリアを行なうことができるの
で、従来例のように、HOSが登録したTLBのエント
リまでクリアされてしまうということがなくなる効果が
ある。
As described above, according to the present invention, the CP
First ST indicating the beginning of the segment table in U
BR, the second STBR in which the content of the first STBR is set when a TLB entry clear request is made to the other CPU, and the failure of the TLB entry clear request made to the other CPU causes the first STBR to be cleared. TL that prevents the contents of the STBR of the second STBR from being set to the second STBR
A B clear failure flag is provided, and when a job under GOS or GOS is running, a TLB entry clear request to another CPU fails and control shifts to VMCP.
When P again makes a TLB entry clear request to another CPU, another C is used by using the contents of the first STBR at the time of running GOS held in the second STBR by VMCP.
Since the TLB entry of the PU can be cleared, there is an effect that the entry of the TLB registered by the HOS is not cleared as in the conventional example.

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

【図1】本発明の実施例のブロック図である。FIG. 1 is a block diagram of an embodiment of the present invention.

【図2】アドレス変換テーブルを使用するアドレス変換
手段7の構成例を示すブロック図である。
FIG. 2 is a block diagram showing a configuration example of an address conversion means 7 using an address conversion table.

【図3】TLB13の1つのエントリの構成例を示す図
である。
FIG. 3 is a diagram showing a configuration example of one entry of the TLB 13.

【図4】本発明で使用するシステムの構成例を示すブロ
ック図である。
FIG. 4 is a block diagram showing a configuration example of a system used in the present invention.

【図5】図4に示すシステム上で実現される仮想計算機
システムの構成例を示すブロック図である。
5 is a block diagram showing a configuration example of a virtual computer system realized on the system shown in FIG.

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

2…アドレス変換部 3…演算処理部 4…仮想アドレスレジスタ(VAR) 5…実アドレスレジスタ(RAR) 7…アドレス変換テーブルを使用したアドレス変換手段 8…TLBを使用したアドレス変換手段 9,10…セグメントテーブルベースレジスタ(STB
R) 11…TLBクリア失敗フラグ 12,15,19…セレクタ 13…アドレス変換バッファ(TLB) 16…クリアロジック部 41…主記憶装置(MMU) 42…システムコンピュータユニット(SCU) 43,44…中央処理装置(CPU) 51…ホストオペレーティングシステム(HOS) 52…仮想計算機監視プログラム(VMCP) 53〜55…ゲストオペレーティングシステム(GO
S) 56〜67…ジョブ 71…セグメントテーブル 72…ページテーブル
2 ... Address conversion unit 3 ... Arithmetic processing unit 4 ... Virtual address register (VAR) 5 ... Real address register (RAR) 7 ... Address conversion means using address conversion table 8 ... Address conversion means using TLB 9, 10 ... Segment table base register (STB
R) 11 ... TLB clear failure flag 12, 15, 19 ... Selector 13 ... Address translation buffer (TLB) 16 ... Clear logic unit 41 ... Main memory unit (MMU) 42 ... System computer unit (SCU) 43, 44 ... Central processing Device (CPU) 51 ... Host operating system (HOS) 52 ... Virtual computer monitoring program (VMCP) 53-55 ... Guest operating system (GO)
S) 56 to 67 ... Job 71 ... Segment table 72 ... Page table

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 複数のCPUを含むシステムで実現され
る仮想計算機システムに於いて、 前記各CPUは、 自CPU内のセグメントテーブルの先頭を指示する第1
のSTBRと、 他CPUに対してTLBエントリクリア要求を行なう
時、前記第1のSTBRの内容がセットされる第2のS
TBRと、 他CPUに対して行なったTLBエントリクリア要求が
失敗したことを表示し、前記第2のSTBRへのセット
を抑止するTLBクリア失敗フラグとを備え、 他CPUに対して行なったTLBエントリクリア要求が
失敗した後、再度前記他CPUに対してTLBエントリ
クリア要求を行なう場合は、前記第2のSTBRの内容
をTLBエントリクリアのキーとして前記他CPUに送
出することを特徴とするTLBエントリクリア方式。
1. A virtual computer system realized by a system including a plurality of CPUs, wherein each CPU designates a head of a segment table in its own CPU.
STBR of the second S and the second S in which the contents of the first STBR are set when a TLB entry clear request is issued to another CPU.
A TLB entry made to another CPU, comprising a TBR and a TLB clear failure flag indicating that the TLB entry clear request made to another CPU has failed, and inhibiting the setting to the second STBR. When the TLB entry clear request is made again to the other CPU after the clear request fails, the contents of the second STBR are sent to the other CPU as a TLB entry clear key. Clear method.
【請求項2】 前記仮想計算機システムは、 通常のジョブを走行させるHOSと、 該HOSの下でひとつのジョブとして走行し、複数のG
OSを走行させるVMCPと、 該VMCP下で走行し、通常のジョブを走行させる前記
GOSとが走行することを特徴とする請求項1記載のT
LBエントリクリア方式。
2. The virtual computer system includes an HOS that runs a normal job and a plurality of GOSs that run as one job under the HOS.
2. The T according to claim 1, wherein a VMCP that runs an OS and the GOS that runs under the VMCP and runs a normal job run.
LB entry clear method.
【請求項3】 前記CPUは自CPU内のTLBのエン
トリをクリアする場合、自CPU内の第1のSTBRの
内容をキーにして前記TLBのエントリクリアを行なう
ことを特徴とする請求項1記載のTLBエントリクリア
方式。
3. The CPU, when clearing the entry of the TLB in its own CPU, uses the contents of the first STBR in the CPU as a key to clear the entry of the TLB. TLB entry clear method.
JP3336062A 1991-11-26 1991-11-26 Tlb entry clearing system Pending JPH05151084A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3336062A JPH05151084A (en) 1991-11-26 1991-11-26 Tlb entry clearing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3336062A JPH05151084A (en) 1991-11-26 1991-11-26 Tlb entry clearing system

Publications (1)

Publication Number Publication Date
JPH05151084A true JPH05151084A (en) 1993-06-18

Family

ID=18295304

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3336062A Pending JPH05151084A (en) 1991-11-26 1991-11-26 Tlb entry clearing system

Country Status (1)

Country Link
JP (1) JPH05151084A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004326798A (en) * 2003-04-28 2004-11-18 Internatl Business Mach Corp <Ibm> Multiprocessor data processing system
JP2005174307A (en) * 2003-12-12 2005-06-30 Microsoft Corp System and method for bimodal device virtualization of actual hardware-based device and idealized hardware-based device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004326798A (en) * 2003-04-28 2004-11-18 Internatl Business Mach Corp <Ibm> Multiprocessor data processing system
JP2005174307A (en) * 2003-12-12 2005-06-30 Microsoft Corp System and method for bimodal device virtualization of actual hardware-based device and idealized hardware-based device
JP4610307B2 (en) * 2003-12-12 2011-01-12 マイクロソフト コーポレーション System and method for bimodal device virtualization in real hardware-based devices and idealized hardware-based devices

Similar Documents

Publication Publication Date Title
JP2825550B2 (en) Multiple virtual space address control method and computer system
US4985828A (en) Method and apparatus for generating a real address multiple virtual address spaces of a storage
US4577274A (en) Demand paging scheme for a multi-ATB shared memory processing system
JPH0816479A (en) Memory-address space management
JPH0816470A (en) Parallel computer
JPH0784883A (en) Method for purging address conversion buffer of virtual computer system
JPS63103343A (en) Moveout queue buffer
JPH0322155A (en) Cache memory device
US5341484A (en) Virtual machine system having an extended storage
JP3207591B2 (en) Improvement of computer with cache memory
JPH0981459A (en) Address conversion buffer device
JP2768503B2 (en) Virtual memory address space access control method
EP0239359B1 (en) Address translation circuit
JPH10283259A (en) Information processor and processor
JPH05151084A (en) Tlb entry clearing system
JP2846697B2 (en) Cache memory controller
JPH0519176B2 (en)
JPH0650480B2 (en) Multiple virtual memory system and address controller
JP3730892B2 (en) How to implement a conversion index buffer mechanism with support for real space specification control
JP2845762B2 (en) Hierarchical buffer memory device
JP2845754B2 (en) Multiprocessor system
JPS63286944A (en) Nullification system for address translation buffer
JP2000020399A (en) Virtual computer system
JPH08137756A (en) Address conversion buffer mechanism
JPH05342101A (en) Hierarchical cache memory