# US 2025/0085853 A1 · Memory Access Method and Related Device

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

- Number: US 2025/0085853 A1
- Document ID: US20250085853A1
- Status: Published application
- Kind: A1
- Application number: 18/956,425
- Filed: 2024-11-22
- Published: 2025-03-13
- Earliest claimed: 2022-05-26
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Bojie Li; Amit Geron; Shamir Rabinovitch
- Web page: https://patentgrep.com/patent/US20250085853A1

## CPC

- G06F 3/0608: {Saving storage space on storage systems}
- G06F 9/544: {Buffers; Shared memory; Pipes}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0673: {Single storage device}
- G06F 9/546: {Message passing systems or structures, e.g. queues}
- G06F 12/023: {Free address space management}
- G06F 12/08: in hierarchically structured memory systems, e.g. virtual memory systems
- G06F 12/1009: using page tables, e.g. page table structures
- G06F 12/1036: for multiple virtual address spaces, e.g. segmentation (G06F12/1045 takes precedence)
- G06F 12/1081: for peripheral access to main memory, e.g. direct memory access [DMA]
- G06F 2209/548: Queue
- G06F 2212/657: Virtual address space management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In a memory access method, a receiver receives a memory access message from a sender in advance, determines an address of the receiver that is used to access a memory of the sender, and determines a mapping relationship between a virtual address and a corresponding physical address. Thus, provided the address of the receiver that is used to access a memory of the sender is registered with a memory region, the receiver may access a memory of the sender.

## Claims

### Claim 1

A method implemented by a receiver and comprising:
receiving, from a sender, a memory access message comprising a sender virtual address of the sender and a receiver virtual address of the receiver; and
accessing a first memory of the sender based on a sender physical address of the sender, a receiver physical address of the receiver, a first mapping relationship mapping the sender virtual address to the sender physical address, and a second mapping relationship mapping the receiver virtual address to the receiver physical address.

### Claim 2 (depends on 1)

The method of claim 1, wherein accessing the first memory comprises fetching data corresponding to the sender virtual address into the receiver virtual address.

### Claim 3 (depends on 2)

The method of claim 2, further comprising allocating, after receiving the memory access message, when the receiver virtual address is in a page fault state, and when access data make up an entire page, a new page in a second memory of the receiver for writing the access data.

### Claim 4 (depends on 1)

The method of claim 1, wherein accessing the first memory comprises writing access data corresponding to the receiver virtual address into the sender virtual address.

### Claim 5 (depends on 1)

The method of claim 1, further comprising unbinding, after accessing the first memory, the second mapping relationship.

### Claim 6 (depends on 5)

The method of claim 5, further comprising sending, after accessing the first memory, an access complete message to the sender to prompt the sender to unbind the first mapping relationship.

### Claim 7 (depends on 1)

The method of claim 1, further comprising determining the second mapping relationship.

### Claim 8

A method implemented by a sender and comprising:
obtaining a memory access message comprising a sender virtual address of the sender and a receiver virtual address of a receiver; and
sending the memory access message to the receiver to prompt the receiver to access a memory of the sender based on a sender physical address of the sender, a receiver physical address of the receiver, a first mapping relationship mapping the sender virtual address to the sender physical address, and a second mapping relationship mapping the receiver virtual address to the receiver physical address.

### Claim 9 (depends on 8)

The method of claim 8, further comprising receiving, after sending the memory access message, an access complete message from the receiver.

### Claim 10 (depends on 9)

The method of claim 9, further comprising unbinding the first mapping relationship in response to the access complete message.

### Claim 11 (depends on 8)

The method of claim 8, further comprising determining the first mapping relationship whether a first data size of first access data corresponding to the sender virtual address or a second data size of second access data corresponding to the receiver virtual address is greater than a preset threshold.

### Claim 12 (depends on 11)

The method of claim 11, further comprising determining the first mapping relationship when the first data size or the second data size is greater than the preset threshold.

### Claim 13 (depends on 11)

The method of claim 11, further comprising copying the first access data to a send buffer of the sender when a data size of the access data is not greater than the preset threshold.

### Claim 14

A receiver comprising:
one or more processors configured to execute a program code to cause the receiver to:
receive, from a sender, a memory access message comprising a sender virtual address of the sender and a receiver virtual address of the receiver; and
access a first memory of the sender based on a sender physical address of the sender, a receiver physical address of the receiver, a first mapping relationship mapping the sender virtual address to the sender physical address, and a second mapping relationship mapping the receiver virtual address to the receiver physical address.

### Claim 15 (depends on 14)

The receiver of claim 14, wherein the one or more processors are further configured to execute the program code to cause the receiver to access the first memory by fetching data corresponding to the sender virtual address into the receiver virtual address.

### Claim 16 (depends on 15)

The receiver of claim 15, wherein the one or more processors are further configured to execute the program code to cause the receiver to allocate, after receiving the memory access message, when the receiver virtual address is in a page fault state, and when access data make up an entire page, a new page in a second memory of the receiver for writing the access data.

### Claim 17 (depends on 14)

The receiver of claim 14, wherein the one or more processors are further configured to execute the program code to cause the receiver to access the first memory by writing access data corresponding to the receiver virtual address into the sender virtual address.

### Claim 18 (depends on 14)

The receiver of claim 14, wherein the one or more processors are further configured to execute the program code to cause the receiver to unbind, after accessing the first memory, the second mapping relationship.

### Claim 19 (depends on 18)

The receiver of claim 18, wherein the one or more processors are further configured to execute the program code to cause the receiver to send, after accessing the first memory, an access complete message to the sender to prompt the sender to unbind the first mapping relationship.

### Claim 20 (depends on 14)

The receiver of claim 14, wherein the one or more processors are further configured to execute the program code to cause the receiver to determine the second mapping relationship.
