# US 2025/0156086 A1 · Device permissions table defining permissions information for a translated access request

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

- Number: US 2025/0156086 A1
- Document ID: US20250156086A1
- Status: Published application
- Kind: A1
- Application number: 18/848,830
- Filed: 2022-12-20
- Published: 2025-05-15
- Earliest claimed: 2022-03-28
- Assignees: Arm Limited
- Applicants: Arm Limited
- Inventors: Alexander Donald Charles Chadwick; Yuval Elad
- Web page: https://patentgrep.com/patent/US20250156086A1

## CPC

- G06F 3/0622: {in relation to access}
- G06F 12/1483: {using an access-table, e.g. matrix or list}
- G06F 3/0637: {Permissions}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F 12/1009: using page tables, e.g. page table structures
- G06F 12/1072: Decentralised address translation, e.g. in distributed shared memory systems
- 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 2212/1052: Security improvement
- G06F 2212/654: Look-ahead translation
- G06F 2212/657: Virtual address space management
- G06F 2212/684: TLB miss handling
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Apparatus, method and code for fabrication of an apparatus. The apparatus comprises address translation circuitry (116) to translate virtual addresses to physical addresses in response to advance address translation requests issued by devices (105) on behalf of software contexts (125). The apparatus also comprises translated access control circuitry (117) to control access to memory (110) in response to translated access requests issued by the devices (105) on behalf of the software contexts (125), based on permissions information defined in a device permission table (220), wherein the corresponding access permissions provide information for checking whether translated access requests from a plurality of software contexts are prohibited.

## Claims

### Claim 1

An apparatus comprising:
address translation circuitry configured to translate, in response to an advance address translation request issued by a requester device on behalf of a given software context and specifying a given virtual address, the given virtual address into a given physical address and to provide the given physical address to the requester device to be associated with a subsequent translated access request issued by the requester device; and
translated access control circuitry responsive to a translated access request issued by the requester device on behalf of the given software context and specifying a target physical address, to:
look up, based on the target physical address, corresponding permissions information indicative of corresponding access permissions defined in a device permission table for a region of physical address space encompassing the target physical address, wherein the corresponding access permissions provide information for checking whether translated access requests from a plurality of software contexts are prohibited;
determine, based on the corresponding permissions information, whether the given software context is prohibited from accessing a target memory location corresponding to the target physical address in response to translated access requests; and
when it is determined that the given software context is prohibited from accessing the target memory location in response to translated access requests, trigger an error response.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein
the translated access control circuitry is configured to support at least one encoding of an entry of the device permissions table that identifies at least one access permission associated with an identified software context specified from among a plurality of software contexts by the entry of the device permissions table.

### Claim 3 (depends on 1)

The apparatus of claim 1, wherein
the translated access control circuitry is configured to support the device permission table comprising a plurality of entries indexed by physical address, wherein each of the plurality of entries is shared between the plurality of contexts and identifies an access permission for an associated region of physical address space.

### Claim 4 (depends on 3)

The apparatus of claim 3, wherein:
the access permission comprises a device permission level selected from a plurality of device permission levels; and
the at least one permission level comprises at least one of:
a private permission level identifying an identified software context of the plurality of software contexts and indicating that translated access requests associated with processes other than the identified software context are prohibited from accessing the associated region of physical address space; and
a shared permission level identifying an identified software context of the plurality of software contexts and indicating that translated access requests associated with processes other than the identified software context and a supervisor process operating at a higher privilege level than plurality of software contexts are prohibited from accessing the associated region of physical address space.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein:
the translated access control circuitry is configured to look up, based on a device identifier specified in the translated access request, corresponding device configuration information indicative of the given software context associated with the device identifier; and
when the corresponding permissions information specifies said at least one access permission associated with the identified software context, the translated access control circuitry is configured to determine whether the given software context is prohibited from accessing the target memory location in response to translated access requests based on a comparison of the given software context and the identified software context.

### Claim 6 (depends on 5)

The apparatus of claim 5 wherein
the translated access control circuitry is configured to support the device configuration table comprising a plurality of entries indexed by device identifier, wherein each of the plurality of entries identifies device configuration information for an associated device.

### Claim 7 (depends on 6)

The apparatus of claim 6, wherein:
the device configuration information in each of the plurality of entries comprises privilege information indicating whether the associated device is prohibited from issuing translated access requests;
the privilege information comprises a privilege level selected from a plurality of privilege levels; and
the plurality of privilege levels include at least one privilege level indicating that the associated device is permitted to issue translated access requests even when the device permission table indicates that access to a subset of physical address space in response to translated access requests is prohibited for the at least one software context associated with the device identifier.

### Claim 8 (depends on 1)

The apparatus of claim 1, comprising
a device permission cache configured to store permissions information corresponding to a subset of access permissions defined in the device permission table,
wherein the translated access control circuitry is responsive to the translated access request to look up, based on the target physical address of the translated access request, the corresponding permissions information in the device permission cache.

### Claim 9 (depends on 8)

