System For Live Migration of Virtual Machines With Assigned Peripheral Devices
AssigneeGoogle Inc.
InventorsBenjamin Charles Serebrin, Grigory Makarevich, Eric Northup
Life of this patent
Estimating the term…
Abstract
Hardware transactions or other techniques, such as custom PCIe handling devices, are used to atomically move pages from one hoses memory to another hoses memory. The hosts are connected by one or two non-transparent bridges (NTBs), which make each host's memory and devices available to the other, while allowing each host to reboot independently.
Claims20
A method of live migration of a guest virtual machine with one or more attached peripheral devices, the method comprising:
- coupling a source host to a target host through at least one non-transparent bridge (NTB);
- identifying a page of memory to be copied from the source host to the target host, the page of memory corresponding to the guest;
- changing a mapping of the identified page to identify a memory address of the target host, the memory address of the target host being aliased in the source host and not visible to the one or more attached peripheral devices;
- copying data for the identified page from the source host to the target host;
- invalidating page table entries of the source host corresponding to the data that was copied;
- and
- providing access to the copied pages on the target host to the one or more attached peripheral devices.
A system for live migration of a guest virtual machine with one or more attached peripheral devices, the system comprising:
- a source host physical machine including one or more memories and one or more processors, the one or more memories supporting the guest virtual machine to be migrated, the host physical machine being coupled to a target host through at least one non-transparent bridge (NTB);
- wherein the one or more processors of the source host are configured to:
- identify a page of memory to be copied from the source host to the target host, the page of memory corresponding to the guest;
- change a mapping of the identified page to identify a memory address of the target host, the memory address of the target host being aliased in the source host and not visible to the one or more attached peripheral devices;
- copy data for the identified page from the source host to the target host;
- invalidate page table entries of the source host corresponding to the data that was copied;
- and
- provide access to the copied pages on the target host to the one or more attached peripheral devices.
Dependencies are inferred from the claim text.