# US 2015/0106822 A1 · Method and system for supporting resource isolation in multi-core architecture

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

- Number: US 2015/0106822 A1
- Document ID: US20150106822A1
- Status: Published application
- Kind: A1
- Application number: 14/573,428
- Filed: 2014-12-17
- Published: 2015-04-16
- Earliest claimed: 2013-05-28
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Xiaosong LEI
- Web page: https://patentgrep.com/patent/US20150106822A1

## CPC

- G06F 9/5005: {to service a request}
- G06F 9/4405: {Initialisation of multiprocessor systems}
- G06F 9/4406: {Loading of operating system}
- G06F 9/52: Program synchronisation; Mutual exclusion, e.g. by means of semaphores
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments of the present invention provide a method and a system for supporting resource isolation in a multi-core architecture. In the method and system for supporting resource isolation in a multi-core architecture provided by the embodiments of the present invention, manners of inter-core operating system isolation, memory segment isolation, and I/O resource isolation are adopted, so that operating systems that run on different processing cores of the multi-core processor can run independently without affecting each other. Therefore, the present invention fully uses the advantages high integration level and low comprehensive costs of the multi-core processor, it is achieved that a failure domain of the multi-core processor remains in a single hard disk, and the multi-core processor has high reliability.

## Claims

### Claim 1

A multi-core system for supporting resource isolation, comprising:
a processor, wherein the processor comprises multiple processing cores, the multiple processing cores comprise a start-time primary core and at least one start-time secondary core, and the start-time primary core comprises a boot loader; and
memory space, wherein the memory space comprises a shared memory segment and multiple private memory segments corresponding to the multiple processing cores separately; the shared memory segment is configured to store running information; and the running information comprises a mapping relationship between each processing core and an operating system that the each processing core needs to run, and size and start address of the each private memory segments;
wherein the boot loader is configured to separately store kernel images of the operating systems into the corresponding private memory segments according to the running information, and write run-time entry addresses of the multiple processing cores into the shared memory segment, wherein the run-time entry addresses of the processing cores are used to indicate, in corresponding private memory segments, storage addresses of the kernel images of the operating systems; and
the multiple processing cores are configured to separately obtain the corresponding run-time entry addresses and run the kernel images of the operating systems according to the run-time entry addresses.

### Claim 2 (depends on 1)

The multi-core system for supporting resource isolation according to claim 1, wherein the multiple processing cores are configured to elect and determine a run-time primary core and a run-time secondary core from the multiple processing cores according to a preset election algorithm, wherein the run-time primary core is configured to perform arbitration control over input/output resources.

### Claim 3 (depends on 2)

The multi-core system for supporting resource isolation according to claim 2, wherein the run-time secondary core is configured to put data that requires an I/O operation in the shared memory segment, and notify the run-time primary core of a memory address related to the I/O operation, and the run-time primary core is configured to invoke local physical drive to perform the I/O operation on an external device.

### Claim 4 (depends on 2)

The multi-core system for supporting resource isolation according to claim 2, wherein the run-time secondary core is further configured to invoke local physical drive to perform an I/O operation on an external device.

### Claim 5 (depends on 1)

The multi-core system for supporting resource isolation according to claim 1, wherein the boot loader is configured to separately store kernel image of the operating system into the corresponding private memory segments according to the running information comprises:
the boot loader is configured to store, according to the running information, at least one kernel image of the operating system into the corresponding private memory segment corresponding to one processing core, and the one processing core is further configured to run the kernel image of the operating system and separately store, according to the running information, other kernel images of the operating systems into corresponding private memory segments.

### Claim 6 (depends on 1)

The multi-core system for supporting resource isolation according to claim 1, wherein the operating systems are of mutually different operating systems.

### Claim 7 (depends on 1)

The multi-core system for supporting resource isolation according to claim 1, wherein a processing core group that comprises of at least two processing cores runs a kernel image of a same operating system, and all the processing cores of the processing core group share a private memory segment.

### Claim 8

A method for supporting resource isolation in a multi-core system, wherein the system comprises a processor and memory space, wherein the processor comprises multiple processing cores, and the multiple processing cores comprise a start-time primary core and at least one start-time secondary core; the start-time primary core comprises a boot loader; the memory space comprises a shared memory segment and private memory segments corresponding to the multiple processing cores separately; running information is stored in the shared memory segment; and the running information comprises a mapping relationship between each processing core and an operating system that the each processing core needs to run, and sizes and start address of the each private memory segments; and
the method for supporting resource isolation in a multi-core system comprises:
separately storing, by the boot loader, kernel images of the operating systems into the corresponding private memory segments according to the running information, and writing run-time entry addresses of the multiple processing cores into the shared memory segment, wherein the run-time entry addresses of the processing cores are used to indicate, in corresponding private memory segments, storage addresses of the kernel images of the operating systems; and
obtaining, by the multiple processing cores, the run-time entry addresses separately, and running the kernel images of the operating systems according to the run-time entry addresses.

### Claim 9 (depends on 8)

The method for supporting resource isolation in the multi-core system according to claim 8, comprising:
electing and determining, by the multiple processing cores, a run-time primary core and a run-time secondary core according to a preset election algorithm.

### Claim 10 (depends on 9)

The method for supporting resource isolation in the multi-core system according to claim 9, comprising:
performing, by the run-time primary core, arbitration control over input/output resources.

### Claim 11 (depends on 9)

The method for supporting resource isolation in a multi-core system according to claim 9, comprising:
storing, by the run-time secondary core, data that requires an I/O operation in the shared memory segment, and notifying the run-time primary core of a memory address related to the I/O operation; and
invoking, by the run-time primary core, local physical drive to perform the I/O operation on an external device.

### Claim 12 (depends on 9)

The method for supporting resource isolation in the multi-core system according to claim 9, comprising:
invoking, by the run-time secondary core, local physical drive to perform an I/O operation on an external device.

### Claim 13 (depends on 8)

The method for supporting resource isolation in the multi-core system according to claim 8, wherein the step of separately storing, by the boot loader, kernel images of the operating systems into the corresponding private memory segments according to the running information comprises:
storing, by the boot loader, kernel image of the operating system into the corresponding private memory segment allocated to one processing core;
running, by the one processing core, the kernel image of the operating system; and
separately storing, by the one processing core according to the running information, other kernel images of the operating systems into corresponding private memory segments.

### Claim 14 (depends on 8)

The method for supporting resource isolation in a multi-core system according to claim 8, wherein the operating systems are of mutually different operating systems.

### Claim 15 (depends on 8)

The method for supporting resource isolation in a multi-core system according to claim 8, wherein a processing core group that comprises of at least two processing cores runs a kernel image of a same operating system, and all the processing cores that constitute the processing core group share a private memory segment.
