Virtual machine migration with swap pages

US9183035B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-9183035-B2
Application numberUS-201314075264-A
CountryUS
Kind codeB2
Filing dateNov 8, 2013
Priority dateNov 8, 2013
Publication dateNov 10, 2015
Grant dateNov 10, 2015

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

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.

First claim

Opening claim text (preview).

What is claimed is: 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; and requesting, 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. 2. The method of claim 1 , further comprising maintaining, by the resource manager, the sharing table that contains information identifying shared swap devices and assignment of swap slots in said shared swap devices to hypervisors. 3. The method of claim 2 , further comprising identifying a plurality of swap devices and wherein granting, to the target hypervisor, access to the one or more source swap slots further comprises: declaring the plurality of swap devices as shared devices; adding, by the resource manager, the plurality of swap devices to the sharing table; and assigning, in the sharing table, swap slots of the plurality of swap devices to the source hypervisor. 4. The method of claim 3 wherein granting, to the target hypervisor, access to the one or more source swap slots further comprises assigning, by the resource manager and in the sharing table, the one or more source swap slots to the target hypervisor. 5. The method of claim 4 wherein using one or more swap slots on a shared swap device by the target hypervisor comprises requesting information on swap slots assigned to the target hypervisor from the resource manager. 6. The method of claim 5 , further comprising: determining, by a particular hypervisor, access rights to a particular swap slot on a particular shared swap device based on information requested from the sharing table of the resource manager; and limiting access to the particular shared swap slot in response to determined access rights. 7. The method of claim 3 , wherein accesses to swap slots on shared swap devices are routed through the resource manager and accesses to the swap slots are enabled by the resource manager based upon the sharing table. 8. The method of claim 1 , further comprising: copying, by the target hypervisor, a data structure defining a swapped out page of the source instance of the virtual machine by a source swap device address and a source swap slot address; and swapping the swapped out page into memory, by the target hypervisor and using the source swap device address and the source swap slot address.

Assignees

Inventors

Classifications

  • Page size control · CPC title

  • using page tables, e.g. page table structures · CPC title

  • Distribution of virtual machine instances; Migration and load balancing · CPC title

  • Hypervisor-specific management and integration aspects · CPC title

  • in hierarchically structured memory systems, e.g. virtual memory systems · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US9183035B2 cover?
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.
Who is the assignee on this patent?
IBM
What technology area does this patent fall under?
Primary CPC classification G06F9/45558. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Nov 10 2015 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 1 related publication on this page (citations in our corpus or others sharing the same primary CPC).