JPH04188314A - Mouse control system - Google Patents

Mouse control system

Info

Publication number
JPH04188314A
JPH04188314A JP2318253A JP31825390A JPH04188314A JP H04188314 A JPH04188314 A JP H04188314A JP 2318253 A JP2318253 A JP 2318253A JP 31825390 A JP31825390 A JP 31825390A JP H04188314 A JPH04188314 A JP H04188314A
Authority
JP
Japan
Prior art keywords
mouse
fore
guest
interruption
control
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
JP2318253A
Other languages
Japanese (ja)
Inventor
Masajiro Fukunaga
雅次郎 福永
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 JP2318253A priority Critical patent/JPH04188314A/en
Publication of JPH04188314A publication Critical patent/JPH04188314A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the throughput of a whole virtual computer by controlling an I/O instruction from plural guest OSs to a mouse and interruption from the mouse, and changing the OS capable of using the mouse. CONSTITUTION:A mouse I/O control means 5 controls the I/O instruction from plural guest OSs 1a to 1n for the mouse 4, and for instance, it sends the I/O instruction from the fore OS directly to the mouse 4 without trapping it so as to operate it directly there. A mouse interruption control means 6 controls the interruption from the mouse 4, and senses the state of the mouse 4, and only at the time of state change, it informs the fore OS of the mouse interruption. Besides, the guest OS capable of using the mouse is switched by a fore OS switching means 7. The mouse control and the control of plural guest OSs 1a to 1n are executed in such a way by the mouse I/O control means 5, the mouse interruption control means 6 and the fore OS switching means 7. Thus, the mouse control of the fore OS can be executed at high speed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はワークステーションでのマウス制御方式に関し
、特にワークステーション上で仮想計算機を実現すると
きのマウス制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a mouse control method on a workstation, and particularly to a mouse control method when realizing a virtual computer on a workstation.

〔従来の技術〕[Conventional technology]

従来、ワークステーションのマウス制御では、マウスの
動作全制御するマウスドライバがマウスから入力される
割込信号をもとに直接マウスを制御していた。
Conventionally, when controlling a workstation with a mouse, a mouse driver that controls all mouse operations directly controls the mouse based on interrupt signals input from the mouse.

これKよシ、マウスの移動量を素早く検知することがで
きるためマウスを滑らかに制御することができた。
This allows me to quickly detect the amount of mouse movement, allowing me to control the mouse smoothly.

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

上述した従来のワークステーションのマウス制御方式で
は、O8内のマウスドライバが直接マウス勿制御するの
でマウスの移動量を累早く検知できるが、1つの実計算
機上に複数のゲストOSが存在する仮想計算機システム
では、複数のマウスドライバが存在するため各々のマウ
スドライバがマウスの制御を直接性なうことができない
という問題があった。
In the conventional workstation mouse control method described above, the mouse driver in the O8 directly controls the mouse, so the amount of mouse movement can be detected very quickly. The system has a problem in that each mouse driver cannot directly control the mouse because there are multiple mouse drivers.

本発明はこのような従来の欠点を改善したもので、その
目的は、複数のゲストOSが存在する仮想計算機システ
ムにおいて各ゲストOSかラマウスを使用することを可
能にしさらに仮想計算機全体のスルージット等を向上さ
せることを可能とすることにある。
The present invention improves these conventional drawbacks, and its purpose is to make it possible to use each guest OS or mouse in a virtual machine system where multiple guest OSs exist, and to further reduce the throughput of the entire virtual machine. The goal is to make it possible to improve

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

本発明は上記目的全達成するために、仮想計算機上で動
作する複数のゲストOSからのマウスに対するI/O命
令を管理するマウスI/O管理手段と、マウスからの割
込を管理するマウス割込管理手段と、マウスを使用可能
なゲス)O8を切換えるだめのフォアO8切換処理手段
とを備えている。
In order to achieve all of the above objects, the present invention provides a mouse I/O management means for managing I/O commands to a mouse from a plurality of guest OSs running on a virtual machine, and a mouse controller for managing interrupts from the mouse. and a fourth O8 switching processing means for switching the second O8 that can use a mouse.

〔作用〕[Effect]

