[go: up one dir, main page]

JP2000293476A - System for resource allocation to pci device and its method - Google Patents

System for resource allocation to pci device and its method

Info

Publication number
JP2000293476A
JP2000293476A JP11102811A JP10281199A JP2000293476A JP 2000293476 A JP2000293476 A JP 2000293476A JP 11102811 A JP11102811 A JP 11102811A JP 10281199 A JP10281199 A JP 10281199A JP 2000293476 A JP2000293476 A JP 2000293476A
Authority
JP
Japan
Prior art keywords
pci device
pci
program
resources
resource
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
JP11102811A
Other languages
Japanese (ja)
Inventor
Kazuhiro Ogawa
和宏 小川
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 JP11102811A priority Critical patent/JP2000293476A/en
Publication of JP2000293476A publication Critical patent/JP2000293476A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To place a personal computer interface(PCI) device which could not be placed in operation owing to a resource deficiency in operation by releasing resources assigned to the PCI device that a program used in response to the notification of the end of the use of the PCI device. SOLUTION: A program 7 to use a PCI device 1 and a program 8 to use a PCI device specify the PCI devices at the start and end of the use of the PCI devices and informs a management program 6 of them, and then resources are released. When a program 14 which uses a PCI device 3 is to use PCI devices 3 and 13, the management program 6 allocates unused resources 2 to the PCI devices 3 and 13. The program 14 which uses the PCI device 3 secures a memory 31 and an interruption number 41 to use them by the PCI devices 3 and 13 and sets their contents in the resource table 15 of PCI devices and the PCI devices 3 and 13.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、PCI(Personal
Computer Interface)デバイスにリソースを割り当てる
方式及びその方法に関する。
TECHNICAL FIELD The present invention relates to a PCI (Personal)
The present invention relates to a method and a method for allocating resources to a computer interface device.

【0002】[0002]

【従来の技術】コンピュータで使用するPCIデバイス
は、コンピュータの起動時やOSの起動時に確保/設定
されたリソースを使用して動作する。これらのリソース
は、PCIデバイス各々に対して確保/設定される。す
なわち、従来、コンピュータで使用するPCIデバイス
のリソースの割り当ては、コンピュータの起動時などに
確保/設定され後、変更しない静的なものであった。
2. Description of the Related Art A PCI device used in a computer operates using resources secured / set when the computer is started or when the OS is started. These resources are reserved / set for each PCI device. That is, conventionally, the assignment of the resources of the PCI device used by the computer is static, which is not changed after being secured / set at the time of starting the computer.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、現状で
は、OS起動後は、その確保/設定されたリソースが、
解放/変更されることは無く、複数のPCIデバイスを
使用する場合、確保/設定できるリソースの範囲内でし
か、PCIデバイスを使用できない問題がある。
However, at present, after the OS is started, the resources secured / set are:
When a plurality of PCI devices are used without being released / changed, there is a problem that the PCI devices can be used only within the range of resources that can be reserved / set.

【0004】リソースとしては、割り込み番号、メモリ
などがあるが、割り込み番号の数は有限であり、PCI
デバイスに割り当てられているメモリ容量もコンピュー
タが備えるメモリ容量に比べて遙かに少ない。
As resources, there are an interrupt number, a memory, and the like.
The memory capacity allocated to the device is also much smaller than the memory capacity of the computer.

【0005】本発明は、従来、リソースの不足により稼
働出来なかったPCIデバイスも稼働できるようにする
PCIデバイスへのリソース割当方式及びその方法を提
供することを目的とする。
SUMMARY OF THE INVENTION An object of the present invention is to provide a method and a method for allocating resources to a PCI device, which enables a PCI device which could not be operated conventionally due to lack of resources to operate.

【0006】[0006]

【課題を解決するための手段】本発明によるPCIデバ
イスへのリソース割当方式は、プログラムの実行中にP
CIデバイスの使用の開始及び終了を前記PCIデバイ
スを指定して管理手段に通知する通知手段と、前記通知
手段から前記PCIデバイスの使用の開始の通知を受け
ると使用されていないリソースを前記プログラムが使用
する前記PCIデバイスに割り当て、前記通知手段から
前記PCIデバイスの使用の終了の通知を受けると前記
プログラムが使用していた前記PCIデバイスに割り当
てられていた前記リソースを解放する管理手段と、を備
えることを特徴とする。
According to the present invention, a method for allocating resources to a PCI device according to the present invention is described as follows.
A notification unit that notifies the management unit of the start and end of the use of the CI device by designating the PCI device; and the program, when receiving the notification of the start of the use of the PCI device from the notification unit, removes the unused resource by the program. Management means for allocating to the PCI device to be used, and releasing the resource allocated to the PCI device used by the program when receiving notification of the end of use of the PCI device from the notification means. It is characterized by the following.

