JPS62115554A - Storage protection system in multi-processor system - Google Patents

Storage protection system in multi-processor system

Info

Publication number
JPS62115554A
JPS62115554A JP60255918A JP25591885A JPS62115554A JP S62115554 A JPS62115554 A JP S62115554A JP 60255918 A JP60255918 A JP 60255918A JP 25591885 A JP25591885 A JP 25591885A JP S62115554 A JPS62115554 A JP S62115554A
Authority
JP
Japan
Prior art keywords
address
processor
storage protection
access
cpu
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
JP60255918A
Other languages
Japanese (ja)
Inventor
Noboru Ishiguro
石黒 昇
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 JP60255918A priority Critical patent/JPS62115554A/en
Publication of JPS62115554A publication Critical patent/JPS62115554A/en
Pending legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)
  • Multi Processors (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To detect a storage protection exception at an earlier point of time without requiring excess hardware by providing information for identifying each processor in a conversion table for dynamic address conversion. CONSTITUTION:In accessing a main storage device MSU, an address conversion buffer TLB is indexed at first, and when corresponding paired addresses exist, the device is accessed by using its real address. When no paired addresses exist in the TLB, a DAT table for dynamic address conversion is accessed to obtain a real address. In this case, processor identification information CPU-ID in the DAT table is read together with the real address in this case and compared with the information ID in the processor of an access sender. When dissident, it is discriminated as a storage protection exception or address conversion exception, an interruption is caused to apply proper processing. The CPU-ID is provided in the DAT table in this way, then the storage protection exception is detected at an earlier point of time without requiring excess hardware.

Description

【発明の詳細な説明】 〔発明の概要〕 本発明は複数のプロセッサが主記憶装置を共通にアクセ
スするマルチプロセッサシステムであって、主記憶装置
が仮想記憶方式を採用している場合に、アドレス変換テ
ーブルを利用して、各プロセッサに固をな仮想記憶領域
を他のプロセッサから非所望に変更されることを防止す
る記憶保護方式に関する。
[Detailed Description of the Invention] [Summary of the Invention] The present invention provides a multiprocessor system in which a plurality of processors commonly access a main memory device, and when the main memory device adopts a virtual memory method, an address The present invention relates to a storage protection method that uses a conversion table to prevent a virtual storage area specific to each processor from being undesirably changed by other processors.

〔従来技術〕[Prior art]

従来より、特定の記i!領域のアクセスを特定の条件を
満たす場合にのみ許可する方式は種々存在する。しかし
、一般に行われている記憶保護方式は、実記憶領域ごと
に保護キーを設定し、アクセス元の保持するキーとの関
係によりアクセスの許可/不許可を決定している。従っ
て、仮想記憶方式を採用している場合、仮想アドレスか
ら実アドレスへの変換を行ない、その実アドレスに基づ
いて記憶保護キーメモリをアクセスして、はじめてアク
セス可能か否かが判明することになり、記憶保護例外の
検出時点が遅くなるという欠点があった。
Traditionally, specific notes i! There are various methods for permitting access to an area only when specific conditions are met. However, in a commonly used storage protection method, a protection key is set for each real storage area, and permission/disapproval of access is determined based on the relationship with the key held by the access source. Therefore, if a virtual memory method is adopted, it is only after converting the virtual address to a real address and accessing the protection key memory based on the real address that it becomes clear whether or not it is accessible. This has the disadvantage that the time at which a memory protection exception is detected is delayed.

〔発明の目的〕[Purpose of the invention]

本発明は、より早い時点で記憶保護例外の検出を可能に
し、かつそのために余分なハードウェアを必要とはしな
い記憶保護方式の提供を目的とする。
The present invention aims to provide a storage protection scheme that allows detection of storage protection exceptions at an earlier point in time and does not require extra hardware for this purpose.

〔発明の実施例〕[Embodiments of the invention]

図は本発明の一実施例を示すブロック図であり、CPU
#O,#1はそれぞれプロセッサ、MSUは両プロセッ
サから共通にアクセスされる主記憶装置、LARは仮想
アドレスを保持するレジスタ、IDは各プロセッサを識
別する情報を保持するレジスタ、COMPは比較回路、
TLBはアドレス変換結果の変換対を登録しておくアド
レス変換バッファ、DATテーブルは動的アドレス変換
を行なうための変換テーブルであり、いわゆるページテ
ーブルやセグメントテーブルなどに相当するものである
The figure is a block diagram showing one embodiment of the present invention, in which the CPU
#O and #1 are respective processors, MSU is a main memory commonly accessed by both processors, LAR is a register that holds virtual addresses, ID is a register that holds information that identifies each processor, COMP is a comparison circuit,
The TLB is an address translation buffer in which translation pairs of address translation results are registered, and the DAT table is a translation table for dynamic address translation, and corresponds to a so-called page table or segment table.

向上記IDは元々各種の目的で一般にに設けられている
ものであり、またCOMPも汎用の演算器で兼用できる
ので、実質的にハードウェアの追加は不要である。
The improvement ID is originally provided in general for various purposes, and COMP can also be used as a general-purpose arithmetic unit, so there is virtually no need to add hardware.

本発明の特徴は、各プロセッサCPU#0.#1にそれ
ぞれを識別するIDを設けるとともに、DATテーブル
中の各記憶位置にもCPU−ID情報を含ませたことで
ある。
The feature of the present invention is that each processor CPU#0. #1 is provided with an ID for identifying each, and CPU-ID information is also included in each storage location in the DAT table.

一般に、二度求めたアドレス変換対はTLBに登録し、
以後TLBから直接実アドレスを求めるようにされてい
る。本発明においても、主記憶装置のアクセス時には、
まずTLBを索引して当該アドレス対が存在していれば
、その実アドレスを用いてアクセスする。もし、TLB
内に当該アクセス対が存在しなければ、DATテーブル
をアクセスして実アドレスを求めることとなる。このと
き、実アドレスとともにCPU−IDも読み出され、そ
れがアクセス元のプロセッサのIDと比較される。もし
それらが一致していれば、対応する実アドレスをTLB
に登録し、その実アドレスを用いてアクセスを行なえば
よい。もし、rDが一致しなかったなら、記憶保護例外
、もしくはアドレス変換例外として割り込みを生じ、適
切な処理を施す。従って、一旦TLBに登録された°ア
ドレス変換対はそのまま使用してよい。
Generally, address translation pairs obtained twice are registered in the TLB,
Thereafter, the real address is obtained directly from the TLB. Also in the present invention, when accessing the main storage device,
First, the TLB is indexed, and if the address pair exists, the real address is used to access it. If, T.L.B.
If the access pair does not exist within the address range, the DAT table is accessed to obtain the real address. At this time, the CPU-ID is also read out along with the real address, and compared with the ID of the accessing processor. If they match, the corresponding real address is sent to the TLB.
All you have to do is register at , and access using that real address. If rD does not match, an interrupt is generated as a memory protection exception or an address translation exception, and appropriate processing is performed. Therefore, the address translation pair once registered in the TLB may be used as is.

CPU−IDの形式は任意であるが、いずれが1つのプ
ロセッサのみに排他的にアクセスを許可する場合には、
N台のプロセッサに対し°ζlog2Nビットの情報で
よいが、任意台数のプロセッサに許可する必要がある場
合にはより多いビット数が必要になる。
The format of the CPU-ID is arbitrary, but if one only allows access exclusively to one processor,
°ζlog2N bits of information is sufficient for N processors, but a larger number of bits is required if it is necessary to permit an arbitrary number of processors.

また、アクセスの許可/不許可はCPU−10の一致/
不一致で決めるのみでなく、大小関係などで決めること
もできる。
Also, access permission/denial is determined by CPU-10.
It is not only possible to decide based on disagreement, but also based on size, etc.

さらに、本発明による記憶保護を特定の仮想アドレス範
囲にのみ適用し、他の仮想アドレス範囲においては通常
の保護キーによる記憶保護を採用することもできる。
Furthermore, it is also possible to apply the storage protection according to the present invention only to a specific virtual address range, and to employ storage protection using a normal protection key in other virtual address ranges.

〔効果〕〔effect〕

以上の如く本発明によれば、DATテーブル中にCPU
−10を設けて特定のプロセッサにのみアクセスを許可
するようにしているため、アドレス変換時点で記憶保護
例外が検出でき、例外処理が効率化され、また記憶保護
の形態に自由度を与えることが可能となる。
As described above, according to the present invention, the CPU is stored in the DAT table.
-10 is provided to permit access only to a specific processor, so memory protection exceptions can be detected at the time of address translation, making exception handling more efficient, and providing flexibility in the form of memory protection. It becomes possible.

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

図は本発明の−・実施例ブロック図であり、CPU#、
0.#1はそれぞれプロセッサ、MSUは両プロセッサ
から共通にアクセスされる主記憶装置、LARは仮想ア
ドレスを保持するレジスタ、IDは各プロセッサを識別
する情報を保持するレジスタ、COMPは比較回路、T
LBはアドレス変換結果の変換対を登録しておくアドレ
ス変換バッファ、D A、 Tテーブルは動的アドレス
変換を行なうための変換テーブルである。
The figure is a block diagram of an embodiment of the present invention, in which CPU#,
0. #1 is a processor, MSU is a main memory commonly accessed by both processors, LAR is a register that holds virtual addresses, ID is a register that holds information that identifies each processor, COMP is a comparison circuit, T
LB is an address translation buffer for registering translation pairs of address translation results, and DA and T tables are translation tables for dynamic address translation.

Claims (1)

【特許請求の範囲】 複数のプロセッサが仮想記憶方式の主記憶装置を共用す
るマルチプロセッサシステムにおいて、仮想アドレスを
実アドレスに変換するアドレス変換テーブルの各記憶位
置対応に当該仮想アドレスのアクセスを許可されたプロ
セッサを指示する情報を記憶せしめるとともに、 各プロセッサには当該プロセッサを識別する情報を保持
せしめ、 主記憶装置のアクセスに際してのアドレス変換において
、上記アドレス変換テーブルの指示するプロセッサ指示
情報と、当該アクセスを生じたプロセッサの識別情報と
が、所定の関係にある場合にのみ対応実アドレスへのア
クセスを許可するようにしたことを特徴とするマルチプ
ロセッサシステムにおける記憶保護方式。
[Claims] In a multiprocessor system in which a plurality of processors share a virtual memory type main memory, access to the virtual address is permitted for each storage location in an address translation table that converts a virtual address to a real address. At the same time, each processor is made to hold information that identifies the processor concerned, and in address translation when accessing the main memory, the processor instruction information indicated by the address conversion table and the access 1. A storage protection method for a multiprocessor system, characterized in that access to a corresponding real address is permitted only when identification information of a processor that has generated the error has a predetermined relationship.
JP60255918A 1985-11-15 1985-11-15 Storage protection system in multi-processor system Pending JPS62115554A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60255918A JPS62115554A (en) 1985-11-15 1985-11-15 Storage protection system in multi-processor system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60255918A JPS62115554A (en) 1985-11-15 1985-11-15 Storage protection system in multi-processor system

Publications (1)

Publication Number Publication Date
JPS62115554A true JPS62115554A (en) 1987-05-27

Family

ID=17285374

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60255918A Pending JPS62115554A (en) 1985-11-15 1985-11-15 Storage protection system in multi-processor system

Country Status (1)

Country Link
JP (1) JPS62115554A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0317164A1 (en) * 1987-11-09 1989-05-24 NHK SPRING CO., Ltd. Tensioner for a chain, a belt or the like
US6738888B2 (en) * 2000-08-21 2004-05-18 Texas Instruments Incorporated TLB with resource ID field
WO2007129482A1 (en) * 2006-04-06 2007-11-15 Sony Corporation Bridge, processor unit, information processing apparatus and access control method
JP2008102921A (en) * 2006-10-18 2008-05-01 Internatl Business Mach Corp <Ibm> Data processing system, lpar separation method of i/o adapter under hyper-transport environment, and program storage device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0317164A1 (en) * 1987-11-09 1989-05-24 NHK SPRING CO., Ltd. Tensioner for a chain, a belt or the like
US6738888B2 (en) * 2000-08-21 2004-05-18 Texas Instruments Incorporated TLB with resource ID field
WO2007129482A1 (en) * 2006-04-06 2007-11-15 Sony Corporation Bridge, processor unit, information processing apparatus and access control method
US8006000B2 (en) 2006-04-06 2011-08-23 Sony Corporation Bridge, processor unit, information processing apparatus, and access control method
JP2008102921A (en) * 2006-10-18 2008-05-01 Internatl Business Mach Corp <Ibm> Data processing system, lpar separation method of i/o adapter under hyper-transport environment, and program storage device

Similar Documents

Publication Publication Date Title
JPH0137773B2 (en)
US7035986B2 (en) System and method for simultaneous access of the same line in cache storage
JPH0512126A (en) Device and method for address conversion for virtual computer
JPS62115554A (en) Storage protection system in multi-processor system
JP3190700B2 (en) Address translator
CA2081913A1 (en) Method and apparatus for managing page zero memory accesses in a multi-processor system
JPH05257796A (en) Distributed and shared memory managing system
JPH046025B2 (en)
JPS6059621B2 (en) Buffer invalidation control method
JPS6129070Y2 (en)
JP2868209B2 (en) Memory protection device in multiprocessor system
JPH02114346A (en) Tlb entry control system
JPH03144749A (en) Address conversion buffer control system
JPH0612529B2 (en) Address translator test method
JPS6175446A (en) Address comparison system
JPS62279443A (en) Address conversion device
JPS6073759A (en) Address conversion buffer
JPS6180437A (en) Data processing system
JPH04355847A (en) Store buffer controller
JPH0458347A (en) Control system for shared address space
JP2004187114A (en) Address filtering device:
JPH04101252A (en) Address conversion buffer clearing system
JPH03110648A (en) Data processing system
JPS5474335A (en) Buffer memory unit
JPH0330039A (en) Storage protective mechanism