マウスI/O管理手段は複数のゲス)O8からのマウス
に対するI/O命令を管理し、例えばフォアO8からの
I/O命令はトラ、fせずにマウスに直接送シそこで直
接実行させる。マウス割込管理手段はマウスからの割込
を管理し、マウスの状態をセンスして状態変化のあると
きのみフォアO8にマウス割込を通知する。またフォア
O8切換手段によってマウスを使用可能なゲストOSを
切換える。このようにマウスI/O管理手段、マウス割
込管理手段、フォアO8切換手段によって複数のゲスト
OSのマウス管理および制御を行なう。
The mouse I/O management means manages I/O commands for the mouse from a plurality of controllers O8, and, for example, the I/O commands from the controller O8 are directly sent to the mouse and executed there. The mouse interrupt management means manages interrupts from the mouse, senses the state of the mouse, and notifies the foreground O8 of the mouse interrupt only when there is a change in the state. Further, the guest OS that can use the mouse is switched by the foreground O8 switching means. In this way, the mouse I/O management means, the mouse interrupt management means, and the forerunner O8 switching means manage and control the mice of a plurality of guest OSs.

〔実施例〕 次に、本発明について図面を参照して説明する。〔Example〕 Next, the present invention will be explained with reference to the drawings.

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

第1図においてゲス)O81a〜ゲス)O81nは仮想
計算機上で動作するOSであり、マウスドライバ2a〜
マウスドライバ2nはそれぞれダスト081a〜ln内
に存在し、マウス4を制御するための手段を有している
。各マウスドライバ28〜2nは同一のマウス(または
マウスインタフェースを有するマウス)を制御する手段
を有していればドライバ自体は異なるアルゴリズムによ
っテ設計されていても良い。
In FIG. 1, GUESS)O81a to GUESS)O81n are OSs running on virtual machines, and mouse drivers 2a to
The mouse drivers 2n are each present in the dust 081a-ln and have means for controlling the mouse 4. As long as each of the mouse drivers 28 to 2n has means for controlling the same mouse (or a mouse having a mouse interface), the drivers themselves may be designed using different algorithms.

またマウスマネージャ3は、マウスエバ管理部5と、マ
ウス割込管理部6と、フォアOS切換処理部7とを有し
ている。マウスエバ管理部5は各マウスドライバ21〜
2nから発行されるI/O命令を管理し、マウス4に対
するI/Oシーケンスを乱さないようにマウス4を管理
するよう罠なっている。すなわち複数のrスト081が
マウス4を使用しようとするとき、デイスプレィ上のフ
ォアグランドに表示された実際にマウス4が使用できる
ゲストOS(以下フォアO8と呼ぶ)にデイスプレィを
専有させこれを優先して使用させるように管理している
The mouse manager 3 also includes a mouse ever management section 5, a mouse interrupt management section 6, and a fore-OS switching processing section 7. The mouse evaluation management unit 5 controls each mouse driver 21 to
The trap is configured to manage I/O commands issued from the mouse 2n and to manage the mouse 4 so as not to disturb the I/O sequence for the mouse 4. In other words, when multiple rsts 081 try to use mouse 4, the guest OS displayed in the foreground on the display that can actually use mouse 4 (hereinafter referred to as foreground OS 8) is given priority over the display. It is managed so that it can be used.

またマウス割込管理部6はマウス4からの割込を管理し
、フォアOS切換処理部7は仮想計算機の利用者にフォ
アO8切換を′行なわせることによシマウス4を使用で
きるゲストOSを変える処理を行なうようになっている
In addition, the mouse interrupt management unit 6 manages interrupts from the mouse 4, and the foreground OS switching unit 7 changes the guest OS that can use the mouse 4 by having the virtual machine user switch the foreground O8. It is now ready to process.

このような構成のマウス制御の動作を第2図乃至第9図
を用いて次に説明する。
The operation of mouse control with such a configuration will be explained next using FIGS. 2 to 9.

