Migrating a VM in response to an access attempt by the VM to a shared memory page that has been migrated
First Claim
Patent Images
1. A method comprising:
- determining, by a processing device executing a hypervisor on a source host, that a first virtual machine of a group of virtual machines on the source host has been migrated to a destination host;
responsive to determining that the first virtual machine shares one or more pages of a memory space on the source host with a second virtual machine of the group of virtual machines on the source host, monitoring, by the hypervisor of the source host, shared memory space accesses of the second virtual machine;
receiving, by the hypervisor of the source host, a request from the second virtual machine on the source host to access a first memory page of the one or more pages of the shared memory space on the source host; and
responsive to determining that the first memory page of the one or more pages of the shared memory space on the source host has been migrated to the destination host,stopping, by the hypervisor of the source host, execution of the second virtual machine on the source host, andmigrating, by the hypervisor of the source host, the second virtual machine to the destination host.
1 Assignment
0 Petitions
Accused Products
Abstract
A hypervisor of a source host receives a request to migrate a group of virtual machines from the source host to a destination host. The hypervisor of the source host determines that a first virtual machine being migrated to the destination host shares a memory space on the source host with a second virtual machine on the source host. Upon receiving a request from the second virtual machine on the source host to access a first memory page of the shared memory space on the source host that has been migrated to the destination host, the hypervisor of the source host initiates migration of the second virtual machine to the destination host.
-
Citations
20 Claims
-
1. A method comprising:
-
determining, by a processing device executing a hypervisor on a source host, that a first virtual machine of a group of virtual machines on the source host has been migrated to a destination host; responsive to determining that the first virtual machine shares one or more pages of a memory space on the source host with a second virtual machine of the group of virtual machines on the source host, monitoring, by the hypervisor of the source host, shared memory space accesses of the second virtual machine; receiving, by the hypervisor of the source host, a request from the second virtual machine on the source host to access a first memory page of the one or more pages of the shared memory space on the source host; and responsive to determining that the first memory page of the one or more pages of the shared memory space on the source host has been migrated to the destination host, stopping, by the hypervisor of the source host, execution of the second virtual machine on the source host, and migrating, by the hypervisor of the source host, the second virtual machine to the destination host. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A computing apparatus comprising:
-
a memory to store instructions; and a processing device, operatively coupled to the memory, to execute the instructions, wherein the processing device is to; determine, by the processing device executing a hypervisor on a source host, that a first virtual machine of a group of virtual machines on the source host has been migrated to a destination host; responsive to determining that the first virtual machine shares one or more pages of a shared memory space on the source host with a second virtual machine of the group of virtual machines on the source host, monitor, by the hypervisor of the source host, shared memory space accesses of the second virtual machine; receive, by the hypervisor of the source host, a request from the second virtual machine on the source host to access a first memory page of the one or more pages of the shared memory space on the source host; and responsive to determining that the first memory page of the one or more pages of the shared memory space on the source host has been migrated to the destination host, stop, by the hypervisor of the source host, execution of the second virtual machine on the source host, and migrate, by the hypervisor of the source host, the second virtual machine to the destination host. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A non-transitory computer readable storage medium, having instructions stored therein, which when executed by a processing device of a computer system, cause the processing device to:
-
determine, by the processing device executing a hypervisor on a source host, that a first virtual machine of a group of virtual machines on the source host has been migrated to a destination host; responsive to determining that the first virtual machine shares one or more pages of a shared memory space on the source host with a second virtual machine of the group of virtual machines on the source host, monitor, by the hypervisor of the source host, shared memory space accesses of the second virtual machine; receive, by the hypervisor of the source host, a request from the second virtual machine on the source host to access a first memory page of the one or more pages of the shared memory space on the source host; and responsive to determining that the first memory page of the one or more pages of the shared memory space on the source host has been migrated to the destination host, stop, by the hypervisor of the source host, execution of the second virtual machine on the source host, and migrate, by the hypervisor of the source host, the second virtual machine to the destination host. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification