Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS6118223B2 - - Google Patents
[go: Go Back, main page]

JPS6118223B2 - - Google Patents

Info

Publication number
JPS6118223B2
JPS6118223B2 JP8295577A JP8295577A JPS6118223B2 JP S6118223 B2 JPS6118223 B2 JP S6118223B2 JP 8295577 A JP8295577 A JP 8295577A JP 8295577 A JP8295577 A JP 8295577A JP S6118223 B2 JPS6118223 B2 JP S6118223B2
Authority
JP
Japan
Prior art keywords
request
key
storage
requests
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.)
Expired
Application number
JP8295577A
Other languages
Japanese (ja)
Other versions
JPS5418635A (en
Inventor
Tsuguo Shimizu
Mamoru Hinai
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 JP8295577A priority Critical patent/JPS5418635A/en
Publication of JPS5418635A publication Critical patent/JPS5418635A/en
Publication of JPS6118223B2 publication Critical patent/JPS6118223B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)

Description

【発明の詳細な説明】 本発明は計算機システムにおける主記憶装置の
制御方式に関し、特に記憶保護機構の制御方式に
関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a control method for a main storage device in a computer system, and particularly to a control method for a storage protection mechanism.

計算機システムの信頼性を保障する1つの機構
として、主記憶装置(Main Storage:MS)、の
記憶内容を不当に参照したり、あるいは書替えて
しまうことがないように、記憶保護機構が用意さ
れている。記憶保護機構は通常、主記憶装置の記
憶領域をページと称するブロツク(2Kバイト、
あるいは4Kバイト)に分割し、このブロツク毎
にキイ(Key)と称する数ビツトのコードを割当
て、中央処理装置(Central Processing Uhit:
CPU)等がこのブロツクを参照する時中央処理
装置がもつているコードが、Keyと一致がとれな
いと、この領域への参照は許可されないようにな
つている。
As a mechanism to ensure the reliability of computer systems, a memory protection mechanism is provided to prevent the contents of the main storage (MS) from being inappropriately referenced or rewritten. There is. A memory protection mechanism usually divides the storage area of main memory into blocks called pages (2K bytes,
or 4K bytes), and each block is assigned a several-bit code called a key.
When the central processing unit (CPU) etc. refers to this block, if the code in the central processing unit does not match the key, reference to this area will not be permitted.

主記憶装置の各ベージり割当てられたキイをま
とめたものをキイ・ストレージ(Key Storage:
KS)と称する。記憶保護機構の特性から、KSへ
の参照はMSへの参照に先立つて行われる必要が
ある。
Key Storage: A collection of keys assigned to each page in main memory.
KS). Due to the nature of the memory protection mechanism, references to the KS must be made prior to references to the MS.

第1図は多重処理装置システムの構成を示す。 FIG. 1 shows the configuration of a multiprocessor system.

極めて高速の処理能力を有するCPUを複数台
結合した多重処理装置システムでは、共有される
MSへの参照要求を効率よく処理するため、第1
図に示すごとく多重処理装置(Multiprocessing
Control Unit:MCU)3がMSを制御する。さら
に磁気テープ・デイスクなどの入出力機器は入出
力制御装置(Input/Output Processor:IOP)
2,2′を経てMCUに接続され、これによりMS
との間でデータ転送を行なう。
In a multiprocessing system that combines multiple CPUs with extremely high-speed processing power, shared
In order to efficiently process reference requests to MS,
As shown in the figure, a multiprocessing device (Multiprocessing device)
Control Unit (MCU) 3 controls the MS. Furthermore, input/output devices such as magnetic tapes and disks are called input/output processors (IOPs).
It is connected to the MCU via 2 and 2', and this allows the MS
Data is transferred between

MSはCPU,IOPからの参照要求を処理するた
め、インタリーブされ、個々のインタリーブされ
たバンク5はそれぞれ独立に動作しうる構成にな
つている。
The MS is interleaved in order to process reference requests from the CPU and IOP, and each interleaved bank 5 is configured to be able to operate independently.

