# US 2014/0208042 A1 · Providing hardware support for shared virtual memory between local and remote physical memory

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

- Number: US 2014/0208042 A1
- Document ID: US20140208042A1
- Status: Published application
- Kind: A1
- Application number: 14/221,741
- Filed: 2014-03-21
- Published: 2014-07-24
- Earliest claimed: 2009-09-18
- Assignees: Intel Corporation
- Inventors: Gautham N. Chinya; Hong Wang; Deepak A. Mathaikutty; Jamison D. Collins; Ethan Schuchman; James P. Held; Ajay V. Bhatt; Prashant Sethi; Stephen F. Whalley
- Web page: https://patentgrep.com/patent/US20140208042A1

## CPC

- G06F 12/1036: for multiple virtual address spaces, e.g. segmentation (G06F12/1045 takes precedence)
- G06F 12/1027: using associative or pseudo-associative address translation means, e.g. translation look-aside buffer [TLB]
- G06F 12/121: using replacement algorithms
- G06F 2212/254: Distributed memory
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In one embodiment, the present invention includes a memory management unit (MMU) having entries to store virtual address to physical address translations, where each entry includes a location indicator to indicate whether a memory location for the corresponding entry is present in a local or remote memory. In this way, a common virtual memory space can be shared between the two memories, which may be separated by one or more non-coherent links. Other embodiments are described and claimed.

## Claims

### Claim 1

A processor comprising:
a first core including a first memory management unit (MMU), the first MMU including a plurality of entries to store virtual address to physical address translations; and
an accelerator coupled to the first core and including a second MMU, the second MMU including a plurality of entries to store virtual address to physical address translations, wherein each entry of the first MMU includes a location field to store a first indicator to indicate whether a memory location for the corresponding entry is present in a first memory coupled to the processor or in a second memory coupled to the accelerator and an identifier field to store an identifier of the accelerator, wherein the processor is to execute a handler to convert a memory request for a memory location in the second memory to a direct memory access (DMA) transaction for communication to the second memory.

### Claim 2 (depends on 1)

The processor of claim 1, wherein each entry of the first MMU further includes a counter to store a count of a number of accesses to the memory location of the second memory by the processor.

### Claim 3 (depends on 1)

The processor of claim 1, wherein the first memory is a system memory.

### Claim 4 (depends on 3)

The processor of claim 3, wherein the system memory and the second memory comprise a single virtual address space.

### Claim 5 (depends on 1)

The processor of claim 1, wherein when an entry of the first MMU indicates that the memory location is present in the second memory, the processor is to tunnel a memory request to the accelerator via a protocol of a non-coherent interconnect that couples the first core and the accelerator.

### Claim 6 (depends on 1)

The processor of claim 1, wherein responsive to a page fault on the second MMU, the accelerator is to request the processor to resolve the page fault.

### Claim 7 (depends on 6)

The processor of claim 6, wherein the processor is to cause the first memory to transfer a memory page associated with an address of the page fault to the second memory and to cause a translation for the memory page to be sent to the accelerator for storage in the second MMU.

### Claim 8 (depends on 1)

The processor of claim 1, wherein the processor is to directly address a memory location present in the second memory using information in an entry of the first MMU.

### Claim 9 (depends on 1)

The processor of claim 1, wherein the processor is to issue a reverse proxy execution request to the accelerator to access data stored in the second memory using information in an entry of the first MMU and without use of a user level application executing on the processor.

### Claim 10

A machine-readable medium having stored thereon instructions, which if performed by a machine cause the machine to perform a method comprising:
receiving a memory access request including a virtual address;
analyzing an entry corresponding to the virtual address stored in a translation lookaside buffer (TLB) of a processor to determine if a physical address (PA) corresponding to the virtual address is present in a first memory associated with the processor or a second memory associated with an accelerator coupled to the processor based on a location attribute of the TLB entry that indicates whether the PA is present in the first memory or the second memory, the first memory and the second memory collectively forming a shared virtual memory space; and
if the PA is present in the second memory, sending a reverse proxy execution request to the second memory to perform the memory access request.

### Claim 11 (depends on 10)

The machine-readable medium of claim 10, wherein the method further comprises determining which of a plurality of second memories each associated with an accelerator in which the PA is located using an identifier field of the TLB entry that indicates the accelerator with which the second memory is associated.

### Claim 12 (depends on 11)

The machine-readable medium of claim 11, wherein the method further comprises analyzing a counter of the TLB entry indicative of a number of accesses to the PA of the second memory by the processor.

### Claim 13 (depends on 10)

The machine-readable medium of claim 10, wherein the method further comprises moving information from the PA of the second memory to the first memory when a counter of the TLB entry indicative of a number of accesses to the PA of the second memory by the processor reaches a threshold value, without involvement of an application executing on the processor.

### Claim 14 (depends on 10)

The machine-readable medium of claim 10, wherein the method further comprises setting a memory configuration of a system including the first memory and the second memory to indicate a first physical address range associated with the first memory and a second physical address range associated with the second memory.

### Claim 15 (depends on 14)

The machine-readable medium of claim 14, wherein the method further comprises accessing the memory configuration on a page walk to obtain a translation for the memory access request, and storing an entry in the TLB including the translation and a location indicator having a first value to indicate that the PA is in the first memory, when the PA is within the first physical address range.

### Claim 16

A system comprising:
a processor having a first core including a first memory management unit (MMU), the first MMU including a plurality of entries each to store a virtual address to physical address translation, wherein each entry includes a counter to store a count of a number of accesses by the processor to a memory location of a second memory associated with an accelerator coupled to the processor, wherein when the counter of an entry reaches a threshold value, the processor is to move data stored in the memory location associated with the entry from the memory location of the second memory to a memory location of a system memory coupled to the processor;
the accelerator coupled to the processor via a link, the accelerator including a second processor and a second MMU; and
the system memory coupled to the processor.

### Claim 17 (depends on 16)

The system of claim 16, wherein each entry of the first MMU further includes a first field to store an indicator to indicate whether a memory location for the corresponding entry is present in the system memory or in the second memory.

### Claim 18 (depends on 17)

The system of claim 17, wherein the processor is to directly address a memory location present in the second memory using information in an entry of the first MMU.

### Claim 19 (depends on 16)

The system of claim 16, wherein the processor is to move the data from the memory location of the second memory to the memory location of the system memory responsive to an interrupt occurring when the counter reaches the threshold value, without involvement of an application executing on the processor.

### Claim 20 (depends on 16)

The system of claim 16, wherein the processor and the accelerator are formed of a single semiconductor die, and wherein the second memory is a partitioned portion of the system memory.
