# US 2026/0093549 A1 · Host memory resource processing method and apparatus for data processing unit virtualization scenario, electronic device, and storage medium

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

- Number: US 2026/0093549 A1
- Document ID: US20260093549A1
- Status: Published application
- Kind: A1
- Application number: 19/229,849
- Filed: 2025-06-05
- Published: 2026-04-02
- Earliest claimed: 2024-09-27
- Assignees: Beijing Volcano Engine Technology Co., Ltd.
- Applicants: Beijing Volcano Engine Technology Co., Ltd.
- Inventors: Ying FANG; Jiahui CEN
- Web page: https://patentgrep.com/patent/US20260093549A1

## CPC

- G06F 9/5044: {considering hardware capabilities}
- G06F 9/45533: {Hypervisors; Virtual machine monitors}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 9/5016: {the resource being the memory}
- G06F 9/5077: {Logical partitioning of resources; Management or configuration of virtualized resources (specific details on emulation or internal functioning of virtual machines G06F9/455)}
- G06F 11/1016: {Error in accessing a memory location, i.e. addressing error}
- G06F 2009/45562: {Creating, deleting, cloning virtual machine instances}
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present disclosure provides a host memory resource processing method and apparatus for a data processing unit virtualization scenario, a device, and a storage medium. The host memory resource processing method includes: receiving a virtual machine creation request, where the request is used to request creation of a virtual machine that complies with a memory configuration requirement of a target virtual machine; starting the target virtual machine according to the memory configuration requirement of the target virtual machine and creating two corresponding types of entries, including a user available entry and a firmware reserved entry; constructing a memory information table corresponding to the target virtual machine based on the two types of entries, and sending the memory information table to the target virtual machine. The memory information table is used to represent physical memory mapping information of the target virtual machine.

## Claims

### Claim 1

A host memory resource processing method for a data processing unit virtualization scenario, wherein the method comprises:
receiving a virtual machine creation request, wherein the virtual machine creation request is used to request creation of a virtual machine that complies with a memory configuration requirement of a target virtual machine;
starting the target virtual machine according to the memory configuration requirement of the target virtual machine and creating two types of entries corresponding to the memory configuration requirement, wherein the two types of entries comprise a user available entry and a firmware reserved entry, a memory address of the user available entry indicates available memory of the target virtual machine, a memory address of the firmware reserved entry indicates system reserved memory, and a memory size corresponding to the firmware reserved entry is determined according to a preset first proportion and a memory size specified in the memory configuration requirement; and
constructing a memory information table corresponding to the target virtual machine based on the two types of entries, and sending the memory information table to the target virtual machine, wherein the memory information table represents physical memory mapping information of the target virtual machine.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the sending the memory information table to the target virtual machine comprises:
determining, according to an operating system feature of the target virtual machine, target virtualization firmware matching the operating system feature, and in response to the target virtualization firmware is a target firmware, reading, through the target virtualization firmware, respective entries in the memory information table, and creating a firmware reserved memory interval for the firmware reserved entry in the memory information table, wherein the firmware reserved memory interval is used to represent that the memory address of the firmware reserved entry indicates the system reserved memory; and
transparent transmitting the memory information table to the target virtual machine through the target virtualization firmware.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the method further comprises:
in response to the target virtualization firmware is the target firmware, determining whether a memory address range corresponding to the user available entry in the memory information table belongs to a target address range, and creating an available memory interval for the user available entry, a memory address range of which belongs to the target address range, wherein the available memory interval is used to represent that the memory address of the user available entry indicates the available memory of the target virtual machine.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the starting the target virtual machine according to the memory configuration requirement of the target virtual machine and creating two types of entries corresponding to the memory configuration requirement comprises:
determining a first memory address range according to a target memory address range indicated by the memory configuration requirement of the target virtual machine, and creating the user available entry based on the first memory address range; and
determining a second memory address range according to a memory address range indicated by the memory configuration requirement of the target virtual machine, and creating the firmware reserved entry based on the second memory address range, wherein a memory size of the second memory address range and a memory size of the target memory address range are in a first proportional relationship.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the target virtual machine runs on a physical machine connected to a data processing unit (DPU), and the physical machine depends on the DPU to offload part of functions.

