# US 2022/0035540 A1 · Mirrored Memory Configuration Method and Apparatus, and Computer Storage Medium

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

- Number: US 2022/0035540 A1
- Document ID: US20220035540A1
- Status: Published application
- Kind: A1
- Application number: 17/451,569
- Filed: 2021-10-20
- Published: 2022-02-03
- Earliest claimed: 2019-05-16
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Gang Liu; Fei Zhang
- Web page: https://patentgrep.com/patent/US20220035540A1

## CPC

- G06F 3/0629: {Configuration or reconfiguration of storage systems}
- G06F 12/0284: {Multiple user address space allocation, e.g. using different base addresses (interprocessor communication G06F15/163)}
- G06F 3/0614: {Improving the reliability of storage systems}
- G06F 3/0673: {Single storage device}
- G06F 9/4406: {Loading of operating system}
- G06F 12/0292: {using tables or multilevel address translation means (G06F12/023 takes precedence; address translation in virtual memory systems G06F12/10)}
- G06F 12/0646: {Configuration or reconfiguration}
- G06F 9/4401: Bootstrapping (security arrangements therefor G06F21/57)
- G06F 12/1491: {in a hierarchical protection system, e.g. privilege levels, memory rings}
- G06F 2212/1032: Reliability improvement, data loss prevention, degraded operation etc
- G06F 2212/1041: Resource optimization
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

This application discloses a mirrored memory configuration method and apparatus, and a computer storage medium, and belongs to the field of information processing technologies. The method includes the following: After a computer apparatus is started, if the computer apparatus is currently in an OS state and obtains a mirrored memory establishment request, the computer apparatus may switch from the OS state to a BIOS state through system interruption. Then the computer apparatus configures a mirroring relationship in the BIOS state, and switches to the OS state again after configuring the mirroring relationship, to reconfigure a mirrored memory.

## Claims

### Claim 1

A method, comprising:
obtaining, by a computer, a mirrored memory establishment request, wherein the mirrored memory establishment request carries a first identifier of a first physical memory space and a second identifier of a second physical memory space;
in response to obtaining the mirrored memory establishment request, switching, by the computer, a current state of the computer from an operating system (OS) state to a basic input/output system (BIOS) state through system interruption;
configuring, by the computer, the first physical memory space and the second physical memory space to be in a mirroring relationship;
obtaining, by the computer, an identifier of a mirrored memory space corresponding to the first physical memory space and the second physical memory space;
switching, by the computer, the current state of the computer from the BIOS state to the OS state; and
allocating, by the computer, a memory address range to the mirrored memory space based on the identifier of the mirrored memory space.

### Claim 2 (depends on 1)

The method according to claim 1, further comprising:
obtaining a mirrored memory expansion request, wherein the mirrored memory expansion request carries the identifier of the mirrored memory space;
performing a first offline operation on the memory address range allocated to the mirrored memory space;
in response to performing the first offline operation on the memory address range allocated to the mirrored memory space, switching the current state of the computer from the OS state to the BIOS state through system interruption; and
terminating the mirroring relationship between the first physical memory space and the second physical memory space.

### Claim 3 (depends on 1)

The method according to claim 1, wherein before switching the current state of the computer from the OS state to the BIOS state through system interruption, the method further comprises:
performing a second offline operation on a memory address range corresponding to the first physical memory space.

### Claim 4 (depends on 3)

The method according to claim 3, wherein after terminating the mirroring relationship between the first physical memory space and the second physical memory space, the method further comprises:
generating a memory report message, wherein the memory report message carries the identifier of the first physical memory space; and
allocating, to the first physical memory space, the memory address range corresponding to the first physical memory space to based on the memory report message.

### Claim 5

A computer, comprising:
a processor; and
a memory storing program code executable by the processor, wherein the program code includes instructions for:
obtaining a mirrored memory establishment request, wherein the mirrored memory establishment request carries a first identifier of a first physical memory space and a second identifier of a second physical memory space;
in response to obtaining the mirrored memory establishment request, switching a current state of the computer from an operating system (OS) state to a basic input/output system (BIOS) state through system interruption;
configuring the first physical memory space and the second physical memory space to be in a mirroring relationship;
obtaining an identifier of a mirrored memory space corresponding to the first physical memory space and the second physical memory space;
switching the current state of the computer from the BIOS state to the OS state; and
allocating a memory address range to the mirrored memory space based on the identifier of the mirrored memory space.

### Claim 6 (depends on 5)

The computer according to claim 5, wherein the program code further includes instructions for:
obtaining a mirrored memory expansion request, wherein the mirrored memory expansion request carries the identifier of the mirrored memory space;
performing a first offline operation on the memory address range allocated to the mirrored memory space;
in response to performing the offline operation, switching the current state of the computer from the OS state to the BIOS state through system interruption; and
terminating the mirroring relationship between the first physical memory space and the second physical memory space.

### Claim 7 (depends on 5)

The computer according to claim 5, wherein the program code further includes instructions for:
performing a second offline operation on a memory address range corresponding to the first physical memory space.

### Claim 8 (depends on 7)

The computer according to claim 7, wherein the program code further includes instructions for:
generating a memory report message, wherein the memory report message carries the identifier of the first physical memory space; and
allocating, to the first physical memory space, the memory address range corresponding to the first physical memory space based on the memory report message.

### Claim 9

A non-transitory computer readable storage medium storing a program that is executable by a processor, the program including instructions for:
obtaining a mirrored memory establishment request, wherein the mirrored memory establishment request carries a first identifier of a first physical memory space and a second identifier of a second physical memory space;
in response to obtaining the mirrored memory establishment request, switching a current state of a computer from an operating system (OS) state to a basic input/output system (BIOS) state through system interruption;
configuring the first physical memory space and the second physical memory space to be in a mirroring relationship;
obtaining an identifier of a mirrored memory space corresponding to the first physical memory space and the second physical memory space;
switching the current state of the computer from the BIOS state to the OS state; and
allocating a memory address range to the mirrored memory space based on the identifier of the mirrored memory space.

### Claim 10 (depends on 9)

The non-transitory computer readable storage medium storing the program according to claim 9, wherein the program code further includes instructions for:
obtaining a mirrored memory expansion request, wherein the mirrored memory expansion request carries the identifier of the mirrored memory space;
performing a first offline operation on the memory address range allocated to the mirrored memory space;
in response to performing the offline operation, switching the current state of the computer from the OS state to the BIOS state through system interruption; and
terminating the mirroring relationship between the first physical memory space and the second physical memory space.

### Claim 11 (depends on 10)

The non-transitory computer readable storage medium storing the program according to claim 10, wherein the program code further includes instructions for: performing a second offline operation on a memory address range corresponding to the first physical memory space.

### Claim 12 (depends on 11)

The non-transitory computer readable storage medium storing the program according to claim 11, wherein the program code further includes instructions for:
generating a memory report message, wherein the memory report message carries the identifier of the first physical memory space; and
allocating, to the first physical memory space, the memory address range corresponding to the first physical memory space based on the memory report message.