【0007】また本発明によるPCIデバイスへのリソ
ース割当方式は、上記のPCIデバイスへのリソース割
当方式において、前記PCIデバイスに割り当てられた
リソースを前記PCIデバイス毎に管理する手段と、使
用中のPCIデバイスを管理する手段と、を更に備える
ことを特徴とする。
[0007] In the resource allocation method for a PCI device according to the present invention, in the resource allocation method for a PCI device described above, means for managing resources allocated to the PCI device for each of the PCI devices, Means for managing the device.

【0008】本発明によるPCIデバイスへのリソース
割当方式は、プログラムの実行中にPCIデバイスの使
用の開始を前記PCIデバイスを指定して通知するステ
ップと、前記PCIデバイスの使用の開始の通知を受け
ると使用されていないリソースを前記プログラムが使用
する前記PCIデバイスに割り当てるステップと、前記
プログラムの実行中に前記PCIデバイスの使用の終了
を前記PCIデバイスを指定して通知するステップと、
前記プログラムから前記PCIデバイスの使用の終了の
通知を受けると前記プログラムが使用していた前記PC
Iデバイスに割り当てられていた前記リソースを解放す
るステップと、を有することを特徴とする。
In the resource allocation method for a PCI device according to the present invention, a step of notifying the start of use of a PCI device by designating the PCI device during execution of a program, and receiving a notification of the start of use of the PCI device. Assigning unused resources to the PCI devices used by the program, and notifying the end of use of the PCI devices by specifying the PCI devices during execution of the program,
Upon receiving notification of the end of use of the PCI device from the program, the PC used by the program
Releasing the resource allocated to the I-device.

【0009】また本発明によるPCIデバイスへのリソ
ース割当方式は、上記のPCIデバイスへのリソース割
当方法において、前記PCIデバイスに割り当てられた
リソースを前記PCIデバイス毎に管理するステップ
と、使用中のPCIデバイスを管理するステップと、を
更に有することを特徴とする。
Further, according to the resource allocation method for a PCI device according to the present invention, in the above-mentioned method for allocating resources to a PCI device, a step of managing the resources allocated to the PCI device for each of the PCI devices; And managing the device.

【0010】本発明によるコンピュータ読み取り可能な
記録媒体は、PCIデバイスの使用の開始の通知を受け
ると使用されていないリソースをプログラムが使用する
PCIデバイスに割り当て、前記PCIデバイスの使用
の終了の通知を受けると前記プログラムが使用していた
前記PCIデバイスに割り当てられていた前記リソース
を解放する管理手段に、前記プログラムの実行中にPC
Iデバイスの使用の開始と終了を前記PCIデバイスを
指定して通知する通知手段としてコンピュータを機能さ
せるためのプログラムを記録したことを特徴とする。
The computer-readable recording medium according to the present invention, when notified of the start of use of a PCI device, allocates an unused resource to a PCI device used by a program, and sends a notification of the end of use of the PCI device. When receiving the program, the management means for releasing the resources allocated to the PCI device used by the program
A program for causing a computer to function as a notifying means for notifying the start and end of use of the I device by designating the PCI device is recorded.

【0011】また、本発明によるコンピュータ読み取り
可能な記録媒体は、プログラムの実行中にPCIデバイ
スの使用の開始と終了を前記PCIデバイスを指定して
通知する通知手段から前記PCIデバイスの使用の開始
の通知を受けると使用されていないリソースを前記プロ
グラムが使用する前記PCIデバイスに割り当て、前記
通知手段から前記PCIデバイスの使用の終了の通知を
受けると前記プログラムが使用していた前記PCIデバ
イスに割り当てられていた前記リソースを解放する管理
手段としてコンピュータを機能させるためのプログラム
を記録したことを特徴とする。
[0011] The computer-readable recording medium according to the present invention may further comprise a notification unit for designating the PCI device to notify the start and end of the use of the PCI device during execution of the program. When the notification is received, the unused resources are allocated to the PCI device used by the program, and when the notification of the end of the use of the PCI device is received from the notification means, the resources are allocated to the PCI device used by the program. And recording a program for causing a computer to function as management means for releasing the resources.

【0012】[0012]

【発明の実施の形態】本発明の実施形態の特徴を、図1
を参照して説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The features of the embodiment of the present invention are shown in FIG.
This will be described with reference to FIG.