### Claim 6 (depends on 1)

The method according to claim 1, wherein before the receiving a virtual machine creation request, the method further comprises:
reserving, in a kernel startup stage of the physical machine, physical memory with a preset memory size for the virtual machine, wherein the physical memory with the preset memory size is used for memory management through a target memory management mode.

### Claim 7 (depends on 6)

The method according to claim 6, wherein the method further comprises:
creating a memory file in a mount directory of a file system corresponding to the target memory management mode, and mapping the memory file to a virtual address space of the target virtual machine; and
in response to a page fault occurs in a virtual address access to the target virtual machine, performing, based on the physical memory with the preset memory size that is reserved, memory allocation for the target virtual machine, and recording an allocated memory address into the memory file, to persist a mapping relationship between the memory file and the physical memory with the preset memory size, wherein the mapping relationship is used to access a corresponding physical memory through a memory address in the memory file.

### Claim 8

A non-transitory computer-readable storage medium, wherein the computer-readable storage medium stores instructions, and when the instructions are executed by at least a processor, the processor is caused to implement a host memory resource processing method for a data processing unit virtualization scenario, the method comprises:
receiving a virtual machine creation request, wherein the virtual machine creation request is used to request creation of a virtual machine that complies with a memory configuration requirement of a target virtual machine;
starting the target virtual machine according to the memory configuration requirement of the target virtual machine and creating two types of entries corresponding to the memory configuration requirement, wherein the two types of entries comprise a user available entry and a firmware reserved entry, a memory address of the user available entry indicates available memory of the target virtual machine, a memory address of the firmware reserved entry indicates system reserved memory, and a memory size corresponding to the firmware reserved entry is determined according to a preset first proportion and a memory size specified in the memory configuration requirement; and
constructing a memory information table corresponding to the target virtual machine based on the two types of entries, and sending the memory information table to the target virtual machine, wherein the memory information table represents physical memory mapping information of the target virtual machine.

### Claim 9 (depends on 8)

The non-transitory computer-readable storage medium according to claim 8, wherein the sending the memory information table to the target virtual machine comprises:
determining, according to an operating system feature of the target virtual machine, target virtualization firmware matching the operating system feature, and in response to the target virtualization firmware is a target firmware, reading, through the target virtualization firmware, respective entries in the memory information table, and creating a firmware reserved memory interval for the firmware reserved entry in the memory information table, wherein the firmware reserved memory interval is used to represent that the memory address of the firmware reserved entry indicates the system reserved memory; and
transparent transmitting the memory information table to the target virtual machine through the target virtualization firmware.

### Claim 10 (depends on 9)

The non-transitory computer-readable storage medium according to claim 9, wherein the processor is further configured to:
in response to the target virtualization firmware is the target firmware, determining whether a memory address range corresponding to the user available entry in the memory information table belongs to a target address range, and creating an available memory interval for the user available entry, a memory address range of which belongs to the target address range, wherein the available memory interval is used to represent that the memory address of the user available entry indicates the available memory of the target virtual machine.

### Claim 11 (depends on 8)

The non-transitory computer-readable storage medium according to claim 8, wherein the starting the target virtual machine according to the memory configuration requirement of the target virtual machine and creating two types of entries corresponding to the memory configuration requirement comprises:
determining a first memory address range according to a target memory address range indicated by the memory configuration requirement of the target virtual machine, and creating the user available entry based on the first memory address range; and
determining a second memory address range according to a memory address range indicated by the memory configuration requirement of the target virtual machine, and creating the firmware reserved entry based on the second memory address range, wherein a memory size of the second memory address range and a memory size of the target memory address range are in a first proportional relationship.

### Claim 12 (depends on 8)

The non-transitory computer-readable storage medium according to claim 8, wherein the target virtual machine runs on a physical machine connected to a data processing unit (DPU), and the physical machine depends on the DPU to offload part of functions.

### Claim 13 (depends on 8)