マウスI/O管理部5は各マウスドライノ92m−2n
カラの工り命令を各マウスドライバを内包するゲストO
SがフォアO8であるかまたはバ、りO8(フォアO8
を除くその他のゲストOS)であるかKよってそれぞれ
第2図、第3図のように処理する。
The mouse I/O management unit 5 is connected to each mouse Drino 92m-2n.
Guest O that includes each mouse driver with empty instructions
S is fore O8 or bar O8 (fore O8
The process is performed as shown in FIGS. 2 and 3, respectively, depending on whether the host OS is a guest OS other than .

すなわちフォアO8からのI/O命令は第2図に示すよ
うにマウスエバ管理部5ではトラップせずに、マウス4
に直接送られ直接実行される。これKよってフォアO8
からのマウス制御を高速に処理することができる。
In other words, as shown in FIG.
is sent directly to and executed directly. This is K, so fore O8
Mouse control from can be processed at high speed.

これに対してパックO8からのI/O命令は第3図に示
すようにマウスI/O管理部5でトラップする。しかる
後マウスエバ管理部5は第4図に示すようにステラ7’
S1でトラップされたエバ命令の種別を判別しこれがO
UT命令である場合にはステップS2に進みそのデータ
をゲス)O81a〜lnとと忙存在するバッファすなわ
ち仮想マウスポート8a〜8nに退避する。トラップさ
れたエバ命令がIN命令である場合にはステップS3に
進みマーウス4の状態変化なしのステータスを返す。
On the other hand, the I/O command from the pack O8 is trapped by the mouse I/O management unit 5 as shown in FIG. After that, the mouse evaporation management section 5 moves the Stella 7' as shown in FIG.
The type of Eva instruction trapped in S1 is determined and this is O.
If it is a UT command, the process advances to step S2 and saves the data to the buffers that are busy with the virtual mouse ports 8a to 8n. If the trapped Eva instruction is an IN instruction, the process advances to step S3 and returns the status of no change in the state of the mouse 4.

マウス割込管理部6は第7図の70−チャートに示すよ
うに、マウス4から割込が入ると、ステップS5でマウ
ス4の状態をセンスし、ステップS6で状態が変化して
いるか否かを調べる。マウス4の状態が変化していれば
ステラfs7に進み第5図に示すようにフォアO8に対
してマウスの割込を通知する。これに対してマウス4の
状態が変化していないときは、第6図に示すようにゲス
)O8に対してマウス割込を通知しない。これによシゲ
ストOSの不要なマウス割込処理の回数を低減できる。
As shown in chart 70 of FIG. 7, when the mouse interrupt management unit 6 receives an interrupt from the mouse 4, it senses the state of the mouse 4 in step S5, and checks whether the state has changed in step S6. Find out. If the state of the mouse 4 has changed, the process proceeds to Stella fs7 and notifies the forerunner O8 of the mouse interruption as shown in FIG. On the other hand, when the state of the mouse 4 has not changed, the mouse interrupt is not notified to the mouse O8 as shown in FIG. This makes it possible to reduce the number of unnecessary mouse interrupt processing performed by the guest OS.

仮想計算機の利用者はフォアOS切換を行なうことによ
シ、マウスを使用できるO8を変えることができる。
The user of the virtual machine can change the OS on which the mouse can be used by switching the foreground OS.

フォアOS切換が実行されると、仮想計算機のカーネル
は関連するデバイスマネージャにフォアO8切換が実行
されたことを通知する。マウスマネージャ3はフォアO
8切換通知を受けるとフォアO8切換処理部7を呼び出
す。
When the foreground OS switch is executed, the kernel of the virtual machine notifies the associated device manager that the foreground OS switch has been executed. Mouse manager 3 is Fore O
When receiving the O8 switching notification, the fourth O8 switching processing section 7 is called.

フォアO8切換処理部7は、第8図のフローチャートで
示される処理を行なう。すなわちステップSIOでは旧
フォアO8(フォアO8切換が実行される直前のフォア
O8)がマウス4に出力したコマンドをマウス4からリ
ードパックし、ステップSllではそれを前述の仮想マ
ウスポー14退避する。またステップS12では新フォ
アO8(新しくフォアO8になるゲス)O8)の仮想マ
ウスポートの状態をマウス4に出力する。第9図(、)
はステッ+′S/O乃至S12の処理概要を示したもの
である。
The fourth O8 switching processing section 7 performs the processing shown in the flowchart of FIG. That is, in step SIO, the command outputted to the mouse 4 by the old forerunner O8 (the forerunner O8 immediately before the forerunner O8 switching was executed) is read-packed from the mouse 4, and in step Sll, it is saved to the virtual mousepaw 14 described above. Further, in step S12, the state of the virtual mouse port of the new forerunner O8 (the new forerunner O8) is output to the mouse 4. Figure 9 (,)
shows an outline of the processing from steps S/O to S12.