【0013】図1は、リソース2をメモリ3、割り込み
番号4としたときのそれらの確保/設定、解放/変更に
ついて示している。
FIG. 1 shows how to secure / set and release / change resources 2 when memory 2 and interrupt number 4 are used.

【0014】コンピュータ1にてPCIデバイス11、
12を使用する時、それらのデバイスは、動作するため
に、コンピュータ1のリソース2を必要とする。
In the computer 1, a PCI device 11,
When using 12, those devices require the resources 2 of the computer 1 to operate.

【0015】そのリソース2の割り当ての制御を、管理
プログラム6にて行う。
The allocation of the resources 2 is controlled by the management program 6.

【0016】また、管理プログラム6は、PCIデバイ
ス11、12が必要とするリソース2中のメモリ3、割
り込み番号4などの確保とPCIデバイスへの設定だけ
でなく、それらのリソースの解放とPCIデバイスの設
定変更を行う。
The management program 6 not only secures the memory 3 and the interrupt number 4 in the resources 2 required by the PCI devices 11 and 12 and sets the PCI devices, but also releases those resources and sets the PCI devices. Change the settings of.

【0017】従来、PCIデバイスが必要とするリソー
スは、コンピュータ起動時などに静的に確保され、その
設定は変更できなかった。そのため、リソース分しかP
CIデバイスを使用できなかった。この問題を解決する
ために、管理プログラム6にて、リソースを確保/設定
したPCIデバイスの中で(上位のプログラムなどで)
使用されていないデバイスがあれば、そのPCIデバイ
スのリソースを解放し、他のPCIデバイスに割り当て
ることで、リソースの割り当てを動的に行う様にする。
Conventionally, resources required by a PCI device are statically secured at the time of starting a computer or the like, and its settings cannot be changed. Therefore, only P for resources
The CI device could not be used. In order to solve this problem, in the management program 6, a PCI device in which resources have been reserved / set (in a higher-level program or the like)
If there is a device that is not being used, the resources of the PCI device are released and assigned to another PCI device, thereby dynamically allocating the resources.

【0018】よって、従来までは、リソースの割り当て
は静的なものであったため、リソース分しかPCIデバ
イスは使用できなかったが、管理プログラム6でリソー
スの割り当てを動的に行うことにより、リソース分以上
のPCIデバイスを使用出来る様になる。
Conventionally, the resource allocation is static, and the PCI device can be used only for the resource. However, by dynamically allocating the resource by the management program 6, the resource allocation is performed. The above PCI devices can be used.

【0019】次に、図2を参照して本実施形態を説明す
る。
Next, this embodiment will be described with reference to FIG.

【0020】コンピュータ1で使用するPCIデバイス
1(11)、PCIデバイス2(12)に割り当てるリ
ソース2の確保/設定、解放/変更を、管理プログラム
6で行う。
The management program 6 secures / sets and releases / changes resources 2 allocated to the PCI device 1 (11) and the PCI device 2 (12) used in the computer 1.

【0021】図において、5は、コンピュータ1、OS
の起動時に動作するプログラムもしくはOSなどである
(以下、代表して「OS5」という)。管理プログラム
6は、OS5の上で動作する PCIデバイス1を使用するプログラム7とPCIデバ
イス2を使用するプログラム8も、OS5の上で動作す
るプログラムである。
In the figure, 5 is a computer 1, an OS
Is a program or an OS that operates at the time of startup (hereinafter, typically referred to as “OS5”). The management program 6 is a program that operates on the OS 5, and the program 7 that uses the PCI device 1 and the program 8 that uses the PCI device 2 are programs that operate on the OS 5.

【0022】PCIデバイス1を使用するプログラム
7、PCIデバイス2を使用するプログラム8が各々P
CIデバイス1(11)、PCIデバイス2(12)を
使用することを管理プログラム6に通知すると、管理プ
ログラム6はリソース2から解放されているリソースを
確保し(631、632、641、642で示す。)、
確保したリソースの内容(確保されたメモリのアドレス
や割り込み番号)をPCIデバイス1を使用するプログ
ラム7、PCIデバイス2を使用するプログラム8が各
々PCIデバイス1(11)、PCIデバイス2(1
2)を使用するために必要なPCIデバイス1のリソー
ステーブル9、PCIデバイス2のリソーステーブル1
0に設定する(69、610で示す。)。また、管理プ
ログラム6は、PCIデバイス1のリソーステーブル
9、PCIデバイス2のリソーステーブル10と同様の
内容をPCIデバイス1(11)、PCIデバイス2
(12)にも設定する(611、612で示す)。更
に、管理プログラム6は、デバイスリスト16にリソー
スを割り当てたPCIデバイスを登録する。
The program 7 using the PCI device 1 and the program 8 using the PCI device 2 are P
When the management program 6 is notified that the CI device 1 (11) and the PCI device 2 (12) are to be used, the management program 6 secures resources released from the resource 2 (indicated by 631, 632, 641, and 642). .),
The program 7 using the PCI device 1 and the program 8 using the PCI device 2 use the PCI device 1 (11) and the PCI device 2 (1
Resource table 9 of PCI device 1 required to use 2), resource table 1 of PCI device 2
It is set to 0 (indicated by 69 and 610). The management program 6 also stores the same contents as the resource table 9 of the PCI device 1 and the resource table 10 of the PCI device 2 in the PCI device 1 (11), the PCI device 2
It is also set to (12) (shown by 611 and 612). Further, the management program 6 registers the PCI device to which the resource has been allocated in the device list 16.

