# US 2012/0254582 A1 · Techniques and mechanisms for live migration of pages pinned for dma

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

- Number: US 2012/0254582 A1
- Document ID: US20120254582A1
- Status: Published application
- Kind: A1
- Application number: 13/076,731
- Filed: 2011-03-31
- Published: 2012-10-04
- Earliest claimed: 2011-03-31
- Inventors: ASHOK RAJ; RAJESH M. SANKARAN
- Web page: https://patentgrep.com/patent/US20120254582A1

## CPC

- G06F 12/1081: for peripheral access to main memory, e.g. direct memory access [DMA]
- G06F 13/28: using burst mode transfer, e.g. direct memory access {DMA}, cycle steal (G06F13/32 takes precedence)
- G06F 2212/654: Look-ahead translation
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques for migrating data from a first range of physical memory locations to a second range of physical memory locations. The second range of physical memory locations is allocated for migration of data from the first range of physical memory locations Pending transactions for the first range of physical memory locations are flushed. One or more address translation entries are reprogrammed. Data is migrated from the first range of physical memory locations to the second range of physical memory locations. Subsequent memory transactions are processed to cause the transactions to be directed to the second range of physical memory locations.

## Claims

### Claim 1

A method for migrating data from a first range of physical memory locations to a second range of physical memory locations comprising:
allocating the second range of physical memory locations for migration of data from the first range of physical memory locations;
flushing pending transactions for the first range of physical memory locations;
reprogramming one or more address translation entries;
migrating data from the first range of physical memory locations to the second range of physical memory locations; and
processing subsequent memory transactions to cause the transactions to be directed to the second range of physical memory locations.

### Claim 2 (depends on 1)

The method of claim 1 wherein the first range of physical memory locations are located on a first physical memory device and the second range of physical memory locations is located on a second physical memory device.

### Claim 3 (depends on 1)

The method of claim 1 further comprising:
monitoring one or more error rates for at least the first range of physical memory locations; and
initiating migration of the data in response to at least one of the one or more error rates meeting or exceeding a corresponding threshold value.

### Claim 4 (depends on 1)

The method of claim 1 wherein reprogramming one or more address translation entries comprises reprogramming a last level entry in a multi-level translation structure.

### Claim 5 (depends on 1)

The method of claim 1 wherein memory accesses to the first range of physical memory locations are provided via a direct memory access (DMA) mechanism.

### Claim 6 (depends on 5)

The method of claim 5 wherein memory accesses to the second range of physical memory locations are provided via the direct memory access (DMA) mechanism.

### Claim 7

A system comprising:
a physical memory system to store data;
a memory controller coupled with the physical memory system, the memory controller having access to one or more structures storing information of mapping between virtual addresses and physical addresses, the physical memory system including at least a first range of physical memory locations and a second range of physical memory locations;
an input/output memory management unit (IOMMU) coupled with the memory controller, the IOMMU to cause to be allocated, the second range of physical memory locations for migration of data from the first range of physical memory locations, to cause flushing pending transactions for the first range of physical memory locations, to cause reprogramming one or more address translation entries to cause migration of data from the first range of physical memory locations to the second range of physical memory locations, and to cause processing of subsequent memory transactions to cause the transactions to be directed to the second range of physical memory locations.

### Claim 8 (depends on 7)

The system of claim 7 wherein the first range of physical memory locations are located on a first physical memory device and the second range of physical memory locations is located on a second physical memory device.

### Claim 9 (depends on 7)

The system of claim 7, wherein the IOMMU further causes monitoring of one or more error rates for at least the first range of physical memory locations, and initiating of migration of the data in response to at least one of the one or more error rates meeting or exceeding a corresponding threshold value.

### Claim 10 (depends on 7)

The system of claim 7 wherein reprogramming one or more address translation entries comprises reprogramming a last level entry in a multi-level translation structure.

### Claim 11 (depends on 7)

The method of claim 7 wherein memory accesses to the first range of physical memory locations are provided via a direct memory access (DMA) mechanism.

### Claim 12 (depends on 11)

The method of claim 11 wherein memory accesses to the second range of physical memory locations are provided via the direct memory access (DMA) mechanism.

### Claim 13

An apparatus for migrating data from a first range of physical memory locations to a second range of physical memory locations comprising:
means for allocating the second range of physical memory locations for migration of data from the first range of physical memory locations;
means for flushing pending transactions for the first range of physical memory locations;
means for reprogramming one or more address translation entries;
means for migrating data from the first range of physical memory locations to the second range of physical memory locations; and
means for processing subsequent memory transactions to cause the transactions to be directed to the second range of physical memory locations.

### Claim 14 (depends on 13)

The apparatus of claim 13 wherein the first range of physical memory locations are located on a first physical memory device and the second range of physical memory locations is located on a second physical memory device.

### Claim 15 (depends on 13)

The apparatus of claim 13 further comprising:
means for monitoring one or more error rates for at least the first range of physical memory locations; and
means for initiating migration of the data in response to at least one of the one or more error rates meeting or exceeding a corresponding threshold value.