さらK、ステラ7’S13では旧フォアO8からのマウ
ス4に対するI/O命令をトラップ可能にし、逆にステ
ップS14では新フォアO8からのI/O命令をトラッ
プしないように変更する。第9図(b)はステップS1
3.S14の処理概要を示したものである。
Furthermore, Stella 7'S13 enables trapping of I/O commands for the mouse 4 from the old forerunner O8, and conversely, changes are made so that I/O commands from the new forerunner O8 are not trapped. FIG. 9(b) shows step S1
3. This is an overview of the processing in S14.

このように本実施例では、マウスI/O管理部5とマウ
ス割込管理部6およびフォアO8切換処理部7の3つの
手段を有するマウスマネージャ3を用いることによシ、
仮想計算機上で動作する各ゲス)O81a〜1nからマ
ウス4を使用することができる。またマウス割込管理部
6がマウス4の状態をセンスし、状態変化のあるときの
み、フォアO8にマウス割込を通昶するため、ゲストO
Sに通知するマウス割込の回数を抑制することによシ仮
想計算機全体のスルージットを向上することができる。
As described above, in this embodiment, by using the mouse manager 3 having three means: the mouse I/O management section 5, the mouse interrupt management section 6, and the foreground O8 switching processing section 7,
The mouse 4 can be used from each of the game consoles 81a to 1n running on the virtual machine. In addition, the mouse interrupt management unit 6 senses the state of the mouse 4 and passes the mouse interrupt to the foreground O8 only when the state changes.
By suppressing the number of mouse interrupts to be notified to S, the throughput of the entire virtual machine can be improved.

またゲストOSからのマウス制御をI/O命令と割込レ
ベルでエミュレートするため、同一インタフェースを有
するマウスドライバであれば、その制御アルゴリズムと
無関係にどのようなマウスドライバでも仮想計算機上で
使用できる。さらにフォアO8からのマウス4へのI/
O命令は1シツプしないため、フォアO8のマウス制御
を高速に行なうことができる。
Additionally, since mouse control from the guest OS is emulated at the I/O command and interrupt level, any mouse driver with the same interface can be used on the virtual machine, regardless of its control algorithm. . Furthermore, I/from the fore O8 to the mouse 4
Since the O command does not require one ship, mouse control of the foreground O8 can be performed at high speed.

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

以上説明したように、本発明では、マウス割込管理手段
、マウス割込管理手段、フォアO8切換処理手段を設け
ることによって、複数のゲストOSが存在する仮想計算
機システムにおいて各ゲストOSからマウスを使用する
ことができ、さらには仮想計算機全体のスルージット等
を向上させることができるという効果がある。
As explained above, in the present invention, by providing a mouse interrupt management means, a mouse interrupt management means, and a forerunner O8 switching processing means, it is possible to use a mouse from each guest OS in a virtual computer system in which a plurality of guest OSes exist. Furthermore, the throughput of the entire virtual machine can be improved.

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

第1図は本発明の一実施例のブロック図、第2図はフォ
アO8からI/O命令が発行さnたときのマウスI/O
管理部の動作を示す図、第3図はバックO8からI/O
命令が発行されたときのマウス割込管理部の動作を示す
図、第4図はマウスI/O管理部の処理流れを示すフロ
ーチャート、第5図はマウスの状態が変化したときのマ
ウス割込管理部の動作を示す図、第6図はマウスの状態
が変化しないときのマウス割込管理部の動作を示す図、
第7図はマウス割込管理部の処理流れを示すフローチャ
ート、第8図はフォアO8切換処理部の処理流れを示す
フローチャート、第9図(a) 、 (b)はフォアO
8切換処理部の動作を示す図である。 図において、18〜1n・・・ゲス)O8,2a〜2n
・・・ゲストOS内のマウスドライバ、3・・・マウス
マネージャ、4・・・マウス、5・・・マウスI/O管
理部、6・・・マウス割込管理部、7・・・フォアO8
切換処理部、8a〜8n・・・仮想マウスポート。 代理人 弁理士 内 原   晋 特開平4− L88314 (5)
FIG. 1 is a block diagram of an embodiment of the present invention, and FIG. 2 shows the mouse I/O when an I/O command is issued from the foreground O8.
A diagram showing the operation of the management section, Figure 3 shows the I/O from the back O8
Figure 4 shows the operation of the mouse interrupt management unit when a command is issued. Figure 4 is a flowchart showing the processing flow of the mouse I/O management unit. Figure 5 shows the mouse interrupt when the state of the mouse changes. FIG. 6 is a diagram showing the operation of the management section; FIG. 6 is a diagram showing the operation of the mouse interrupt management section when the state of the mouse does not change;
FIG. 7 is a flowchart showing the processing flow of the mouse interrupt management section, FIG. 8 is a flowchart showing the processing flow of the foreground O8 switching processing section, and FIGS. 9(a) and (b) are
FIG. 8 is a diagram showing the operation of the 8 switching processing section. In the figure, 18~1n...guess) O8, 2a~2n
...Mouse driver in the guest OS, 3.Mouse manager, 4.Mouse, 5.Mouse I/O management section, 6.Mouse interrupt management section, 7.Foreign O8
Switching processing unit, 8a to 8n...virtual mouse port. Agent Patent Attorney Susumu Uchihara JP 4-L88314 (5)