【0023】PCIデバイス1を使用するプログラム
7、PCIデバイスを使用するプログラム8は、PCI
デバイス1のリソーステーブル9、PCIデバイス2の
リソーステーブル10を参照することにより、PCIデ
バイス1(11)、PCIデバイス2(12)にアクセ
スできる(711、812で示す)。
The program 7 that uses the PCI device 1 and the program 8 that uses the PCI device
The PCI device 1 (11) and the PCI device 2 (12) can be accessed by referring to the resource table 9 of the device 1 and the resource table 10 of the PCI device 2 (indicated by 711 and 812).

【0024】管理プログラム6は、上記のリソース2の
確保/設定の他に解放/変更を可能にする。(図中の解
放/変更のパスは、それぞれ、確保/設定のパスと同じ
である。) 現在、PCIデバイス1(11)、PCIデバイス2
(12)によりメモリ31、32と割り込み番号41、
42が確保されているとした場合、それぞれメモリ3と
割り込み番号4の空きが無く、または残りが少いので、
PCIデバイス3(13)は、リソース2に余りがない
ので使用できない。
The management program 6 enables release / change in addition to securing / setting of the resources 2 described above. (The release / change paths in the figure are the same as the secure / set paths, respectively.) Currently, PCI device 1 (11) and PCI device 2
According to (12), the memories 31, 32 and the interrupt number 41,
If it is assumed that 42 is reserved, there is no space in the memory 3 and the interrupt number 4 or there is little remaining, so that
The PCI device 3 (13) cannot be used because the resource 2 has no surplus.

【0025】PCIデバイス1を使用するプログラム7
又はPCIデバイス2を使用するプログラム8は、PC
Iデバイス1(11)又はPCIデバイス2(12)の
使用を終了したときに、PCIデバイスの使用を終了し
たことをPCIデバイスを指定して管理プログラム6に
通知する。管理プログラム6はPCIデバイスの使用の
終了を通知したプログラムが指定したPCIデバイスを
デバイスリスト16から削除する。デバイスリスト16
から削除されたPCIデバイスに対応するPCIデバイ
スのリソーステーブルは破棄される。従って、デバイス
リスト16とPCIデバイスのリソーステーブルを参照
することにより、管理プログラム6は、使用されている
リソース及び使用されていないリソースを知ることがで
きる。
A program 7 that uses the PCI device 1
Alternatively, the program 8 using the PCI device 2 is a PC
When the use of the I device 1 (11) or the PCI device 2 (12) is completed, the management program 6 is notified by specifying the PCI device that the use of the PCI device is completed. The management program 6 deletes the PCI device specified by the program that has notified the end of the use of the PCI device from the device list 16. Device list 16
The resource table of the PCI device corresponding to the PCI device deleted from is discarded. Therefore, by referring to the device list 16 and the resource table of the PCI device, the management program 6 can know the used resources and the unused resources.

【0026】この時点で、PCIデバイスを使用するプ
ログラム14からPCIデバイス3(13)の使用の開
始の通知を受けた場合には、管理プログラム6は、上記
したように、デバイスリスト16とPCIデバイスのリ
ソーステーブルを参照することにより、使用されていな
いリソースを知り、そのリソースをPCIデバイス3
(13)に割り当てる。リソースを割り当てる処理は、
上記のPCIデバイス1(11)又はPCIデバイス2
(12)にリソースを割り当てる場合と同様である。
At this time, if the management program 6 receives a notification from the program 14 using the PCI device that the use of the PCI device 3 (13) has been started, the management program 6 transmits the device list 16 and the PCI device 3 as described above. By referring to the resource table of the PCI device 3
Assign to (13). The process of allocating resources is
The above PCI device 1 (11) or PCI device 2
This is similar to the case where resources are allocated to (12).

