摘要:
The present invention provides a virtual machine system and a method for sharing a graphics card amongst virtual machines. A VMM of the virtual machine system is provided with a resource-converting module, which converts data exchanged between a graphics card drive module of a GOS in the foreground and the graphics card based on a resource-converting table, and also intercepts accesses to the real graphics card by a GOS in the background and then responds to its operations on the graphics card. The VMM is further provided with a switching module, which alters a state of a VM based on a command for switching the VM, saves a graphics card state before the VM is switched to the background and restores the stored graphics card state to the graphics card when the VM is switched back to the foreground. Further, the GOSs each comprise a graphics card drive module corresponding to the real graphics card for accessing the real graphics card. The systems and the methods according to the present invention enable the GOSs to access the real graphics card, and also enable switching among a plurality of virtual machines.
摘要:
The present invention provides a virtual machine system and a method of accessing a graphics card. The virtual machine system includes a VMM, an SOS and at least one GOS, and further includes a resource converting module for performing IO address converting on graphics card framebuffer accessing data from GOS(s) or mapping MMIO(s) to physical MMIO(s) of a graphics card based on a resource converting table, and sending the processed data to the graphics card; and a framebuffer allocating module for dividing a framebuffer resource of the graphics card into multiple blocks and allocating them respectively to corresponding GOS(s). The resource converting table(s) records correspondences between a resource allocation for the graphics card by SOS and a resource allocation for the graphics card by GOS(s). The framebuffer MMIO resource(s) allocated to the graphics card by GOS(s) is/are the framebuffer allocated to GOS(s) by the framebuffer allocating module.
摘要:
The present invention provides a virtual machine system and a method of accessing a graphics card by the same, wherein, the virtual machine system includes a Virtual Machine Monitor (VMM), a Service Operating System (SOS) and at least one Guest Operating System (GOS), and further includes a resource converting module for performing IO address converting on graphics card framebuffer accessing data from the GOS(s) or mapping MMIO(s) to physical MMIO(s) of a graphics card based on a resource converting table or resource converting tables, and sending the processed data to the graphics card; and a framebuffer allocating module for dividing a framebuffer resource of the graphics card into multiple blocks and allocating them respectively to the corresponding GOS(s). The resource converting table(s) records correspondences between a resource allocation for the graphics card by the SOS and a resource allocation or resource allocations for the graphics card by the GOS(s). The framebuffer MMIO resource(s) allocated to the graphics card by the GOS(s) is/are the framebuffer allocated to the GOS(s) by the framebuffer allocating module. The virtual machine system and the method according to the present invention are capable of accessing the real graphics card through the resource converting table(s), and also solve the problem of display confusion when multiple GOSs commonly access the real graphics card while being able to switch display.
摘要:
The present invention provides a method for sharing a graphics card among multiple Operation Systems (OSs) and a computer system. The method comprises: detecting a first GOS to be displayed, the first GOS being one of at least two GOSs; calling a correspondence table to determine a first display control register bank corresponding to the first GOS, the first display control register bank including display mode parameters therein; controlling the first display control register bank to connect to a display output port; and displaying the first GOS based on the display mode parameters. According to the inventive method and computer system, it is possible to achieve sharing of the graphics card among the multiple OSs and quick display of the GOS to be displayed, without simulating registers of the graphics card.
摘要:
The present invention provides a control method for switching display between a plurality of OSs as well as a computer system. The method comprises: detecting that the currently displayed guest operating system (GOS) is required to be switched from a first GOS to a second GOS; determining whether the first GOS satisfies a preset switching condition, and switching the currently displayed GOS to the second GOS if the preset switching condition is satisfied, and otherwise, prohibiting the switching from the currently displayed GOS. With the method and the computer system, it is possible to avoid picture distortion or blurring or system collapse in switching display between a plurality of OSs.
摘要:
The present invention provides a method and a computer system for sharing a graphics card among multiple Operation Systems (OSs). The method includes: detecting a first GOS to be displayed, the first GOS being a primary GOS or one of at least one secondary GOS; determining the kind of the first GOS, so that different display control register bank(s) and graphics card memory resources are allocated to the first GOS depending on whether it is a primary GOS or a secondary GOS; controlling the display control register bank(s) allocated to the first GOS to connect to a display output port; obtaining display contents based on the graphics card memory resources allocated to the first GOS; and displaying the display contents based on display mode parameters in the display control register bank(s) connected to the display output port. According to the present invention, it is possible to share the graphics card among the multiple OSs without modifying the drivers of the primary GOS.
摘要:
The present invention provides a method for sharing a graphics card among multiple Operation Systems (OSs) and a computer system. The method comprises: detecting a first GOS to be displayed, the first GOS being one of at least two GOSs; calling a correspondence table to determine a first display control register bank corresponding to the first GOS, the first display control register bank including display mode parameters therein; controlling the first display control register bank to connect to a display output port; and displaying the first GOS based on the display mode parameters. According to the inventive method and computer system, it is possible to achieve sharing of the graphics card among the multiple OSs and quick display of the GOS to be displayed, without simulating registers of the graphics card.
摘要:
The present invention provides a method and a computer system for sharing a graphics card among multiple Operation Systems (OSs). The method includes: detecting a first GOS to be displayed, the first GOS being a primary GOS or one of at least one secondary GOS; determining the kind of the first GOS, so that different display control register bank(s) and graphics card memory resources are allocated to the first GOS depending on whether it is a primary GOS or a secondary GOS; controlling the display control register bank(s) allocated to the first GOS to connect to a display output port; obtaining display contents based on the graphics card memory resources allocated to the first GOS; and displaying the display contents based on display mode parameters in the display control register bank(s) connected to the display output port. According to the present invention, it is possible to share the graphics card among the multiple OSs without modifying the drivers of the primary GOS.
摘要:
The present invention provides a control method for switching display between a plurality of OSs as well as a computer system. The method comprises: detecting that the currently displayed guest operating system (GOS) is required to be switched from a first GOS to a second GOS; determining whether the first GOS satisfies a preset switching condition, and switching the currently displayed GOS to the second GOS if the preset switching condition is satisfied, and otherwise, prohibiting the switching from the currently displayed GOS. With the method and the computer system, it is possible to avoid picture distortion or blurring or system collapse in switching display between a plurality of OSs.
摘要:
The present invention provides a method for restoring a client operating system-based system, a virtual machine manager and a virtual machine manager system using the same. The method comprises steps of: receiving a restoration instruction for the client operating system and suspending running the client operating system after receiving the restoration instruction, the restoration instruction including a preset restoration point; determining a first memory snapshot and a first incremental file corresponding to the restoration point, the first memory snapshot being a memory snapshot for the client operating system, which is created when setting the restoration point, and the first incremental file being an incremental file, which is mapped as the first hard disk when setting the restoration point; re-mapping the first incremental file as the first hard disk; and performing a snapshot recovery based on the first memory snapshot. With the present invention, system restoration may be performed rapidly.