Claims (1)

【特許請求の範囲】[Claims] 仮想計算機上で動作する複数のゲストOSからのマウス
に対するI/O命令を管理するマウスI/O管理手段と
、マウスからの割込を管理するマウス割込管理手段と、
マウスを使用可能なゲストOSを切換えるためのフォア
OS切換処理手段とを備えていることを特徴とするマウ
ス制御方式。
Mouse I/O management means for managing I/O commands to the mouse from multiple guest OSs running on the virtual machine; Mouse interrupt management means for managing interrupts from the mouse;
1. A mouse control method comprising: a fore-OS switching processing means for switching a guest OS on which a mouse can be used.
JP2318253A 1990-11-22 1990-11-22 Mouse control system Pending JPH04188314A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2318253A JPH04188314A (en) 1990-11-22 1990-11-22 Mouse control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2318253A JPH04188314A (en) 1990-11-22 1990-11-22 Mouse control system

Publications (1)

Publication Number Publication Date
JPH04188314A true JPH04188314A (en) 1992-07-06

Family

ID=18097146

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2318253A Pending JPH04188314A (en) 1990-11-22 1990-11-22 Mouse control system

Country Status (1)

Country Link
JP (1) JPH04188314A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007220086A (en) * 2006-01-17 2007-08-30 Ntt Docomo Inc Input/output controller, input/output control system, and input/output control method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007220086A (en) * 2006-01-17 2007-08-30 Ntt Docomo Inc Input/output controller, input/output control system, and input/output control method

Similar Documents

Publication Publication Date Title
JP3989911B2 (en) Virtualization of global interrupt queue
EP0685791B1 (en) User controllable concurrent functionality
KR930008265B1 (en) Input-output control method in a virtual machine system
CN100399274C (en) Method and apparatus for dynamic distribution of virtual machine system input-output apparatus
US10169075B2 (en) Method for processing interrupt by virtualization platform, and related device
JPH06100956B2 (en) Device for pointer control
US7073076B2 (en) CPU power adjustment method
JPH05210522A (en) Method of changing dispatch-mode
EP0234700B1 (en) Control system for a computer system including virtual terminals
JPH04188314A (en) Mouse control system
JP2000215071A (en) Virtual computer system
JPH01124042A (en) Line control system in virtual computer system
JPH0540643A (en) Hardware interruption control system for simultaneous operation of plural operating systems
KR102115738B1 (en) Apparatus and method for accelerating critical service in virtualized system
JPH04346136A (en) Virtual instruction processor structure control method
JPH0668728B2 (en) Virtual computer system
JPH01248257A (en) Load distribution control system for input output to auxiliary storage device
CN116431280A (en) Interrupt signal processing method and interrupt signal processing device
JPH07230358A (en) Multiplexed volume device
JPH04251340A (en) Maintenance control system for information processor
JPH0719195B2 (en) Multi-window display control method
JPS60225944A (en) Virtual machine system
JPH04140844A (en) Hardware exclusive control system at the time of simultaneous operation of plural os's
JPH0831077B2 (en) Channel path load factor equalization method for I / O subsystem
JPH0744405A (en) Measuring control system for operating time of virtual computer in virtual computer system