【0027】次に、図3を参照してこの説明を更にす
る。
Next, this description will be further made with reference to FIG.

【0028】コンピュータ1にて、PCIデバイス1
(11)、PCIデバイス2(12)、PCIデバイス
3(13)を使用する。
In the computer 1, the PCI device 1
(11) The PCI device 2 (12) and the PCI device 3 (13) are used.

【0029】管理プログラム6は、OS5の上で動作す
るプログラムである。
The management program 6 is a program that runs on the OS 5.

【0030】PCIデバイス1を使用するプログラム
7、PCIデバイス2を使用するプログラム8及びPC
Iデバイス3を使用するプログラム14もOS5の上で
動作するプログラムである。
The program 7 using the PCI device 1, the program 8 using the PCI device 2, and the PC
The program 14 that uses the I device 3 is also a program that operates on the OS 5.

【0031】PCIデバイス1を使用するプログラム
7、PCIデバイス2を使用するプログラム8及びPC
Iデバイス3を使用するプログラム14は、PCIデバ
イス1(11)、PCIデバイス2(12)、PCIデ
バイス3(13)のリソーステーブル9、10、15を
参照して、PCIデバイス1(11)、PCIデバイス
2(12)、PCIデバイス3(13)を使用すること
が出来る。
The program 7 using the PCI device 1, the program 8 using the PCI device 2, and the PC
The program 14 that uses the I device 3 refers to the resource tables 9, 10, and 15 of the PCI device 1 (11), the PCI device 2 (12), and the PCI device 3 (13), and refers to the PCI device 1 (11), The PCI device 2 (12) and the PCI device 3 (13) can be used.

【0032】PCIデバイス1のリソーステーブル9、
PCIデバイス2のリソーステーブル10、PCIデバ
イス3のリソーステーブル15は、OS5に設定されて
いるデータを用いて、管理プログラム6が設定する。
The resource table 9 of the PCI device 1
The management program 6 sets the resource table 10 of the PCI device 2 and the resource table 15 of the PCI device 3 using the data set in the OS 5.

【0033】管理プログラム6にて、リソース2のメモ
リ3、割り込み番号4を、それぞれ確保/設定するが、
リソース2をPCIデバイス1(11)、PCIデバイ
ス2(12)、PCIデバイス3(13)の3つに割り
当てられなかった時(リソ―ス2が足らなかった時)、
まず、PCIデバイス1(11)、PCIデバイス2
(12)にリソース2を割り当てる。
The management program 6 secures / sets the memory 3 of the resource 2 and the interrupt number 4, respectively.
When resource 2 is not allocated to three of PCI device 1 (11), PCI device 2 (12), and PCI device 3 (13) (when resource 2 is insufficient)
First, PCI device 1 (11), PCI device 2
The resource 2 is allocated to (12).

【0034】メモリ3中のメモリ31、32、及び、割
り込み番号4中の割り込み番号41、42を確保し(6
31、632、641、642で示す)、それらをPC
Iデバイス1(11)、PCIデバイス2(12)に設
定し(611、612で示す)、同様の内容をPCIデ
バイス1のリソーステーブル9、PCIデバイスのリソ
ーステーブル10に設定する(69、610で示す)。
The memories 31 and 32 in the memory 3 and the interrupt numbers 41 and 42 in the interrupt number 4 are secured (6).
31, 632, 641, 642), and they are
The same contents are set in the I device 1 (11) and the PCI device 2 (12) (indicated by 611 and 612), and the same contents are set in the resource table 9 of the PCI device 1 and the resource table 10 of the PCI device (69 and 610). Shown).

【0035】以上の設定で、PCIデバイス1を使用す
るプログラム7、PCIデバイス2を使用するプログラ
ム8は、PCIデバイス1のリソーステーブル9、PC
Iデバイス2のリソーステーブル10を参照して、それ
ぞれPCIデバイス1(11)、PCIデバイス2(1
2)を使用出来る(711、812で示す)。
With the above settings, the program 7 using the PCI device 1 and the program 8 using the PCI device 2 are stored in the resource table 9 of the PCI device 1,
Referring to the resource table 10 of the I device 2, the PCI device 1 (11) and the PCI device 2 (1
2) can be used (indicated by 711 and 812).

【0036】PCIデバイス1を使用するプログラム
7、PCIデバイスを使用するプログラム8は、PCI
デバイスの使用を開始する際及び終了する際に、PCI
デバイスを指定して管理プログラム6に通知する。管理
プログラム6は、終了の通知を受けた時点でリソースを
解放する。
The program 7 that uses the PCI device 1 and the program 8 that uses the PCI device
When starting and ending use of the device, the PCI
The management program 6 is notified by designating a device. The management program 6 releases the resources when receiving the notification of the end.

