Migration of virtual machines with shared memory
AssigneeRed Hat Israel, Ltd.
InventorMichael Tsirkin
Life of this patent
Estimating the term…
Abstract
A system and method of migration of a VM sharing a memory region with another VM includes identifying, by an identification module, a plurality of VMs running on a source host machine, where the plurality of VMs includes first and second VMs that share a first shared memory region coupled to the source host machine; identifying, by a target module, a host machine as a target for the second VM; allocating, by an allocation module, a second shared memory region coupled to the target host machine for the second VM; stopping, by a migration module, execution of the second VM on the source host machine; and migrating, by the migration module, the second VM to the target host machine.
Claims20
A system including one or more processors for migration of a first virtual machine and second virtual machine that share a memory region, the system comprising:
- an identification module, executed by the one or more processors, to identify a plurality of virtual machines running on a source host machine, wherein the plurality of virtual machines includes a first virtual machine and a second virtual machine that share a first shared memory region coupled to the source host machine;
- and
- a migration module that:
- (i) migrates the second virtual machine to a target host machine, while the first virtual machine continues to operate, and (ii) subsequently migrates the first virtual machine to the target host machine, while the second virtual machine operates, wherein the migration module migrates the second virtual machine by sending content stored in the first shared memory region to the target host machine for storage in a second shared memory region, and the first shared memory region is different from the second shared memory region.
A method of migrating a virtual machine sharing a memory region with another virtual machine, the method comprising:
- identifying a plurality of virtual machines running on a source host machine, the plurality of virtual machines including a first virtual machine and a second virtual machine that share a memory region coupled to the source host machine;
- migrating the second virtual machine to a target host machine, while the first virtual machine continues to operate, wherein migrating the second virtual machine includes sending content stored in the first shared memory region to the target host machine for storage in a second shared memory region, and the first shared memory region is different from the second shared memory region;
- and
- migrating the first virtual machine to the target host machine after migrating the second virtual machine, while the second virtual machine continues to operate.
A non-transitory machine-readable medium comprising a plurality of machine-readable instructions that when executed by one or more processors are adapted to cause the one or more processors to perform a method comprising:
- identifying a plurality of virtual machines running on a source host machine, the plurality of virtual machines including a first virtual machine and a second virtual machine that share a memory region coupled to the source host machine;
- migrating the second virtual machine to a target host machine, while the first virtual machine continues to operate, wherein migrating the second virtual machine includes sending content stored in the first shared memory region to the target host machine for storage in a second shared memory region, and the first shared memory region is different from the second shared memory region;
- and
- migrating the first virtual machine to the target host machine after migrating the second virtual machine, while the second virtual machine continues to operate.
Dependencies are inferred from the claim text.