Virtual computer system having improved input/output interrupt control

Abstract: A virtual computer system includes a plurality of virtual machines (#A, #B) running in a central processing unit (10, 50) with time shared, an input/output unit (5) generating an input/output interrupt request, and a specific instruction generating part (20) for generating a specific instruction indicating a priority to one of the virtual machines which is running. The system further includes a decision part (30) for determining whether the input/output interrupt request addressed to one of the virtual machines has a priority equal to that indicated by the specific instruction and for generating an interrupt accepting signal when the decision result is affirmative. Moreover, the system includes a monitor part (20) for transferring a right to use the central processing unit from the one of the virtual machines which is running to the one of the virtual machines which is addressed by the input/output interrupt request when the interrupt accepting signal from the decision part is supplied to the monitor part.

Description: The present invention generally relates to a virtual computer system, and more particularly to a virtual computer system in which a plurality of guest programs (virtual machines) run on a time sharing basis in a central processing unit provided in a computer system under the control of a virtual machine monitor. The present invention is specifically concerned with an improvement in input/output interrupt control. Conventionally, there are known various computer systems directed to improving the rate of operation. For example, there is known a virtual computer system in which a plurality of guest programs share time and run in a central processing unit under the control of a virtual machine monitor (host). Currently, such a virtual computer system is required to handle a variety of users' programs. Particularly, it is required to run a guest program which needs real-time processing, such as a process control. In such a case, an input/output interrupt event generated by a process control mechanism must be handled with high priority. However, when such an input/output interrupt event is generated by the process control mechanism while a guest program for processing the process control of the process control mechanism is not currently running in the physical central processing unit, it is necessary to defer the handling of the input/output interrupt event until the requested guest program is running in the central processing unit. Thus, there is a need for a procedure for effectively controlling priority on input/output interrupt events among the guest programs. In a virtual computer system, it is very difficult to control input/output processing which is in asynchronism with the operation of the central processing unit. Referring to FIG. lA, there is illustrated a conventional input/output interrupt control. A plurality of virtual machines (also called guests) #A, #B, ,,,. #D run in a central processing unit 1b on a time-share basis. All input/output instructions and interrupts directed to the virtual machines are input to a virtual machine monitor (VMM: host) la without exception. The virtual machine monitor subjects the input instructions and interrupts to a scheduling process, and then determines which one of the virtual machines should be accessed for each instruction/interrupt. Then the virtual machine monitor la executes interrupt processing by emulation (software interrupt). Thus, the overhead of the system shown in Fig. 1A is large. Other conventional virtual computer systems directed to overcoming the above-mentioned shortcoming have been proposed. These proposed systems handle input/output interrupts addressed to the virtual machines without intervention of the virtual machine monitor. For example, EP-A-0213952 discloses a virtual computer system in which the CPU has mask registers corresponding respectively to the different virtual machines, each mask register having mask bits corresponding respectively to the different priority levels of input/output devices of the system. The main storage of the system also stores sets of interrupt queues corresponding respectively to the different virtual machines, each set having a queue for each priority level. When an interrupt request occurs that designates a non-running virtual machine, it is allocated to the appropriate queue for its priority level in the set of queues that corresponds to the designated virtual machine. The request is then held pending until that virtual machine starts to run. US 4001783 discloses a multiprocessing computer system in which each interrupt request specifies the number of the processor to be interrupted, the priority level number of the request, and addresses to identify the interrupt requestor. Interrupt handling circuitry constantly monitors the current process level of the processor and all interrupt requests. Whenever an interrupt request is present at a level higher than the current level the circuitry raises the higher-level-interrupt-present line to the specified processor. In another such proposed virtual computer system, the virtual machines can be assigned different priorities. Thus, in a state where one of the virtual machines is running in the CPU, when an input/output interrupt directed to another one of the virtual machines having higher priority occurs, the right to exclusively use the CPU should be assigned to the virtual machine having higher priority instead of the virtual machine currently running. In the system shown in Fig. 1A, it is easy to assign the right to use the CPU to the higher-priority virtual machine because all input/output processings are first reported to the virtual machine monitor la and it is sufficient for the lower-priority virtual machine to return the right to use the CPU to the virtual machine monitor 1a. Fig. 1B illustrates computing apparatus, for providing a plurality of virtual machines, which may be considered to include: at least one central processing unit; monitor means connected operatively with the central processing units for causing the different virtual machines to run on the central processing unit(s) on a time-share basis; input/output means operable in response to an input/output event affecting one of the virtual machines to generate an input/output interrupt request designating the virtual machine concerned; and decision means connected to the said input/output means for receiving such an input/output interrupt request and having a first state in which the received request is accepted if it designates the virtual machine that is currently being run but is not accepted if it designates any non-running virtual machine. This virtual computer system handles input/output interrupts addressed to the virtual machines without intervention of the virtual machine monitor. In the configuration shown in Fig. 1B, however, it is impossible to discriminate just those input/output interrupts which are directed to virtual machines having priority over the currently running virtual machine from other input/output interrupts so as to inform the virtual machine monitor of only the input/output interrupts addressed to the higher-priority virtual machines. This is further described with reference to Fig. 1B. It is now assumed that an input/output event #1 addressed to virtual machine #D occurs in an input/output unit 5. A channel processor (CHP) 4 (serving as input/output means) discriminates the input/output event #1 and accesses a corresponding sub-channel (SCH) area 22 provided in a main storage device (MS) 2. A domain identification (DMID) data 22a indicating the virtual machine #D is read out from a specific area of the sub-channel area 22 related to the virtual machine #D, and is then transferred to an interrupt pending register 30b of an interrupt hardware (IHW) 30 (serving as decision means) formed in a memory control unit (MCU) 3. The transferred domain identification data 22a is written into an area corresponding to the domain identification data 22a (virtual machine #D). As will be described later, a virtual machine monitor (VMM) 20 (serving as monitor means) runs in the CPU 10 on a time-share basis with the virtual machines. Thus, the virtual machine monitor 20 is identified by its own corresponding domain information data. Hereafter, the domain identification data is referred to as a domain identifier. On the other hand, when the virtual machine monitor (VMM) 20 runs the virtual machine #D using a predetermined instruction, it accesses a control block 23 corresponding to the domain identifier (DMID) indicative of the virtual machine #D. Then mask information 23b stored in a specific area of the control block 23 is read out therefrom and then transferred to an interrupt mask register 30a formed in the interrupt hardware 30. Then the transferred mask information 23b is written into a corresponding area of the interrupt mask register 30a. At this time, '0' is written into the areas of the interrupt mask register 30a which correspond to virtual machines that are not being run. When the domain identifier indicating the virtual machine #D is written into the interrupt mask register 30a, the interrupt hardware 30 compares the mask information relating to the virtual machine #D with the corresponding pending information of the interrupt pending register 30b. When both information coincide with each other, the virtual machine #D is immediately made active. It can be seen from the above description that it is impossible to run a virtual machine which is not running until an input/output instruction addressed to this virtual machine is dispatched by the virtual machine monitor 20 even when the requested virtual machine which is not running has priority over a virtual machine which is currently running. According to the present invention the computing apparatus is provided with priority designating means operable during running of one of the virtual machines to produce a specific instruction designating a selected further one of the virtual machines that is not currently running as having priority over the currently-running machine; and in that the decision means are switchable, in response to the said specific instruction, from the said first state to a second state in which the received input/output interrupt request is accepted if it designates the selected further virtual machine, such acceptance being indicated by an interrupt accepting signal generated by the decision means; the said monitor means being connected with the said decision means for receiving therefrom the said interrupt accepting signal and operative in response to receipt of that signal to cause the central processing unit(s) to commence running of the selected further virtual machine. Such apparatus can provide a virtual computer system capable of preferentially accepting an input/output interrupt addressed to a virtual machine having priority over a virtual machine which is running. Reference will now be made, by way of example, to the accompanying drawings, in which: Fig. 1A is a block diagram of a conventional virtual computer system; Fig. 1B is a block diagram of another conventional virtual computer system; Fig. 2 is a block diagram of a virtual computer system according to a preferred embodiment of the present invention; Fig. 3 is a diagram illustrating a format of a specific instruction; Fig. 4 is a diagram illustrating a format of a control block; and Fig. 5 is a block diagram of a second preferred embodiment of the present invention. A description is given of a preferred embodiment of the present invention with reference to Figs. 2, 3 and 4, in which those parts which are the same as those shown in Fig. 1B are given the same reference numerals. Before running a virtual machine (#A for example), the virtual machine monitor (priority designating means) 20 executes a specific instruction (MGPRT) having an operand indicative of a virtual machine (#A) having priority over a virtual machine (#B) which is running in a CPU 10. Thereby, the virtual machine monitor 20 lets the interrupt hardware (decision means) 30 know the relationship in priority order between the virtual machines #A and #B. Thereby, the area of the mask register 30a corresponding to the virtual machine #A is made "open", i.e. the mask information stored in that area has an "open value". That is, the virtual machine #A is in an interrupt acceptable state. It is noted that in the conventional system shown in Fig. 1B, all the mask register areas except the mask register area relating to a virtual machine currently running are made closed, i.e. these areas each store a "closed value" of the mask information. In this state (first state) any interrupts directed to all the virtual machines except the virtual machine currently running are not acceptable. When an input/output interrupt addressed to the virtual machine #A is supplied to the channel processor (input/output means) 4 while the virtual machine #B is running, the domain identifier (interrupt event #1) indicative of the virtual machine #A is transmitted to the interrupt pending register 30b. Then, the interrupt event #1 is written into a corresponding area of the interrupt pending register 30b. The contents of the areas of the interrupt pending register 30b and the mask register 30a corresponding to the virtual machine #A are read out therefrom and then compared with each other by a related arithmetic logic unit (ALU) provided in an ALU group 31. Each ALU of the ALU group 31 functions as an AND gate. When data in one of the areas of the interrupt pending register 30b coincides with data in the corresponding area of the mask register 30a, the corresponding ALU outputs the data stored in the area concerned of the interrupt pending register 30b. The outputs from the ALUs are subjected to a wired-OR operation so that a resultant signal INS (domain identifier) from the ALU group 31 is supplied to an ALU 11b provided in a CPU 10, which has an inner register 11a. The domain identifier of the virtual machine which is being run is stored in the inner register 11a of the CPU 10. The ALU 11b generates an interrupt accepting signal IAS when the domain identifier from the ALU group 31 does not coincide with data from the inner register 11a. It is noted that when the signal INS is supplied from the ALU group 31, the virtual machine specified by the specific instruction MGPRT always has priority over the virtual machine which is running. Then the interrupt accepting signal IAS is sent to the virtual machine monitor 20. A further description is given of the embodiment shown in Fig. 2. Each virtual machine #A and #B runs in the CPU 10 on a time-share basis, and data relating thereto is stored in the main storage device 2. Similarly, the virtual machine monitor (monitor means) 20 runs in the CPU on a time-share basis with the virtual machines #A and #B, and data relating thereto is stored in the main storage device 2. As described previously, when an input/output interrupt is supplied to the channel processor 4, it automatically accesses a corresponding sub-channel (not shown for the sake of simplicity) formed in the main storage device 2 and writes the domain identifier stored therein into a corresponding area of the interrupt pending register 30b. Thereby, the request for interrupt to the addressed virtual machine is generated. It is now assumed that the virtual machine #B is running in the CPU 10. For the sake of simplicity, two virtual machines #A and #B are provided. As described previously, the virtual machine monitor 20 dispatches the virtual machine #B, and accesses a corresponding one of the control blocks 23. Then the virtual machine monitor 20 reads out mask information 23b for the virtual machine #B and writes the same into the corresponding storage area of the mask register 30a. If the aforementioned specific instruction (MGPRT) has not yet been issued from the virtual machine monitor 20, data '0', which has been written in advance into the area of the mask register 30a corresponding to the virtual machine #A, will still exist in that area of the mask register 30a (the decision means 30 will still be in the aforementioned first state). Accordingly, in this state any input/output interrupt event directed to the virtual machine #A is not accepted. Thus, when an input/output interrupt event addressed to the virtual machine #A is requested while the virtual machine #B is running, this request is held in the corresponding area of the interrupt pending register 30b provided in the interrupt hardware 30. On the other hand, in the Fig. 2 embodiment, as described previously the specific instruction MGPRT having priority to the virtual machine which is running is defined. A format of the specific instruction is shown in Fig. 3. The specific instruction is composed of 31 bits, for example, and has an opened consisting of address bits B2 and D2. The virtual machine monitor 20 executes the specific instruction, and accesses a control block 23 indicated by the operand of the specific instruction. A control block is provided for each virtual machine. Fig. 4 illustrates a format of each control block. The control block given reference numeral 23 has the aforementioned domain identifier 23a. When the illustrated control block relates to the virtual machine #A, domain identifier 23a indicates the virtual machine #A. Further, the control block 23 includes a general purpose register (GR) 23c, a control register (CR) 23d and a floating-point register (FPR) 23e. The mask information 23b is provided in the control register 23d. When the control block 23 is accessed by the specific instruction MGPRT, the mask information is read out therefrom and then written into the area of the mask register 30a indicated by the domain identifier 23a held in the control block 23. Once the mask information is written into the mask register 30a, thereby changing the interrupt hardware (decision means) 30 to a second state, it is held as it is until the designated virtual machine is given the right to use the CPU 10, or the specific instruction MGPRT is issued to another virtual machine. It is noted that both the mask register 30a and the interrupt pending register 30b have areas equal in number to the virtual machines. For example, when five virtual machines are provided, each of the registers 30a and 30b has five areas. In this case, it is possible to write mask information relating to more than one virtual machine into the corresponding areas of the mask register 30a by the specific instruction MGPRT. As described later, each of the registers 30a and 30b further has an area assigned to the virtual machine monitor 20. It is now assumed that in this example the specific instruction MGPRT generated by the virtual machine monitor 20 is directed to the control block associated with the virtual machine #A. The mask information is read out from the control block 23 associated with the virtual machine #A and is then written into the corresponding area of the mask register 30a (the decision means 30 are thereby switched to the aforementioned second state). It is noted that it is possible to write the mask information into the area of the mask register 30a corresponding to the virtual machine #A even when the virtual machine #B is running. In the aforementioned conventional system, such writing of the mask information relating to the virtual machine #A is inhibited. The contents of the mask register 30a and the interrupt pending register 30b are always compared with each other independently of the status of the CPU 10. That is, the bits written into the areas of the registers 30a and 30b relating to the virtual machine #A are compared with each other, and similarly the bits written into the areas of the registers 30a and 30b relating to the virtual machine #B are compared with each other. This comparing operation is done by operating a logic AND operation on the compared bits. When the result of comparison (logic AND operation) has a value other than zero, the interrupt hardware 30 generates the signal INS indicative of the domain identifier, which instructs the CPU 10 to execute an interrupt sequence. It is noted that the virtual machine monitor 20 is formed by a program which is executed by the CPU 10, and is controlled in common to the virtual machines #A and #B. Thus, the mask register 30a and the interrupt pending register 30b each have an area provided for the virtual machine monitor 20. As described previously, the CPU 10 has the inner register lla and the ALU llb. The inner register has information on which one of the virtual machines #A and #B and the virtual machine monitor 20 is running. When the interrupt sequence is made active in response to the signal INS, the ALU 11b of the CPU 10 compares the content of the inner register 11a with the signal INS supplied from the interrupt hardware 30. When both the signals (domain identifiers) coincide with each other, the request for interrupt written in the interrupt pending register 30b is handled in the conventional manner. That is, this interrupt becomes acceptable when the virtual machine monitor 20 dispatches the requested virtual machine. On the other hand, when the domain identifier from the inner register lla does not coincide with the domain identifier from the interrupt hardware 30, the CPU 10 concludes that the request for input/output interrupt from a virtual machine (#A in this case) having priority over the virtual machine which is running (#B in this case) is acceptable. Then the CPU 10 saves operation environments thereof in the general purpose register 23c, the control register 23d and the floating-point register 23e of the control block 23 related to the virtual machine #B. Thereafter, the CPU 10 assigns the right to use the CPU 10 to the virtual machine monitor 20. Then, the virtual machine monitor 20 immediately assigns the right to use the CPU 10 to the virtual machine #A so that the virtual machine #A is set to an environment where it can execute the requested input/output interrupt processing. A description is given of a second embodiment of the present invention with reference to FIG.5. According to the second embodiment, the function of the interrupt hardware 30 is provided in an input/output processor. The second embodiment includes a physical CPU 50 and an input, output processor (input/output means) 60. The CPU 50 includes a register 51, a comparator 52, a latch 53, a register 54, signal lines 55 and 56, and a CPU control circuit 57. The register 51 stores the domain identifier of a virtual machine/virtual machine monitor currently running in the physical CPU 50. When the CPU 50 generates a state transition (transfer of the right to use the CPU 50) between the virtual machine monitor and one of the virtual machines formed in the CPU 50, the domain identifier of the virtual machine monitor/virtual machine is written into the register 51. The value written into the register 51 serves as an input to the comparator 52. The latch circuit 53 stores an input/output interrupt signal 53a from the input/output processor 60. The input/output interrupt signal 53a from the input/output processor 60 is supplied to a signal line connected to a corresponding CPU (CPU 50 in the illustrated case). That is, when the input/output interrupt signal 53a is made active, it is set to a logical value '1'. The register 54 stores the domain identifier of a virtual machine/virtual machine monitor, which is sent together with the input/output interrupt signal 53a so that the input/output processor 60 lets the CPU 50 know which one of the virtual machines is related to the generated input/output interrupt signal 53a. For example, another input/output interrupt event is connected to another interrupt line 53b. The input/output processor 60 sends the domain identifier to the register 54 only when an interrupt event addressed to one of the virtual machines that is running (specified by registers 62 and 63 described later) occurs, or an input/output interrupt event which is caused by the specific instruction MGPRT and addressed to a higher-priority virtual machine (specified by a register 69) occurs. The virtual machine which is declared beforehand so as to have priority to the virtual machine currently running does not run in parallel with the currently running virtual machine. Thus, information such as stored in the register 63 for designating the correspondence to the physical CPU 50 is unnecessary as will be described later. The comparator 52 compares the domain identifier from the register 54 with the domain identifier from the register 51. When the values of the supplied domain identifiers are equal to each other, the comparator 52 activates the signal line 55 connected to the CPU control circuit 57 so that a normal input/output interrupt is generated. On the other hand, when the values of the domain identifiers are not equal to each other, the comparator 52 makes the signal line 56 active so that an input/output interrupt caused by the specific instruction MGPRT is generated. The comparator 52 performs the comparison operation only when the signal from the latch 53 is '1'. The CPU control circuit 57 provides a CPU operation, particularly a control procedure for handling input/output interrupt. The input/output processor 60 includes registers 61, 62, 63 and 64, a register stack 65, an address circuit 66, a data register 67, an input/output control microprocessor (hereafter simply referred to as a microprocessor) 68 and a register 69. A modified value of the mask information obtained by executing a mask information changing instruction in the CPU 50 is written into the register 61. The domain identifier used for a virtual machine or virtual machine monitor which is to run after the current time, is written into the register 62 in a case where the right to use the CPU 50 is transferred from the virtual machine monitor to one of the virtual machines, the mask changing instruction is executed by the CPU 50, or the right to use the CPU 50 is transferred from a currently running virtual machine to the virtual machine monitor. Information written into the register 62 indicates which mask information stored in the register stack 65 should be used for input/output interrupt control in the CPU 50 and which one of the areas the mask information stored in the register 61 is to be written into. A logical CPU number of a virtual machine or virtual machine monitor,which is to run after the current time, is written into the register 62 in a case where the right to use the CPU 50 is transferred from the virtual machine monitor to one of the virtual machines, the mask changing instruction is executed by the CPU 50, or the right to use the CPU 50 is transferred from a currently running virtual machine to the virtual machine monitor. "Logical CPU" is a unit of operation of the virtual machine monitor or each virtual machine. It is noted that each virtual machine is not informed beforehand of which one of the logical CPUs is used because the virtual machine monitor is free to dynamically determine beforehand as to which one of the logical CPUs should be run in which one of the physical CPUs. The interrupt signal 53a from the input/output processor 60 is supplied together with information on designation of one of the the physical CPUs. Thus, it is necessary for the input/output processor 60 to know which one of the virtual machines relating to which one of the virtual machines is running in which one of the physical CPUs. Information written into the register 63 indicates which mask information stored in the register stack 65 should be used for input/output interrupt control in the CPU 50 and which one of the areas the mask information stored in the register 61 is to be written into. The register 64 stores information indicating whether the right to use the CPU 50 has been transferred between the virtual machine monitor and one of the virtual machines, or whether the input/output interrupt mask information changing instruction has been executed. When the right to use the CPU 50 has been transferred between the virtual machine monitor and one of the virtual machines, the contents of the registers 62 and 63 are read out therefrom by the microprocessor 68, and then written into a local area of the microprocessor 68 provided for a corresponding one of the physical CPUs. When the input/output processor 60 tries to issue an input/output interrupt to the corresponding one of the physical CPUs, the microprocessor 68 reads out the data stored in the corresponding local area thereof, and supplies the address generator 66 with the readout data. Thereby the corresponding mask information is read out from the corresponding area of the register stack 65, and then supplied to the microprocessor 68 through the register 67. After that, the microprocessor 68 determines whether the interrupt signal 53a should be turned ON (made active). When the input/output interrupt changing instruction is executed, the contents of the registers 62 and 63 at the same time the mask information is written into the register 61 are supplied to the address circuit 66 by the control of the microprocessor 68. Then the content of the register 61 is stored in a corresponding area of the register stack 65 which is associated with the logical CPU of the running guest on the physical CPU 50. The register stack 65 stores values of mask information for all the logical CPUs relating to all the virtual machines/monitors. The address circuit 66 supplies the register stack 65 with an address signal. The data register 67 stores data read out from the register stack 65. The microprocessor 68 actually executes the operation of the input/output processor 60, and has a memory in which a microprogram is stored, and the aforementioned local area in which the domain identifier of the virtual machine/monitor which is operating and the logical CPU number thereof. The register 69 stores the domain identifier of the virtual machine which has been declared by the CPU 50 so as to have priority to the virtual machine which is running. The domain identifier is written into the register 69 when the specific instruction MGPRT is executed by the CPU controller 57. Registers each identical to the register 69 are provided individually for the physical CPUs. Even when the same virtual machine is declared by a plural number of physical CPUs so as to have a higher priority, a certain input/output interrupt request is not supplied to more than one of the virtual machines. That is, the microprocessor 68 selects a corresponding one of the virtual machines, and supplies the same with the input/output interrupt request. The present invention is not limited to the specifically described embodiments, and variations and modifications may be made without departing from the scope of the present invention as defined in the appended claims.

Claims: Computing apparatus, for providing a plurality of virtual machines, including: at least one central processing unit (10;50); monitor means (20) connected operatively with the central processing unit(s) for causing the different virtual machines to run on the central processing unit(s) on a time-share basis; input/output means (4;60) operable in response to an input/output event affecting one of the virtual machines to generate an input/output interrupt request designating the virtual machine concerned; and decision means (30, 11a, 11b; 51 to 54) connected to the said input/output means (4;60) for receiving such an input/output interrupt request and having a first state in which the received request is accepted if it designates the virtual machine that is currently being run but is not accepted if it designates any non-running virtual machine; characterised by: priority designating means (20;60) operable during running of one of the virtual machines to produce a specific instruction (MGPRT) designating a selected further one of the virtual machines that is not currently running as having priority over the currently-running machine; and in that the decision means (20;60) are switchable, in response to the said specific instruction, from the said first state to a second state in which the received input/output interrupt request is accepted if it designates the selected further virtual machine, such acceptance being indicated by an interrupt accepting signal (IAS) generated by the decision means; the said monitor means (20) being connected with the said decision means (30, 11a, 11b; 51 to 54) for receiving therefrom the said interrupt accepting signal (IAS) and operative in response to receipt of that signal to cause the central processing unit(s) to commence running of the selected further virtual machine. Apparatus as claimed in claim 1, wherein the said decision means (30, 11a, 11b) comprise: an interrupt pending register (30b), having areas corresponding respectively to the said virtual machines, and operable, in response to receipt of such an input/output interrupt request, to store an identifier, identifying the virtual machine designated in the request, in the area corresponding to that designated virtual machine; a mask register (30a), having areas corresponding respectively to the said virtual machines, each of which areas stores mask information changeable from a closed value, serving to mask the identifier of the corresponding virtual machine, to an open value that does not mask the identifier concerned, the mask information in the area corresponding to the currently-running virtual machine having the said open value and the mask information in the other areas of the mask register having the said closed value when the decision means have the said first state, and the mask information in the area corresponding to the said selected further virtual machine, designated in the said specific instruction, being changed from the said closed value to the said open value when the decision means are changed to the said second state; first logic means (31), connected to the said interrupt pending register (30b) and the said mask register (30a), and operable, for each virtual machine, to determine whether or not the identifier stored in the corresponding area of the interrupt pending register is masked by the mask information stored in the corresponding area of the mask register and, if the identifier for any virtual machine is not so masked, to output the identifier concerned; an inner register (11a) for storing the identifier of the currently-running virtual machine; and second logic means (11b) connected to the said first logic means (31) and the said inner register (11a) for determining whether the identifier output by the said first logic means matches the identifier stored in the said inner register and for generating the said interrupt accepting signal (IAS) when no such match is found. Apparatus as claimed in claim 2, wherein the said inner register (11a) is provided in the, or one of the, central processing unit(s), and the said second logic means (11b) are implemented by the said central processing unit(s). Apparatus as claimed in claim 2 or 3, further comprising: memory means (23) for storing, for each virtual machine, the said mask information to be stored in the corresponding area of the said mask register (30a); and readout means (20) connected to the said memory means and the said mask register, for reading out from the said memory means the mask information for one of the virtual machines and writing the same into the corresponding area of the said mask register. Apparatus as claimed in claim 2, 3 or 4, wherein the said bpen value of the mask information for each virtual channel is identical to the said identifier of the virtual channel concerned. Apparatus as claimed in claim 1, wherein: the said input/output means (60) designate the virtual machine in the generated input/output interrupt request by applying to the decision means an identifier identifying the machine concerned, such an identifier only being applied by the input/output means to the decision means if the machine affected by the input/output event is the currently-running virtual machine or the said selected further virtual machine designated by the said specific instruction as having priority over the said currently-running virtual machine; and the said decision means comprise: a first register (54) for storing the identifier applied to the decision means by the said input/output means; a second register (51) for storing the identifier of the currently-running virtual machine; a third register (53) for storing an input/output interrupt signal generated by the said input/output means (60) in response to such an input/output event; and logic means (52) connected to the said first, second and third registers (54, 51, 53) and activated by the said input/output interrupt signal stored in the said third register (53) to determine whether or not the identifier stored in the said first register (54) matches the identifier stored in the said second register (51) and to generate the said interrupt accepting signal (IAS) if the result of the determination is that the two identifiers do not match. Apparatus as claimed in claim 6, wherein the said logic means (52) comprise an AND gate (52) having a first input terminal for receiving the identifier stored in the said first register (54), and a second input terminal connected for receiving the identifier stored in the said second register (51). Apparatus as claimed in claim 6 or 7, wherein the said first, second and third registers (54, 51, 53) and the said logic means (52) are provided in the said central processing unit(s) (50). Apparatus as claimed in any preceding claim, further comprising storage means (23c, 23d, 23e) for storing data relating to the currently-running virtual machine and for saving that data when the right to use the said central processing unit(s) is transferred to the said selected further virtual machine following acceptance of the input/output interrupt request by the decision means. Apparatus as claimed in any preceding claim, wherein the said virtual machines (#A, #B) run on a plurality of central processing units.

Inventors: OGI YOSHIFUMI, OGI, YOSHIFUMI
Applicants: FUJITSU LTD, FUJITSU LIMITED
Application year: 1990
Main classification: G06F13
IPC codes: G06F9, G06F13