【0037】PCIデバイス3を使用するプログラム1
4がPCIデバイス3(13)を使用したい場合(14
13で示す)、管理プログラム6は、デバイスリスト1
6を参照し、PCIデバイス1(11)、PCIデバイ
ス2(12)のどちらか使用されていない方のリソース
2をPCIデバイス3(13)に割り当てる。
Program 1 using PCI device 3
4 wants to use the PCI device 3 (13) (14
13), the management program 6 stores the device list 1
6, the unused resource 2 of the PCI device 1 (11) and the PCI device 2 (12) is allocated to the PCI device 3 (13).

【0038】例えば、PCIデバイス1(11)が使用
されていないとすると、PCIデバイス1(11)に割
り当てられているメモリ31、割り込み番号41を解放
し、PCIデバイス3(13)に割り当てる。
For example, if the PCI device 1 (11) is not used, the memory 31 and the interrupt number 41 allocated to the PCI device 1 (11) are released, and are allocated to the PCI device 3 (13).

【0039】その後、PCIデバイス3を使用するプロ
グラム14、PCIデバイス3(13)で使用するため
にメモリ31を確保し(631で示す)、割り込み番号
41を確保し(641で示す)、その内容をPCIデバ
イスのリソーステーブル15、PCIデバイス3(1
3)に設定する(615、613で示す)。
Thereafter, the program 14 using the PCI device 3, the memory 31 is reserved for use by the PCI device 3 (13) (indicated by 631), the interrupt number 41 is reserved (indicated by 641), To the PCI device resource table 15 and the PCI device 3 (1
3) (shown by 615 and 613).

【0040】この設定により、PCIデバイス3を使用
するプログラム14はPCIデバイス3のリソーステー
ブル15を参照して(1415で示す)、PCIデバイ
ス3(13)を使用出来る様になる(1413で示
す)。
With this setting, the program 14 using the PCI device 3 refers to the resource table 15 of the PCI device 3 (indicated by 1415) and can use the PCI device 3 (13) (indicated by 1413). .

【0041】PCIデバイス3を使用するプログラム1
4がPCIデバイス3(13)の使用を開始する際及び
終了する際は、PCIデバイス1を使用するプログラム
7、PCIデバイス2を使用するプログラム8と同様に
管理プログラム6に通知し、管理プログラムはその内容
をデバイスリスト16に設定する。
Program 1 using PCI device 3
4 starts and ends the use of the PCI device 3 (13), it notifies the management program 6 like the program 7 using the PCI device 1 and the program 8 using the PCI device 2, and the management program The contents are set in the device list 16.

【0042】本発明は、本発明のプログラムが動作する
環境を限定せず、OS上やコンピュータの起動時など、
PCIデバイスを使用する環境では、どの環境でも同様
の効果が得られる。
The present invention does not limit the environment in which the program of the present invention operates.
In an environment using a PCI device, a similar effect can be obtained in any environment.

【0043】[0043]

【発明の効果】以上説明したように本発明によれば、P
CIデバイスに静的にリソースを割り当てられていた場
合に比べて多い数のPCIデバイスにリソースを割り当
てて稼働させることが可能となる。
As described above, according to the present invention, P
It is possible to allocate resources to a larger number of PCI devices and operate the devices compared to a case where resources are statically allocated to CI devices.

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

【図1】本発明の実施形態の概念図である。FIG. 1 is a conceptual diagram of an embodiment of the present invention.

【図2】本発明の実施形態を示す第1の図である。FIG. 2 is a first diagram showing an embodiment of the present invention.

【図3】本発明の実施形態を示す第2の図である。FIG. 3 is a second diagram showing the embodiment of the present invention.

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

