Method and Apparatus for Resuming Running of Application, and Computer
AssigneeHuawei Technologies Co., Ltd.
InventorsWei Xiao, Yangyang Jiang, Zichang Lin
Life of this patent
Estimating the term…
Abstract
A method and an apparatus for resuming running of an application include after running of an application is suspended, the virtual machine monitor stores a context of the application such that when a resumption request of the application is detected, the context of the application is directly restored by the virtual machine monitor.
Claims20
A method applied to a computer, wherein the method comprises:
- obtaining, by a guest operating system of the computer, an exit request;
- suspending, by the guest operating system in response to the exit request, an application to cause an exit to a virtual machine monitor of the computer, wherein the application runs on the guest operating system, and wherein the guest operating system runs on the virtual machine monitor;
- storing, by the virtual machine monitor, resumption information of the application, wherein the resumption information comprises a first context of the application or a first storage address of the first context;
- obtaining, by the virtual machine monitor, a resumption request of the application;
- and
- restoring, by the virtual machine monitor in response to the resumption request, the first context based on the resumption information.
A computer comprising:
- a hardware layer;
- and
- a virtual machine monitor that runs on the hardware layer and configured to:
- run a guest operating system;
- obtain, using the guest operating system, an exit request;
- run an application on the guest operating system, wherein the application comprises resumption information, and wherein the resumption information comprises a first context of the application or a first storage address of the first context;
- suspend, using the guest operating system in response to the exit request, the application to cause an exit to the virtual machine monitor;
- store the resumption information;
- obtain a resumption request of the application;
- and
- restore, in response to the resumption request, the first context based on the resumption information.
A computer comprising:
- a memory configured to store a computer program;
- and
- a processor coupled to the memory, wherein the computer program causes the processor to be configured to:
- obtain an exit request;
- suspend, using a guest operating system in response to the exit request, running of an application and cause an exit to a virtual machine monitor;
- store, using the virtual machine monitor, resumption information of the application, wherein the resumption information comprises a first context of the application or a first storage address of the first context;
- obtain a resumption request of the application;
- and
- restore, using the virtual machine monitor in response to the resumption request, the first context based on the resumption information.
A computer program product comprising computer-executable instructions stored on a non-transitory computer-readable medium that, when executed by a processor, cause an apparatus to:
- obtain, using a guest operating system of the apparatus, an exit request;
- suspend, using the guest operating system in response to the exit request, an application that runs on the guest operating system and cause an exit to a virtual machine monitor of the apparatus, wherein the guest operating system runs on the virtual machine monitor;
- store, using the virtual machine monitor, resumption information of the application, wherein the resumption information comprises a context of the application or a storage address of the context;
- obtain, using the virtual machine monitor, a resumption request of the application;
- and
- restore, using the virtual machine monitor in response to the resumption request, the context based on the resumption information.
Dependencies are inferred from the claim text.