# US 2021/0334222 A1 · Trusted intermediary realm

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

- Number: US 2021/0334222 A1
- Document ID: US20210334222A1
- Status: Published application
- Kind: A1
- Application number: 17/267,941
- Filed: 2019-09-03
- Published: 2021-10-28
- Earliest claimed: 2018-10-19
- Assignees: Arm Limited
- Applicants: Arm Limited
- Inventors: Nicholas WOOD
- Web page: https://patentgrep.com/patent/US20210334222A1

## CPC

- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 12/1491: {in a hierarchical protection system, e.g. privilege levels, memory rings}
- G06F 12/1441: {for a range}
- G06F 12/145: {the protection being virtual, e.g. for virtual blocks or segments before a translation mechanism}
- G06F 21/602: {Providing cryptographic facilities or services}
- G06F 21/79: in semiconductor storage media, e.g. directly-addressable memories
- G06F 21/107: {License processing; Key processing}
- G06F 21/78: to assure secure storage of data (address-based protection against unauthorised use of memory G06F12/14; record carriers for use with machines and with at least a part designed to carry digital markings G06K19/00)
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F 2009/45587: {Isolation or security of virtual machine instances}
- G06F 2212/1052: Security improvement
- G06F 2212/151: Emulated environment, e.g. virtual machine
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Memory access circuitry controls access to memory based on ownership information defining, for a given memory region, an owner realm specified from among two or more realms, each realm corresponding to at least a portion of a software processes running on processing circuitry. The owner realm has a right to exclude other realms from accessing data stored within the given memory region. When security configuration parameters for a given realm specify that the given realm is associated with a trusted intermediary realm identified by the security configuration parameters, the trusted intermediary realm may be allowed to perform at least one realm management function for the given realm, e.g. provision of secret keys and/or saving/restoring of security configuration parameters. This can enable use cases where multiple instances of the same realm with common parameters need to be established on the same system at different times or on different systems.

## Claims

### Claim 1

An apparatus comprising:
processing circuitry to perform data processing in response to one or more software processes; and
memory access circuitry to control access to a plurality of memory regions based on ownership information defining, for a given memory region, an owner realm specified from among a plurality of realms, each realm corresponding to at least a portion of at least one of the software processes, said owner realm having a right to exclude other realms from accessing data stored within said given memory region; and
a realm management unit to control operation of a given realm based on security configuration parameters associated with the given realm; in which:
when the security configuration parameters for the given realm specify that the given realm is associated with a trusted intermediary realm identified by the security configuration parameters, the realm management unit is configured to permit the trusted intermediary realm to perform at least one realm management function for the given realm.

### Claim 2 (depends on 1)

The apparatus according to claim 1, in which the realm management function comprises updating at least a portion of the security configuration parameters for the given realm.

### Claim 3 (depends on 1)

The apparatus according to claim 1, in which each realm other than a root realm is associated with a corresponding parent realm which created the realm; and
the realm management unit is configured to support the security configuration parameters defining the trusted intermediary realm as a realm other than the parent realm of the given realm.

### Claim 4 (depends on 3)

The apparatus according to claim 3, in which the realm management unit is configured to set whether the given realm is associated with the trusted intermediary realm, based on at least one command issued by the parent realm during creation of the given realm.

### Claim 5 (depends on 1)

The apparatus according to claim 1, in which the realm management unit is configured, in response to an attestation command identifying a target realm, to provide an attestation attesting to properties of the target realm.

### Claim 6 (depends on 5)

The apparatus according to claim 5, in which when the security configuration parameters for the given realm specify that the target realm is associated with the trusted intermediary realm, the attestation comprises information indicating that the target realm is associated with the trusted intermediary realm.

### Claim 7 (depends on 5)

The apparatus according to claim 5, in which when the security configuration parameters for the target realm specify that the target realm is associated with the trusted intermediary realm, the attestation for the target realm specifies intermediary realm attestation information,
the intermediary realm attestation information attesting to properties of the trusted intermediary realm or providing information for enabling a recipient of the attestation to request an attestation for the trusted intermediary realm associated with the target realm.

### Claim 8 (depends on 5)