2 リソース 3 メモリ 4 割り込み番号 6 管理プログラム 7 PCIデバイス1を使用するプログラム 8 PCIデバイス2を使用するプログラム 14 PCIデバイス3を使用するプログラム 9 PCIデバイス1のリソーステーブル 10 PCIデバイス2のリソーステーブル 15 PCIデバイス3のリソーステーブル 11 PCIデバイス1 12 PCIデバイス2 13 PCIデバイス3 16 デバイスリスト 2 resource 3 memory 4 interrupt number 6 management program 7 program using PCI device 1 8 program using PCI device 2 14 program using PCI device 3 9 resource table for PCI device 1 10 resource table for PCI device 2 15 PCI Resource table of device 3 11 PCI device 1 12 PCI device 2 13 PCI device 3 16 Device list

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 プログラムの実行中にPCI(Personal
Computer Interface)デバイスの使用の開始及び終了を
前記PCIデバイスを指定して管理手段に通知する通知
手段と、 前記通知手段から前記PCIデバイスの使用の開始の通
知を受けると使用されていないリソースを前記プログラ
ムが使用する前記PCIデバイスに割り当て、前記通知
手段から前記PCIデバイスの使用の終了の通知を受け
ると前記プログラムが使用していた前記PCIデバイス
に割り当てられていた前記リソースを解放する管理手段
と、 を備えることを特徴とするPCIデバイスへのリソース
割当方式。
1. A system in which a PCI (Personal) is executed during execution of a program.
A notification unit that notifies the management unit of the start and end of the use of the device by designating the PCI device; and, when receiving the notification of the start of the use of the PCI device from the notification unit, removes the unused resource. Management means for allocating to the PCI device used by the program, and releasing the resource allocated to the PCI device used by the program when receiving notification of the end of use of the PCI device from the notification means; A method of allocating resources to PCI devices, comprising:
【請求項2】 請求項1に記載のPCIデバイスへのリ
ソース割当方式において、前記PCIデバイスに割り当
てられたリソースを前記PCIデバイス毎に管理する手
段と、使用中のPCIデバイスを管理する手段と、を更
に備えることを特徴とするリソース割当方式。
2. A method for allocating resources to PCI devices according to claim 1, wherein: means for managing the resources allocated to the PCI devices for each of the PCI devices; means for managing the PCI devices in use; A resource allocation method, further comprising:
【請求項3】 プログラムの実行中にPCIデバイスの
使用の開始を前記PCIデバイスを指定して通知するス
テップと、 前記PCIデバイスの使用の開始の通知を受けると使用
されていないリソースを前記プログラムが使用する前記
PCIデバイスに割り当てるステップと、 前記プログラムの実行中に前記PCIデバイスの使用の
終了を前記PCIデバイスを指定して通知するステップ
と、 前記プログラムから前記PCIデバイスの使用の終了の
通知を受けると前記プログラムが使用していた前記PC
Iデバイスに割り当てられていた前記リソースを解放す
るステップと、 を有することを特徴とするPCIデバイスへのリソース
割当方法。
3. A step of notifying the start of use of a PCI device by designating the PCI device during execution of the program, and receiving the notice of the start of use of the PCI device, the program causes the program to use an unused resource. Allocating to the PCI device to be used; notifying the end of use of the PCI device by designating the PCI device during execution of the program; receiving notification of the end of use of the PCI device from the program And the PC used by the program
Releasing the resource allocated to the I-device; and allocating the resource to the PCI device.
【請求項4】 請求項3に記載のPCIデバイスへのリ
ソース割当方法において、前記PCIデバイスに割り当
てられたリソースを前記PCIデバイス毎に管理するス
テップと、使用中のPCIデバイスを管理するステップ
と、を更に有することを特徴とするリソース割当方法。
4. The method for allocating resources to a PCI device according to claim 3, wherein: managing resources allocated to the PCI devices for each of the PCI devices; and managing a PCI device in use; A resource allocation method, further comprising:
【請求項5】 PCIデバイスの使用の開始の通知を受
けると使用されていないリソースをプログラムが使用す
るPCIデバイスに割り当て、前記PCIデバイスの使
用の終了の通知を受けると前記プログラムが使用してい
た前記PCIデバイスに割り当てられていた前記リソー
スを解放する管理手段に、前記プログラムの実行中にP
CIデバイスの使用の開始と終了を前記PCIデバイス
を指定して通知する通知手段としてコンピュータを機能
させるためのプログラムを記録したことを特徴とするコ
ンピュータ読み取り可能な記録媒体。
5. When the notification of the start of the use of the PCI device is received, the unused resource is allocated to the PCI device used by the program, and when the notification of the end of the use of the PCI device is received, the program uses the resource. During the execution of the program, the management means for releasing the resources allocated to the PCI device
A computer-readable recording medium on which is recorded a program for causing a computer to function as a notification unit for notifying the start and end of use of a CI device by designating the PCI device.
【請求項6】 プログラムの実行中にPCIデバイスの
使用の開始と終了を前記PCIデバイスを指定して通知
する通知手段から前記PCIデバイスの使用の開始の通
知を受けると使用されていないリソースを前記プログラ
ムが使用する前記PCIデバイスに割り当て、前記通知
手段から前記PCIデバイスの使用の終了の通知を受け
ると前記プログラムが使用していた前記PCIデバイス
に割り当てられていた前記リソースを解放する管理手段
としてコンピュータを機能させるためのプログラムを記
録したことを特徴とするコンピュータ読み取り可能な記
録媒体。
6. When a notification of the start of use of the PCI device is received from a notification unit that notifies the start and end of use of a PCI device by designating the PCI device during execution of the program, the unused resources are removed. A computer as management means for allocating to the PCI device used by the program and receiving the notification of the end of use of the PCI device from the notifying means and releasing the resource allocated to the PCI device used by the program; A computer-readable recording medium on which a program for causing a computer to function is recorded.
JP11102811A 1999-04-09 1999-04-09 System for resource allocation to pci device and its method Pending JP2000293476A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11102811A JP2000293476A (en) 1999-04-09 1999-04-09 System for resource allocation to pci device and its method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11102811A JP2000293476A (en) 1999-04-09 1999-04-09 System for resource allocation to pci device and its method