CPU1,1′、IOP2,2′からの要求は、
MCU3内の要求スタツク(Request Stack:
RS)310〜313に一担格納され、ここから
バンク制御部32に要求を出す。要求されたバン
ク5がビジーでなければその要求はMSの該バン
クへ送出され処理される。CPU,IOPはそれぞれ
独立にMCUに要求を出し、MSのバンクでの競合
がなければ、複数個のバンクへ同時に要求が送出
される。
Requests from CPU1, 1', IOP2, 2' are
Request Stack within MCU3
RS) 310 to 313, and issues a request to the bank control unit 32 from there. If the requested bank 5 is not busy, the request is sent to that bank of the MS for processing. The CPU and IOP issue requests to the MCU independently, and if there is no contention in the MS bank, requests are sent to multiple banks simultaneously.

さて、前述したように、MSへの参照に先立つ
てKS4を参照し、MSの該領域への参照が可能で
あるかどうかを検査する必要があるが、従来技術
では複数個の要求が同時にMSへの参照する場
合、優先順位をとる必要があつた。この方式で
は、CPU,IOP、あるいはMS等の処理能力が向
上しても、KSのところで待行列が出来てしま
い、それらの能力を十分に生かしきれないという
問題が出てくる。
Now, as mentioned above, before referring to the MS, it is necessary to refer to KS4 and check whether it is possible to refer to the relevant area of the MS, but in the conventional technology, multiple requests are simultaneously When referring to , it was necessary to take precedence. In this method, even if the processing power of the CPU, IOP, MS, etc. improves, a queue forms at the KS, and the problem arises that it is not possible to make full use of that power.

本発明の目的は、KSの性能によつてCPU,
IOPあるいはMS等が有する性能が制限されるこ
となく、システム全体の処理効率を向上させ、さ
らに主記憶装置の保護機能を達成することにあ
る。
The purpose of the present invention is to
The objective is to improve the processing efficiency of the entire system without limiting the performance of the IOP or MS, and also to achieve a protection function for the main storage device.

本発明は、MSに対する要求の要求元ごとにKS
をもち、MSの記憶保護の検査を独立に実行する
ことにある。この時、KSを複数面有することに
よつて生じる問題はMSの同一ページに対するキ
イの値は、どのKSでも同じものでなければなら
ないという、KS間での一致の保障である。
In the present invention, the KS
Its purpose is to independently perform MS memory protection checks. At this time, the problem that arises from having multiple KSs is ensuring consistency between the KSs, which means that the key values for the same page in the MS must be the same in all KSs.

以下実施例によつて本発明を説明する。 The present invention will be explained below with reference to Examples.

第2図はMCU3の詳細ブロツク図である。
CPU,IOPからの要求は一担要求スタツク
(Request Stack:KS)310〜313に格納さ
れる。第2図では、MSのバンクのビジー状態に
よつて2つの要求までスタツクされるように示し
てある。RS310〜313に格納された要求
は、アドレスの下数ビツトによつて示されるバン
クに対応するバンク制御部320〜327へ要求
を出す。バンク制御部は各バンク毎にあり、バン
クのビジー状態を管理し、該ハンダへ複数個の要
求が集中した場合は、それらの間の競合を解決
し、受付け可能の場合は、1つの要求をストレー
ジ要求レジスタ(Storage Request Register:
SRR)330〜337へアドレス、書込みデー
タ等をセツトし、MSバンクへ送出する。
FIG. 2 is a detailed block diagram of the MCU 3.
Requests from the CPU and IOP are stored in request stacks (KS) 310 to 313. In FIG. 2, up to two requests are shown stacked due to the busy state of the MS bank. The requests stored in RSs 310-313 are sent to bank controllers 320-327 corresponding to the bank indicated by the lower bits of the address. A bank control unit is provided for each bank, and manages the busy state of the bank. If multiple requests are concentrated on the solder, it resolves conflicts between them, and if it can be accepted, it handles one request. Storage Request Register:
Set the address, write data, etc. to SRR) 330 to 337, and send it to the MS bank.

読出し要求の場合は、MSバンクから読出され
たデータが、読出しデータ・レジスタ(Fetch
Data Reqister:FDR)340〜341へセツト
され、その後要求元のCPUあるいはIOPへ送出さ
れる。
In the case of a read request, the data read from the MS bank is stored in the read data register (Fetch
Data Reqister (FDR) 340 to 341 is set, and then sent to the requesting CPU or IOP.

RS310〜313に格納された要求は、バン
ク制御部へ要求を出すと同時に、KS制御部41
へも要求を出し、記憶保護の検査をする。
The requests stored in RS310 to RS313 are sent to the bank control unit, and at the same time, the requests are sent to the KS control unit 41.
Requests are also made to check the memory protection.

第2図では、2台のCPU及び2台のIOPが
MCUに接続されている例を示しKSはこれらの要
求元ごとに4面あるとしている。
In Figure 2, there are two CPUs and two IOPs.
An example is shown where it is connected to an MCU, and KS says that there are four sides for each of these request sources.

さて、KSでの処理動作は次の3種に分類でき
る。
Now, processing operations in KS can be classified into the following three types.

(1) CPUまたはIOPからのMS参照に判なう記憶
保護動作。
(1) Memory protection behavior based on MS references from CPU or IOP.

(2) CPUからのKSへの書込み動作。(2) Write operation to KS from CPU.

(3) CPUからののKSの読出し動作。(3) KS read operation from CPU.

まず、CPUまたはIOPからMS参照の要求が出
されると、CPUまたはIOPは要求アドレスといつ
しよにキイ・コードを送つてくる。KSでは要求
アドレスによりキイを読出し、送られてきたキ
イ・コードと比較する。CPUまたはIOPからのキ
イ・コードが0であるか、またはKSから読出し
たキイと値が一致した場合、該当するMS領域へ
の参照は許可される。そうでない時は、記憶保護
エラーとして、該要求のMSバンクへの送出は禁
止され、またこの記憶保護エラーの状態を要求元
へ報告する。
First, when a request for MS reference is issued from the CPU or IOP, the CPU or IOP sends the request address and a key code. The KS reads the key according to the requested address and compares it with the key code sent. If the key code from the CPU or IOP is 0, or if the value matches the key read from the KS, reference to the corresponding MS area is permitted. If this is not the case, the sending of the request to the MS bank is prohibited as a memory protection error, and the state of this memory protection error is reported to the request source.

また、一般にKSの各データは、記憶保護のた
めのキイ値とともに、参照ビツト(Reference−
bit:R−ビツト)と変更ビツト(Change−bit:
C−ビツト)を有し、MSへの参照が読出しの場
合はR−ビツトを1にし、また書込みの場合はR
−ビツトとC−ビツトを1にして、MSの使用状
況を記録する。
In general, each data in the KS has a key value for memory protection as well as a reference bit (Reference-bit).
bit: R-bit) and change bit:
C-bit), the R-bit is set to 1 if the reference to the MS is a read, and the R-bit is set to 1 if the reference to the MS is a read.
Set the - bit and C- bit to 1 to record the usage status of the MS.

記憶保護のためのKSの検査は各要求元ごとに
あるKSで実行され、KSを競合することによつて
生じる待ちはなくなる。
KS checking for storage protection is performed on one KS for each requester, eliminating the wait caused by competing KSs.

さて、CPUからのKSへの書込み動作が要求さ
れた場合、これは通常SSK(Set Storage Key)
命令で指示されるが、この時、要求アドレスは変
更すべきKSのアドレスを示す。
Now, when a write operation from the CPU to the KS is requested, this is usually called SSK (Set Storage Key)
At this time, the request address indicates the address of the KS to be changed.

この要求の時は、要求元に対応するKSばかり
でなく、他の3つのKSにも書込みを行なわなけ
ればならない。この時、他の要求元からのMS参
照のためKSを参照していることがある。従がつ
て、KSへの書込要求がRS311(または31
2)に格納された時点で、それ以前にMCU3で
受付けた(すなわちRS310〜313に格納さ
れた)要求によるKS参照はすべて完了した後
に、4面のKSへ同時に書込みを行わねばならな
い。KS制御部41はこの間の順序制御を行な
う。
When making this request, it is necessary to write not only to the KS corresponding to the request source but also to the other three KSs. At this time, the KS may be referenced for MS references from other request sources. Therefore, a write request to KS is RS311 (or 31
2), after all KS references by requests previously accepted by the MCU 3 (that is, stored in RSs 310 to 313) have been completed, writing to the four KSs must be performed simultaneously. The KS control unit 41 performs order control during this time.

最後に、CPUからのKSの読出し動作は通常、
ISK(Insert Storage Key)命令で実行され、
SSK命令の時と同様、要求アドレスはKSのアド
レスを示す。
Finally, the read operation of the KS from the CPU is typically
Executed by ISK (Insert Storage Key) instruction,
As with the SSK instruction, the requested address indicates the address of KS.

