IP Library Granted Patent US 9,047,113
Granted Patent B2
US 9,047,113 · App. 13/298,904 · Granted Jun 2, 2015

Virtual machine migrating system and method

Inventors: Noboru Iwamatsu (Kawasaki, JP); Naoki Nishiguchi (Kawasaki, JP)
Assignee: FUJITSU LIMITED
G06F9/45558G06F2009/4557G06F2009/45583
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,047,113
App. No.
13/298,904
Granted
Jun 2, 2015
Kind
B2
Abstract

A virtual machine migration method conducted in a virtual machine migration system that includes a virtual machine of a migration source computer and a migrating target computer. The migration source computer conducts processing to send host physical address information of an MMIO region corresponding to a device used by the virtual machine through directed I/O to a migration target computer, and to cause a connection target of the device to be switched to the migration target computer by a switching device that connects the device to the computers. The migration target computer conducts processing to allocate an MMIO region corresponding to the host physical address information sent by the migration source computer, to the device connected to the computers by the switching device.

Claims (68)

1. A virtual machine migration system comprising:

a virtual machine running on a migration source computer and to be migrated to a migration target computer;

the migration source computer comprising:

a first memory configured to store a first computer executable program; and

a first processor coupled to the first memory and configured to

send host physical address information including a starting address of an MMIO region corresponding to a device used by the virtual machine through directed I/O to the migration target computer, and

cause a connection target of the device to be switched to the migration target computer by a switching device; and

the migration target computer comprising:

a second memory configured to store a second computer executable program; and

a second processor coupled to the second memory and configured to

allocate an MMIO region corresponding to the host physical address information sent by the migration source computer, to the device connected to the migration target computer by the switching device such that the MMIO region that is the same as the MMIO region in the migration source computer is allocated in the migration target computer,

wherein the allocating of the MMIO region causes the MMIO region to be migrated to a region that does not overlap the region corresponding to the host physical address information when an MMIO region having a portion that overlaps the region corresponding to the host physical address information sent by the migration source computer is being used in the migration target computer.

2. The virtual machine migration system according to claim 1 , the first processor being further configured to

store information indicating a need to match a guest physical address and a host physical address related to an MMIO region for each device; wherein

in the allocating, to the device, the MMIO region corresponding to the host physical address information sent by the migration source computer when the information is stored and corresponding to the device connected to migration source computer and the migration target computer by the switching device indicates that the host physical address and the guest physical address need to match.

3. The virtual machine migration system according to claim 1 , wherein:

the allocating records the host physical address information sent by the migration source computer related to a first virtual machine among multiple virtual machines subject to migration, and, when a region corresponding to the host physical address information sent by the migration source computer or by another migration source computer related to a second virtual machine includes a portion that overlaps a region corresponding to the host physical address information that is recorded, does not record the host physical address information related to the second virtual machine, and allocates the MMIO region corresponding to the host physical address information recorded.

4. The virtual machine migration system of claim 1 , wherein

the switching device is a PCI switch including a third memory configured to store a third computer executable program and a third processor coupled to the third memory,

the third processor is configured to change connection of the device from the migration source computer to the migration target computer, and the device is a PCI device.

5. A virtual machine migration system comprising:

a virtual machine running on a migration source computer and to be migrated to a migration target computer;

the migration source computer comprising:

a first memory configured to store a first computer executable program; and

a first processor coupled to the first memory and configured to

send host physical address information including a starting address of an MMIO region corresponding to a device used by the virtual machine through directed I/O to the migration target computer, and

cause a connection target of the device to be switched to the migration target computer by a switching device; and

the migration target computer comprising:

a second memory configured to store a second computer executable program; and

a second processor coupled to the second memory and configured to

allocate an MMIO region corresponding to the host physical address information sent by the migration source computer, to the device connected to the migration target computer by the switching device such that the MMIO region that is the same as the MMIO region in the migration source computer is allocated in the migration target computer,

wherein the allocating of the MMIO region causes the virtual machine using the device corresponding to the MMIO region in the migration target computer to be migrated to another computer when an MMIO region having a portion that overlaps the region corresponding to the host physical address information sent by the migration source computer is being used in the migration target computer.

6. The virtual machine migration system according to claim 5 , wherein:

the allocating causes the virtual machine using the device corresponding to the MMIO region in the migration target computer to be shut down when an MMIO region having a portion that overlaps the region corresponding to the host physical address information sent by the migration source computer is being used in the migration target computer.

7. The virtual machine migration system according to claim 6 , the first processor being further configured to store a priority level of each virtual machine, wherein

the allocating causes the second virtual machine having a priority level lower than the priority level of a virtual machine subject to migration, to be migrated or shut down when an MMIO region having a portion that overlaps the region corresponding to the host physical address information sent by the migration source computer is being used in the migration target computer.

8. A non-transitory computer-readable storage medium storing a virtual machine migration program that causes a computer to execute operations to migrate a virtual machine, the operations comprising:

sending, when the computer is a migration source, host physical address information including a starting address of an MMIO region corresponding to a device used by the virtual machine through directed I/O to a migration target computer, and causing a connection target of the device to be switched to the migration target computer by a switching device; and

allocating, when the computer is a migration target, an MMIO region corresponding to the host physical address information sent by the migration source computer, to the device connected to the migration target computer by the switching device such that the MMIO region that is the same as the MMIO region in the migration source computer is allocated in the migration target computer,

wherein the allocating causes the MMIO region to be migrated to a region that does not overlap the region corresponding to the host physical address information when an MMIO region having a portion that overlaps the region corresponding to the host physical address information sent by the migration source computer is being used in the computers.

9. The computer-readable storage medium according to claim 8 , wherein:

the allocating allocates, to the device, the MMIO region corresponding to the host physical address information sent by the migration source computer when information related to a device connected to the computers by the switching device, is stored and that stores information indicating the need to match the host physical address and the guest physical address in relation to the MMIO region for each device.

10. The computer-readable storage medium according to claim 8 wherein:

the allocating records the host physical address information sent by the migration source computer related to a first virtual machine among multiple virtual machines subject to migration, and, when a region corresponding to the host physical address information sent by the migration source computer or by another migration source computer related to a second virtual machine includes a portion that overlaps a region corresponding to the host physical address information recorded, does not record the host physical address information related to the second virtual machine, and allocates the MMIO region corresponding to the host physical address information recorded.

11. A non-transitory computer-readable storage medium storing a virtual machine migration program that causes a computer to execute operations to migrate a virtual machine, the operations comprising:

sending, when the computer is a migration source, host physical address information including a starting address of an MMIO region corresponding to a device used by the virtual machine through directed I/O to a migration target computer, and causing a connection target of the device to be switched to the migration target computer by a switching device; and

allocating, when the computer is a migration target, an MMIO region corresponding to the host physical address information sent by the migration source computer, to the device connected to the migration target computer by the switching device such that the MMIO region that is the same as the MMIO region in the migration source computer is allocated in the migration target computer,

wherein the allocating causes the virtual machine using the device corresponding to the MMIO region in the computers to be migrated to another computer when an MMIO region having a portion that overlaps the region corresponding to the host physical address information sent by the migration source computer is being used in the computers.

12. The computer-readable storage medium according to claim 11 , wherein:

the allocating causes the virtual machine using the device corresponding to the MMIO region in the computers to be shut down when an MMIO region having a portion that overlaps the region corresponding to the host physical address information sent by the migration source computer is being used in the computers.

13. The computer-readable storage medium according to claim 12 , wherein:

the allocating causes the second virtual machine to be migrated or shut down when a priority level, which is recorded, of the second virtual machine using the device corresponding to the MMIO region in the computers is lower than a priority level, which is recorded, of the virtual machine subject to migration, when an MMIO region having a portion that overlaps the region corresponding to the host physical address information sent by the migration source computer is being used in the computers.

14. A virtual machine migration method conducted in a virtual machine migration system that includes a virtual machine of a migration source computer and a migrating target computer, the method comprising:

sending, by the migration source computer, host physical address information including a starting address of an MMIO region corresponding to a device used by the virtual machine through directed I/O to a migration target computer, and causing a connection target of the device to be switched to the migration target computer by a switching device; and

allocating, by the migration target computer, an MMIO region corresponding to the host physical address information sent by the migration source computer, to the device connected to the migration target computer by the switching device such that the MMIO region that is the same as the MMIO region in the migration source computer is allocated in the migration target computer,

wherein the allocating causes the MMIO region to be migrated to a region that does not overlap the region corresponding to the host physical address information when an MMIO region having a portion that overlaps the region corresponding to the host physical address information sent by the migration source computer is being used in the migration target computer.

15. The virtual machine migration method according to claim 14 , wherein

the allocating allocates, to the device, the MMIO region corresponding to the host physical address information sent by the migration source computer when information related to a device connected to the computers by the switching device, is stored and that stores information indicating the need to match the host physical address and the guest physical address in relation to the MMIO region for each device.

16. The virtual machine migration method according to claim 14 , wherein

the allocating records the host physical address information sent by the migration source computer related to a first virtual machine among multiple virtual machines subject to migration, and, when a region corresponding to the host physical address information sent by the migration source computer or by another migration source computer related to a second virtual machine includes a portion that overlaps a region corresponding to the host physical address information recorded, does not record the host physical address information related to the second virtual machine, and allocates the MMIO region corresponding to the host physical address information recorded.

17. A virtual machine migration method conducted in a virtual machine migration system that includes a virtual machine of a migration source computer and a migrating target computer, the method comprising:

sending, by the migration source computer, host physical address information including a starting address of an MMIO region corresponding to a device used by the virtual machine through directed I/O to a migration target computer, and causing a connection target of the device to be switched to the migration target computer by a switching device; and

allocating, by the migration target computer, an MMIO region corresponding to the host physical address information sent by the migration source computer, to the device connected to the migration target computer by the switching device such that the MMIO region that is the same as the MMIO region in the migration source computer is allocated in the migration target computer,

wherein the allocating causes the virtual machine using the device corresponding to the MMIO region in the migration target computer to be migrated to another computer when an MMIO region having a portion that overlaps the region corresponding to the host physical address information sent by the migration source computer is being used in the migration target computer.

18. The virtual machine migration method according to claim 17 , wherein

the allocating causes the virtual machine using the device corresponding to the MMIO region in the migration target computer to be shut down when an MMIO region having a portion that overlaps the region corresponding to the host physical address information sent by the migration source computer is being used in the migration target computer.

19. The virtual machine migration method according to claim 18 , wherein

the allocating causes the second virtual machine to be migrated or shut down when a priority level, which is recorded, of the second virtual machine using the device corresponding to the MMIO region in the computer is lower than a priority level, which is recorded, of the virtual machine subject to migration, when an MMIO region having a portion that overlaps the region corresponding to the host physical address information sent by the migration source computer is being used in the computer.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 13, 2011
From: IWAMATSU, NOBORU; NISHIGUCHI, NAOKI
To: FUJITSU LIMITED
Reel/Frame 027372/0478 →
Priority Claims (1)
JP 2010-264339 · Nov 26, 2010 · national
Continuity (1)
Related Publication 20120137292A1 · May 31, 2012