主权项 |
1. A method for migrating a virtual machine between a source hypervisor and a target hypervisor that each support memory over commitment using one or more swap devices, the method comprising:
receiving, by the source hypervisor, a migration request that specifies a source instance of the virtual machine on the source hypervisor and the target hypervisor; identifying, by the source hypervisor, at least one swap device that is used by the source instance of the virtual machine and that is physically accessible by the target hypervisor; identifying, by the source hypervisor and for each identified swap device, one or more source swap slots that store at least one swapped out page of the source instance of the virtual machine; halting, by the source hypervisor, processing by the source instance of the virtual machine; granting, to the target hypervisor, access to the one or more source swap slots identified by the source hypervisor; associating, by the target hypervisor, a target instance of the virtual machine with a swap table that references the one or more swap slots granted to the target hypervisor; and using, by the target hypervisor, the one or more swap slots to populate swapped out virtual memory for the target instance of virtual machine. |