The non-transitory computer-readable storage medium according to claim 8, wherein before the receiving a virtual machine creation request, the processor is further configured to:
reserving, in a kernel startup stage of the physical machine, physical memory with a preset memory size for the virtual machine, wherein the physical memory with the preset memory size is used for memory management through a target memory management mode.

### Claim 14

An electronic device, comprising:
a memory, at least one processor, and a computer program stored on the memory and executable by the processor, wherein the processor, when executing the computer program, implements a host memory resource processing method for a data processing unit virtualization scenario, the method comprises:
receiving a virtual machine creation request, wherein the virtual machine creation request is used to request creation of a virtual machine that complies with a memory configuration requirement of a target virtual machine;
starting the target virtual machine according to the memory configuration requirement of the target virtual machine and creating two types of entries corresponding to the memory configuration requirement, wherein the two types of entries comprise a user available entry and a firmware reserved entry, a memory address of the user available entry indicates available memory of the target virtual machine, a memory address of the firmware reserved entry indicates system reserved memory, and a memory size corresponding to the firmware reserved entry is determined according to a preset first proportion and a memory size specified in the memory configuration requirement; and
constructing a memory information table corresponding to the target virtual machine based on the two types of entries, and sending the memory information table to the target virtual machine, wherein the memory information table represents physical memory mapping information of the target virtual machine.

### Claim 15 (depends on 14)

The electronic device according to claim 14, wherein the sending the memory information table to the target virtual machine comprises:
determining, according to an operating system feature of the target virtual machine, target virtualization firmware matching the operating system feature, and in response to the target virtualization firmware is a target firmware, reading, through the target virtualization firmware, respective entries in the memory information table, and creating a firmware reserved memory interval for the firmware reserved entry in the memory information table, wherein the firmware reserved memory interval is used to represent that the memory address of the firmware reserved entry indicates the system reserved memory; and
transparent transmitting the memory information table to the target virtual machine through the target virtualization firmware.

### Claim 16 (depends on 15)

The electronic device according to claim 15, wherein the processor is further configured to:
in response to the target virtualization firmware is the target firmware, determining whether a memory address range corresponding to the user available entry in the memory information table belongs to a target address range, and creating an available memory interval for the user available entry, a memory address range of which belongs to the target address range, wherein the available memory interval is used to represent that the memory address of the user available entry indicates the available memory of the target virtual machine.

### Claim 17 (depends on 14)

The electronic device according to claim 14, wherein the starting the target virtual machine according to the memory configuration requirement of the target virtual machine and creating two types of entries corresponding to the memory configuration requirement comprises:
determining a first memory address range according to a target memory address range indicated by the memory configuration requirement of the target virtual machine, and creating the user available entry based on the first memory address range; and
determining a second memory address range according to a memory address range indicated by the memory configuration requirement of the target virtual machine, and creating the firmware reserved entry based on the second memory address range, wherein a memory size of the second memory address range and a memory size of the target memory address range are in a first proportional relationship.

### Claim 18 (depends on 14)

The electronic device according to claim 14, wherein the target virtual machine runs on a physical machine connected to a data processing unit (DPU), and the physical machine depends on the DPU to offload part of functions.

### Claim 19 (depends on 14)

The electronic device according to claim 14, wherein before the receiving a virtual machine creation request, the processor is further configured to:
reserving, in a kernel startup stage of the physical machine, physical memory with a preset memory size for the virtual machine, wherein the physical memory with the preset memory size is used for memory management through a target memory management mode.

### Claim 20 (depends on 19)

The electronic device according to claim 19, wherein the processor is further configured to:
creating a memory file in a mount directory of a file system corresponding to the target memory management mode, and mapping the memory file to a virtual address space of the target virtual machine; and
in response to a page fault occurs in a virtual address access to the target virtual machine, performing, based on the physical memory with the preset memory size that is reserved, memory allocation for the target virtual machine, and recording an allocated memory address into the memory file, to persist a mapping relationship between the memory file and the physical memory with the preset memory size, wherein the mapping relationship is used to access a corresponding physical memory through a memory address in the memory file.
