# US 2021/0286686 A1 · Memory error handling during and/or immediately after a virtual machine migration

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0286686 A1
- Document ID: US20210286686A1
- Status: Published application
- Kind: A1
- Application number: 16/816,653
- Filed: 2020-03-12
- Published: 2021-09-16
- Earliest claimed: 2020-03-12
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Aravinda Prasad
- Web page: https://patentgrep.com/patent/US20210286686A1

## CPC

- G06F 11/1469: {Backup restoration techniques}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 11/203: {using migration}
- G06F 11/2035: {without idle spare hardware}
- G06F 11/2094: {Redundant storage or storage space (G06F11/2056 takes precedence)}
- G06F 11/301: {where the computing system is a virtual computing platform, e.g. logically partitioned systems (virtual machines G06F9/45533; logical partitioning of resources G06F9/5077)}
- G06F 12/1009: using page tables, e.g. page table structures
- G06F 2009/4557: {Distribution of virtual machine instances; Migration and load balancing}
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F 2201/815: Virtual
- G06F 2212/657: Virtual address space management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

According to aspects of the present disclosure, systems and methods can be provided to recover from memory errors that occur during or following a virtual machine migration. Methods, computer program products and/or systems are provided for handling memory error that perform the following operations: (i) obtaining a memory address that triggered an uncorrected error on a first host associated with a virtual machine migration; (ii) computing a page associated with the memory address; (iii) determining if a copy of the page associated with the memory address is available on a second host associated with the virtual machine migration; (iv) obtaining data from the copy of the page on the second host; and (v) generating a new page on the first host with the data obtained from the second host.

## Claims

### Claim 1

A computer-implemented method for memory error recovery, the method comprising:
obtaining a memory address that triggered an uncorrected error on a first host associated with a virtual machine migration;
computing a page associated with the memory address;
determining if a copy of the page associated with the memory address is available on a second host associated with the virtual machine migration;
obtaining data from the copy of the page on the second host; and
generating a new page on the first host with the data obtained from the second host.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the virtual machine migration is in progress, the first host is a source host where the virtual machine is running, and the second host is a target host to which the virtual machine is being migrated.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the virtual machine migration has been completed, the first host is a target host where the virtual machine is running, and the second host is a source host from which the virtual machine was migrated.

### Claim 4 (depends on 2)

The computer-implemented method of claim 2, wherein the method further comprises determining that the page associated with the memory address on the source host has not been modified before determining if the page associated with the memory address is available on the target host.

### Claim 5 (depends on 3)

The computer-implemented method of claim 3, wherein the method further comprises determining that the page associated with the memory address on the target host has not been modified before determining if the page associated with the memory address is available on the source host.

### Claim 6 (depends on 2)

The computer-implemented method of claim 2, wherein generating the new page on the source host with the data obtained from the target host further comprises updating a page table translation on the source host to point to the new page.

### Claim 7 (depends on 3)

The computer-implemented method of claim 3, wherein generating the new page on the target host with the data obtained from the source host further comprises updating a page table translation on the target host to point to the new page.

### Claim 8

A computer program product for memory error recovery, the computer program product comprising a computer readable storage medium having stored thereon:
program instructions programmed to obtain a memory address that triggered an uncorrected error on a first host associated with a virtual machine migration;
program instructions programmed to compute a page associated with the memory address;
program instructions programmed to determine if a copy of the page associated with the memory address is available on a second host associated with the virtual machine migration;
program instructions programmed to obtain data from the copy of the page on the second host; and
program instructions programmed to generate a new page on the first host with the data obtained from the second host.

### Claim 9 (depends on 8)

The computer program product of claim 8, wherein the virtual machine migration is in progress, the first host is a source host where the virtual machine is running, and the second host is a target host to which the virtual machine is being migrated.

### Claim 10 (depends on 8)

The computer program product of claim 8, wherein the virtual machine migration has been completed, the first host is a target host where the virtual machine is running, and the second host is a source host from which the virtual machine was migrated.

### Claim 11 (depends on 9)

The computer program product of claim 9, wherein the computer readable storage medium has further stored thereon program instructions programmed to determine that the page associated with the memory address on the source host has not been modified before determining if the page associated with the memory address is available on the target host.

### Claim 12 (depends on 10)

The computer program product of claim 10, wherein the computer readable storage medium has further stored thereon program instructions programmed to determine that the page associated with the memory address on the target host has not been modified before determining if the page associated with the memory address is available on the source host.

### Claim 13 (depends on 9)

The computer program product of claim 9, wherein generating the new page on the source host with the data obtained from the target host further comprises updating a page table translation on the source host to point to the new page.

### Claim 14 (depends on 10)

The computer program product of claim 10, wherein generating the new page on the target host with the data obtained from the source host further comprises updating a page table translation on the target host to point to the new page.

### Claim 15

A computer system for memory error recovery, the computer system comprising:
a processor(s) set; and
a computer readable storage medium;
wherein:
the processor set is structured, located, connected and/or programmed to run program instructions stored on the computer readable storage medium; and
the stored program instructions include:
program instructions programmed to obtain a memory address that triggered an uncorrected error on a first host associated with a virtual machine migration;
program instructions programmed to compute a page associated with the memory address;
program instructions programmed to determine if a copy of the page associated with the memory address is available on a second host associated with the virtual machine migration;
program instructions programmed to obtain data from the copy of the page on the second host; and
program instructions programmed to generate a new page on the first host with the data obtained from the second host.

### Claim 16 (depends on 15)

The computer system of claim 15, wherein the virtual machine migration is in progress, the first host is a source host where the virtual machine is running, and the second host is a target host to which the virtual machine is being migrated.

### Claim 17 (depends on 15)

The computer system of claim 15, wherein the virtual machine migration has been completed, the first host is a target host where the virtual machine is running, and the second host is a source host from which the virtual machine was migrated.

### Claim 18 (depends on 16)

The computer system of claim 16, wherein the stored program instructions further include program instructions programmed to determine that the page associated with the memory address on the source host has not been modified before determining if the page associated with the memory address is available on the target host.

### Claim 19 (depends on 17)

The computer system of claim 17, wherein the stored program instructions further include program instructions programmed to determine that the page associated with the memory address on the target host has not been modified before determining if the page associated with the memory address is available on the source host.

### Claim 20 (depends on 16)

The computer system of claim 16, wherein generating the new page on the source host with the data obtained from the target host further comprises updating a page table translation on the source host to point to the new page.