この要求の時は、この要求がRS311(また
は312)に格納された時点で、それ以前にRS
310〜313に格納された全ての要求による
KS参照が完了した後に、要求されたキイをKSか
ら読出す。この時、要求元のCPUに対応するKS
から読出すばかりではなく、他の3つのKSから
も読出す必要がある。なぜならば、キイの値は通
常のKS参照(すなわちSSK命令による参図照以
外)では変更されることはないが、R−ビツト、
C−ビツトは、各要求元からのMS参照によつて
全てのKSのRあるいはC−ビツトの値が異なる
ことがありうるからである。従がつてISK命令に
よる参照の時は、4面のKSから読出したキイ値
およびR,CビツトをORし、その結果をISK命
令の要求元に送出すればよい。
At the time of this request, when this request is stored in RS311 (or 312), the RS
By all requests stored in 310-313
After the KS lookup is complete, read the requested key from the KS. At this time, the KS corresponding to the requesting CPU
It is necessary to read not only from the KS but also from the other three KS. This is because the value of the key is not changed by a normal KS reference (i.e., other than by the SSK instruction), but the R-bit,
This is because the value of the R or C-bit of all KSs may differ depending on the MS reference from each request source. Therefore, when making a reference using an ISK instruction, it is sufficient to OR the key values read from the four KSs and the R and C bits, and send the result to the request source of the ISK instruction.

ISK命令の処理時に必要な順序制御はSSK命令
の時と同様、KS制御部41で実行される。
The order control required when processing the ISK instruction is executed by the KS control unit 41, as in the case of the SSK instruction.

KSへの参照は、上述したごとく、RS310〜
313からKS制御部41へ要求が出され、その
後、各KS対応にあるキイ要求レジスタ(Key
Request Register:KRR)420〜423へア
ドレスおよび要求元からのキイ・コードをセツト
する。
As mentioned above, references to KS are from RS310 to
313 to the KS control unit 41, and then a key request register (Key request register) corresponding to each KS is issued.
Set the address and key code from the requester to Request Register (KRR) 420-423.

MS参照の時は、KRR420〜423にセツト
されたキイ・コードは比較器440〜443へ送
出され、KSから読出され、キイ出力レジスタ
(Key Output Register:KOR)430〜433
にセツトされたキイ値と比較される。
When referring to MS, the key codes set in KRR420-423 are sent to comparators 440-443, read out from KS, and sent to key output registers (KOR) 430-433.
is compared with the key value set in .

SSK命令の時は、KS制御部41の指示によ
り、CPUからのキイ・コードをKRR421(ま
たは422)からすべてのKSへ送る。
At the time of the SSK instruction, the key code from the CPU is sent from the KRR 421 (or 422) to all KSs according to instructions from the KS control unit 41.

ISK命令の時は、すべてのKSから読み出され
たキイ値は一担、各KS対応のKOR430〜43
3にセツトされ、それらの出力のOR回路450
(または451)の結果を要求元のCPUへ送出す
る。
At the time of ISK instruction, the key value read from all KS is one part, KOR430 to 43 corresponding to each KS.
3 and an OR circuit 450 of their outputs.
(or 451) is sent to the requesting CPU.

以上、MSへの要求元ごとにKSをもち、KSへ
の参照を並列に行なう方式について説明したが、
容易に類推できるように、KSをMSのバンク対応
に複数個もつて、バンク別に並列に記憶保護を検
査することも可能である。
Above, we have explained the method of having a KS for each request source to the MS and referring to the KS in parallel.
As can be easily inferred, it is also possible to have multiple KSs corresponding to the banks of the MS and check the memory protection for each bank in parallel.

以上説明したごとく、KSを各要求元対応に複
数もち、それらの要求元からの要求順序を制御す
るKS制御部をもつことにより、KSへの参照のた
めに生じうる無駄な待行列を解消し、CPU,IOP
あるいはMSへ本来の性能を生かすことが可能と
なる。
As explained above, by having multiple KSs for each request source and a KS control unit that controls the order of requests from those request sources, it is possible to eliminate unnecessary queues that may occur due to references to KSs. , CPU, IOP
Alternatively, it becomes possible to utilize the original performance of MS.

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

