Virtual machine switching method, data storage method, device, processor, and storage medium
AssigneeCloud Intelleigence Assets Holding (Singapore) Private Limited
InventorsZhenning WANG, Ben LUO
Life of this patent
Estimating the term…
Abstract
Embodiments of this disclosure provide a virtual machine switching method, a data storage method, a device, a processor, and a storage medium. In the embodiments of the present disclosure, a dedicated cache dedicated to caching status data of virtual machines is provided in a cache of a processor. On the basis of the dedicated cache, when an execution flow of the processor is switched from a host to a target virtual machine, the state data of the target virtual machine can be read from the dedicated cache of the processor.
Claims20
A virtual machine switching method, comprising:
- obtaining status data of a to-be-run target virtual machine from a dedicated cache of a processor in response to a virtual machine scheduling event, wherein the dedicated cache is a partial cache of the processor, and is configured to store status data of a virtual machine;
- switching an execution flow of the processor from a host of the target virtual machine to the target virtual machine;
- and
- running the target virtual machine based on the status data of the target virtual machine.
A data storage method, wherein a processor of a host comprises a dedicated cache, wherein the dedicated cache is configured to store status data of a virtual machine;
- and the method comprises:
- determining a to-be-cached target virtual machine from the host;
- obtaining status data of the target virtual machine from a main memory of the host;
- and
- storing the status data of the target virtual machine into the dedicated cache, in a way that the status data stored in the dedicated cache is available to switch an execution flow of the processor to the target virtual machine.
A computing device, wherein one or more virtual machines are deployed on the computing device;
- the computing device comprises a processor, the processor comprises a control unit, a computing unit, and a cache;
- and the computing device further comprises a target memory, configured to store a computer program;
- the cache comprises a dedicated cache and a shared cache;
- the dedicated cache is configured to store status data of the virtual machines;
- and the shared cache is configured to execute other data required for executing the computer program than the status data of the virtual machines;
- and
- the control unit is coupled to the computing unit, the cache, and the target memory, and the control unit is configured to:
- execute the computer program;
- write the other data into the shared cache when executing the computer program;
- and perform operations comprising:
- obtaining status data of a to-be-run target virtual machine from the dedicated cache of the processor in response to a virtual machine scheduling event;
- switching an execution flow of the processor from a host of the target virtual machine to the target virtual machine;
- and
- running the target virtual machine based on the status data of the target virtual machine.
Dependencies are inferred from the claim text.