Efficient memory swap for virtual machines
AssigneeRed Hat, Inc.
InventorsMichael Tsirkin, Andrea Arcangeli
Life of this patent
Estimating the term…
Abstract
Systems and methods for enhancing efficient memory swap for virtual machines. An example method may comprise: receiving, by a hypervisor running on a host computer system, a request, from a virtual machine managed by the hypervisor, to write to a virtual disk a content of a memory page identified by a guest physical address (GPA); detecting, by the hypervisor, that the content of the memory page is stored on a storage device; storing, on the virtual disk, an identifier of a location of the content of the memory page on the storage device; and un-mapping the GPA from the storage device.
Claims20
A method comprising:
- receiving, by a hypervisor running on a host computer system, a request, from a virtual machine managed by the hypervisor, to write to a virtual disk a content of a memory page identified by a guest physical address (GPA);
- detecting, by the hypervisor, that the content of the memory page is stored on a storage device;
- storing, on the virtual disk, an identifier of a location of the content of the memory page on the storage device;
- and
- un-mapping the GPA from the storage device.
A system comprising:
- a memory;
- a processing device executing a hypervisor and operatively coupled to the memory, the processing device configured to:
- detect, by a hypervisor running on a host computer system, that a content of the memory page has been stored in a host disk before receiving a request, from a virtual machine managed by the hypervisor, to swap to a virtual disk the memory page identified by a guest physical address (GPA);
- store, on the virtual disk, an identifier of a location of the content of the memory page on the host disk;
- and
- un-map the GPA from the host disk.
A non-transitory machine-readable storage medium storing instructions which, when executed, cause a processing device executing a hypervisor to perform operations comprising:
- swapping, by a hypervisor running on a host computer system, to a storage device a memory page;
- receiving, by the hypervisor, a request, from a virtual machine managed by the hypervisor, to swap to a virtual disk the memory page identified by a guest physical address (GPA), wherein swapping is performed prior to receiving the request;
- storing, on the virtual disk, an identifier of a location of a content of the memory page on the storage device;
- and
- un-mapping the memory page from the GPA.
Dependencies are inferred from the claim text.