第1図は多重処理装置システムの構成図、第2
図は本発明の一実施例を示すブロツク図である。 3……多重処理制御装置(MCU)、310〜3
12……要求スタツク(RS)、50〜57……
MSバンク、41……記憶保護制御部、440〜
443……比較器、450および451……OR
回路、KS……キイ・ストレージ。
Figure 1 is a configuration diagram of a multiprocessor system, Figure 2
The figure is a block diagram showing one embodiment of the present invention. 3...Multi-processing control unit (MCU), 310-3
12...Request stack (RS), 50-57...
MS bank, 41...Memory protection control unit, 440~
443...Comparator, 450 and 451...OR
Circuit, KS...Key storage.

Claims (1)

【特許請求の範囲】 1 要求元対応に設けられ、各々、記憶装置の記
憶保護を行うためのデータを保持するキー・スト
レージ手段を含み、上記記憶装置への要求に対し
て異なる要求元相互間では各々独立並行して記憶
保護の検査を行う複数の記憶保護装置と、 該記憶保護装置へのデータの書込み、あるいは
データの読出しの時に、該複数の記憶保護装置へ
の要求元相互間の参照要求の順序を制御する記憶
保護制御御装置と、 を備えて記憶保護制御を行なうことを特徴とす
る記憶保護制御方式。
[Scope of Claims] 1. Key storage means provided for each request source, each including a key storage means for holding data for protecting the memory of the storage device, and capable of communicating between different request sources in response to a request to the storage device. Here, we have multiple storage protection devices that each perform storage protection checks independently and in parallel, and when data is written to or read from the storage protection devices, mutual references are made between requesters to the multiple storage protection devices. A storage protection control method comprising: a storage protection control device that controls the order of requests; and a storage protection control system.
JP8295577A 1977-07-13 1977-07-13 Memory protection control system Granted JPS5418635A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8295577A JPS5418635A (en) 1977-07-13 1977-07-13 Memory protection control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8295577A JPS5418635A (en) 1977-07-13 1977-07-13 Memory protection control system

Publications (2)

Publication Number Publication Date
JPS5418635A JPS5418635A (en) 1979-02-10
JPS6118223B2 true JPS6118223B2 (en) 1986-05-12

Family

ID=13788632

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8295577A Granted JPS5418635A (en) 1977-07-13 1977-07-13 Memory protection control system

Country Status (1)

Country Link
JP (1) JPS5418635A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0673115B2 (en) * 1983-11-18 1994-09-14 株式会社日立製作所 Memory protection key controller
JPS6135114U (en) * 1984-07-31 1986-03-04 大森機械工業株式会社 Equipment for supplying goods to automatic packaging machines, etc.

Also Published As

Publication number Publication date
JPS5418635A (en) 1979-02-10

Similar Documents

Publication Publication Date Title
EP3353673B1 (en) On-chip atomic transaction engine
JP2820752B2 (en) Cache Memory Coincidence Control Method in Tightly Coupled Multiprocessor System
EP3404537B1 (en) Processing node, computer system and transaction conflict detection method
US5682551A (en) System for checking the acceptance of I/O request to an interface using software visible instruction which provides a status signal and performs operations in response thereto
JPH0272453A (en) Multiprocessor computer system having shared memory and private cash memory
US6941308B1 (en) Methods and apparatus for accessing a doubly linked list in a data storage system
JPH0532775B2 (en)
CN118656265A (en) Exclusive access control method for multi-core processor, multi-core processor and electronic device
JPH076122A (en) Method and apparatus for request of data
JPS5832427B2 (en) multiplex information processing system
JPS6118223B2 (en)
JPH05100952A (en) Data processor
JPH0353657B2 (en)
US6928524B2 (en) Data processing system with naked cache line write operations
JPH03230238A (en) Cache memory control system
JPS6113261B2 (en)
JPH035625B2 (en)
JP2594567B2 (en) Memory access control device
JP2903536B2 (en) Data transfer device
WO2025044258A1 (en) Read-write method for shared page, database system and computer device
KR20250132934A (en) Method and apparatus for accelerating memory copy
KR940008484B1 (en) Method of reducing data respond-time in multi-processor system
JPWO1992005489A1 (en) Computer System
JPS61220047A (en) Memory control system
JP2506975B2 (en) Buffer invalidation processing method of information processing device