发明名称 Virtual machine migration with swap pages
摘要 Migration of a virtual machine to a new host is coordinated while data that is mapped into virtual (swap) memory of a source instance of the virtual machine (or guest) is properly handled. Sharing rights for one or more swap devices can be modified to facilitate the use of the swap devices by a new host and a corresponding (target) instance of virtual machine running on the new host.
申请公布号 US9183035(B2) 申请公布日期 2015.11.10
申请号 US201314075264 申请日期 2013.11.08
申请人 International Business Machines Corporation 发明人 Bacher Utz;Buendgen Reinhard;Nunez Mencias Angel
分类号 G06F9/455;G06F12/10 主分类号 G06F9/455
代理机构 代理人 Wilhelm Richard A.
主权项 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; using, by the target hypervisor, the one or more swap slots to populate swapped out virtual memory for the target instance of virtual machine; and carrying out a cleanup of swap slots by: copying, by a background process of the target hypervisor, a particular swapped slot from a shared swap device to another swap device owned by the target hypervisor;granting the particular swap slot to the source hypervisor;determining, by a particular hypervisor, that all swap slots stored on a particular shared swap device are assigned to the particular hypervisor; andrequesting, by the particular hypervisor, that a resource manager remove the particular shared swap device from a sharing table that contains information identifying shared swap devices and assignment of swap slots in said shared swap devices to hypervisors.
地址 Armonk NY US