The apparatus of claim 8, wherein
the translated access control circuitry is responsive to the advance address translation request to determine the corresponding permissions information for the region of physical address space encompassing the target physical address, and to store the corresponding permissions information to the device permission cache.

### Claim 10 (depends on 8)

The apparatus of claim 8, wherein:
the address translation circuitry is configured to look up, in response to the advance address translation request, a set of translation table permissions defined in an address translation table entry corresponding to the given virtual address and the given software context; and
the translated access control circuitry is configured to determine the corresponding permissions information in dependence on the translation table permissions, and to store the corresponding permissions information to the device permission cache.

### Claim 11 (depends on 10)

The apparatus of claim 10, wherein
the translated access control circuitry is responsive to determining, based on the translation table permissions, that at least one of the corresponding access permissions for the given physical address is unknown from the translation table permissions, to set, as the corresponding permissions information to be stored to the device permission cache, a default access permission.

### Claim 12 (depends on 1)

The apparatus of claim 1, comprising
device permission table walk circuitry configured to look up a multi-level table representing the device permission table,
wherein:
each level of the multi-level table comprises entries associated with successively smaller regions of the physical address space;
a final level of the multi-level page table defines the access permissions; and
each level other than the final level defines pointers to a plurality of tables in the next level, the pointers being selectable based on a portion of a physical address.

### Claim 13 (depends on 12)

The apparatus of claim 12, wherein at least one of:
an upper limit of a number of levels of the multi-level table supported by the device permission table walk circuitry is less than an upper limit of the number of levels of page tables supported by page table walk circuitry; and
the device permission table walk circuitry is configured to support at least one encoding of an entry of at least one level other than the final level indicating an access permission that applies to an entire block of physical address space covered by that entry at said at least one level other than the final level.

### Claim 14

(canceled)

### Claim 15 (depends on 1)

The apparatus of claim 1, comprising
a device permission cache configured to store permissions information corresponding to a subset of access permissions defined in the device permission table,
wherein the translated access control circuitry is configured to support at least one encoding of an entry of the device permissions table indicating that access permissions for each of a plurality of regions of physical address space are identical and can be represented by a single entry in the device permission cache corresponding to a predetermined one of the plurality of regions.

### Claim 16 (depends on 1)

The apparatus of claim 1, wherein:
the translated access request is associated with a security state selected from amongst a plurality of possible security states; and
the lookup of the corresponding permissions information is based on the security state and the target physical address.

### Claim 17 (depends on 15)

The apparatus of claim 15, wherein
the translated access control circuitry is configured to support a plurality of device permission tables, each corresponding to a different security state.

### Claim 18 (depends on 1)

The apparatus of claim 1, wherein
the translated access control circuitry is configured to support, as the device permission table, a table shared between a plurality of devices to define access permissions for translated accesses issued by the plurality of devices.

### Claim 19 (depends on 1)

The apparatus of claim 1, comprising:
a device permission cache configured to store permissions information corresponding to a subset of access permissions defined in the device permission table;
processing circuitry configured to execute software; and
device permission cache control circuitry configured to invalidate entries in the device permissions cache in response to a device permission cache maintenance command triggered by the software executing on the processing circuitry and having a different encoding to a translation look-aside buffer invalidation command for triggering invalidation of page table information from a translation look-aside buffer.

### Claim 20

A method comprising:
in response to an advance address translation request issued by a requester device on behalf of a given software context and specifying a given virtual address, translating the given virtual address into a given physical address and providing the given physical address to the requester device to be associated with a subsequent translated access request issued by the requester device; and
in response to a translated access request, issued by the requester device on behalf of the given software context and specifying a target physical address, translated access control circuitry performing steps of:
looking up, based on the target physical address, corresponding permissions information indicative of corresponding access permissions defined in a device permissions table for a region of physical address space encompassing the target physical address, wherein the corresponding access permissions provide information for checking whether translated access requests from a plurality of software contexts are prohibited;
determining, based on the corresponding permissions information, whether the given software context is prohibited from accessing a target memory location corresponding to the target physical address in response to translated access requests; and
when it is determined that the given software context is prohibited from accessing the target memory location in response to translated access requests, triggering an error response.

### Claim 21

A computer-readable medium to store computer-readable code for fabrication of an apparatus comprising:
address translation circuitry configured to translate, in response to an advance address translation request issued by a requester device on behalf of a given software context and specifying a given virtual address, the given virtual address into a given physical address and to provide the given physical address to the requester device to be associated with a subsequent translated access request issued by the requester device; and
translated access control circuitry responsive to a translated access request issued by the requester device on behalf of the given software context and specifying a target physical address, to:
look up, based on the target physical address, corresponding permissions information indicative of corresponding access permissions defined in a device permission table for a region of physical address space encompassing the target physical address, wherein the corresponding access permissions provide information for checking whether translated access requests from a plurality of software contexts are prohibited;
determine, based on the corresponding permissions information, whether the given software context is prohibited from accessing a target memory location corresponding to the target physical address in response to translated access requests; and
when it is determined that the given software context is prohibited from accessing the target memory location in response to translated access requests, trigger an error response.