The apparatus according to claim 5, in which the realm management unit is configured to prevent the processing circuitry from processing a given realm until the given realm has been activated; and
the realm management unit is configured to permit the trusted intermediary realm associated with the given realm to trigger generation of an attestation for the given realm before the given realm has been activated.

### Claim 9 (depends on 1)

The apparatus according to claim 1, in which the realm management unit is configured to permit the trusted intermediary realm to provide at least one provisioned secret for the given realm, said provisioned secret comprising at least one of:
at least one secret key for protecting data associated with the given realm; and
key material for deriving said at least one secret key.

### Claim 10 (depends on 9)

The apparatus according to claim 9, in which the realm management unit is configured to prohibit a realm other than the trusted intermediary realm from providing said at least one provisioned secret for the given realm.

### Claim 11 (depends on 9)

The apparatus according to claim 9, in which the realm management unit is configured to prevent the processing circuitry from processing a given realm until the given realm has been activated;
the realm management unit is configured to permit the trusted intermediary realm to provide the at least one provisioned secret for the given realm before the given realm has been activated; and
the realm management unit is configured to prevent the trusted intermediary realm providing the at least one provisioned secret for the given realm after the given realm has been activated.

### Claim 12 (depends on 9)

The apparatus according to claim 9, in which the realm management unit is configured to manage provision of the at least one provisioned secret based on key management policy information provided by the trusted intermediary realm.

### Claim 13 (depends on 1)

The apparatus according to claim 1, in which the realm management unit is configured to permit the trusted intermediary realm to record a security configuration record indicative of at least a subset of the security configuration parameters associated with the given realm.

### Claim 14 (depends on 1)

The apparatus according to claim 1, in which the realm management unit is configured to permit the trusted intermediary realm to update at least a subset of the security configuration parameters associated with the given realm based on a security configuration record previously recorded by the trusted intermediary realm.

### Claim 15 (depends on 13)

The apparatus according to claim 13, in which the realm management unit is configured to manage recording of the security configuration record or restoration of security configuration parameters from the security configuration record, based on policy information provided by the trusted intermediary realm.

### Claim 16 (depends on 1)

The apparatus according to claim 1, in which the security configuration parameters for the given realm include at least one of:
a realm type;
a protected address range associated with the given realm;
an indication of whether debugging is enabled within the given realm;
an indication of whether export of data from a first memory, which is subject to access control by the memory access circuitry, to a second memory is permitted; and
key material for derivation of at least one secret key for protecting data associated with the given realm.

### Claim 17 (depends on 1)

The apparatus according to claim 1, in which the owner realm has a right to prevent access to the given memory region by a process executed at a greater privilege level than the owner realm.

### Claim 18

A data processing method comprising:
performing data processing in response to one or more software processes; and
enforcing ownership rights for a plurality of memory regions based on ownership information defining, for a given memory region, an owner realm specified from among a plurality of realms, each realm corresponding to at least a portion of at least one of the software processes, said owner realm having a right to exclude other realms from accessing data stored within said given memory region; and
controlling operation of a given realm based on security configuration parameters associated with the given realm; in which:
when the security configuration parameters for the given realm specify that the given realm is associated with a trusted intermediary realm identified by the security configuration parameters, the trusted intermediary realm is permitted to perform at least one realm management function for the given realm.

### Claim 19

A computer program for controlling a host data processing apparatus to provide an instruction execution environment, comprising:
memory access program logic to control access to a plurality of memory regions of a simulated memory address space based on ownership information defining, for a given memory region, an owner realm specified from among a plurality of realms, each realm corresponding to at least a portion of at least one of a plurality of software processes executed in the instruction execution environment, said owner realm having a right to exclude other realms from accessing data stored within said given memory region; and
realm management program logic to control operation of a given realm based on security configuration parameters associated with the given realm; in which:
when the security configuration parameters for the given realm specify that the given realm is associated with a trusted intermediary realm identified by the security configuration parameters, the realm management program logic is configured to permit the trusted intermediary realm to perform at least one realm management function for the given realm.

### Claim 20 (depends on 19)

A storage medium storing the computer program of claim 19.