Publications (1)

Publication Number Publication Date
JP2000293476A true JP2000293476A (en) 2000-10-20

Family

ID=14337437

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11102811A Pending JP2000293476A (en) 1999-04-09 1999-04-09 System for resource allocation to pci device and its method

Country Status (1)

Country Link
JP (1) JP2000293476A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013535061A (en) * 2010-06-23 2013-09-09 インターナショナル・ビジネス・マシーンズ・コーポレーション Method, system, and computer program for enabling an adapter for a computing environment
US9134911B2 (en) 2010-06-23 2015-09-15 International Business Machines Corporation Store peripheral component interconnect (PCI) function controls instruction
US9195623B2 (en) 2010-06-23 2015-11-24 International Business Machines Corporation Multiple address spaces per adapter with address translation
US9342352B2 (en) 2010-06-23 2016-05-17 International Business Machines Corporation Guest access to address spaces of adapter
US9626298B2 (en) 2010-06-23 2017-04-18 International Business Machines Corporation Translation of input/output addresses to memory addresses

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013535061A (en) * 2010-06-23 2013-09-09 インターナショナル・ビジネス・マシーンズ・コーポレーション Method, system, and computer program for enabling an adapter for a computing environment
US9134911B2 (en) 2010-06-23 2015-09-15 International Business Machines Corporation Store peripheral component interconnect (PCI) function controls instruction
US9195623B2 (en) 2010-06-23 2015-11-24 International Business Machines Corporation Multiple address spaces per adapter with address translation
US9213661B2 (en) 2010-06-23 2015-12-15 International Business Machines Corporation Enable/disable adapters of a computing environment
US9342352B2 (en) 2010-06-23 2016-05-17 International Business Machines Corporation Guest access to address spaces of adapter
US9383931B2 (en) 2010-06-23 2016-07-05 International Business Machines Corporation Controlling the selectively setting of operational parameters for an adapter
US9626298B2 (en) 2010-06-23 2017-04-18 International Business Machines Corporation Translation of input/output addresses to memory addresses

Similar Documents

Publication Publication Date Title
EP3716577A1 (en) Cloud service migration method and apparatus, and electronic device
JP4322232B2 (en) Information processing apparatus, process control method, and computer program
JP2005513644A (en) Method and system for performing operating system functions and electronic device
JP2011044165A (en) Scheduling of request in system
JP2007141226A (en) Shared memory allocation system, method and program
CN114816741A (en) GPU resource management method, device, system and readable storage medium
KR20070090649A (en) Apparatus and method for providing cooperative scheduling in a multicore system
JP2007026094A (en) Execution device and application program
CN116383127B (en) Inter-node communication method, inter-node communication device, electronic equipment and storage medium
CN113849260A (en) An example of processing core allocation method and device
JP2008225520A (en) Memory resource arrangement control method for arranging memory resource in virtual machine environment, virtual machine system, and program
JP3664021B2 (en) Resource allocation method by service level
JP2000293476A (en) System for resource allocation to pci device and its method
JPH08221372A (en) Free resource management device in distributed processing system
CN115004626B (en) Store provision
CN112583653A (en) Pressure testing method and device and computer storage medium
US20240061698A1 (en) Managing the assignment of virtual machines to non-uniform memory access nodes
CN112559164A (en) Resource sharing method and device
US20240176640A1 (en) Method and apparatus for managing memory
WO2020005595A1 (en) Sending messages between threads
JP2003248620A (en) Dynamic memory management method and dynamic memory management information processing apparatus
JP6364827B2 (en) Information processing apparatus, resource access method thereof, and resource access program
JP2915612B2 (en) Shared area management method
JP3585956B2 (en) Information processing apparatus and method
JP2010108216A (en) Memory management system, electronic equipment and memory management program