MEMORY MANAGEMENT CIRCUITRY

- Arm Limited

There is provided an apparatus comprising processing circuitry to perform processing in a plurality of domains comprising at least a more secure domain and a less secure domain, and to support a more secure interface and a less secure interface, to couple devices to the plurality of domains. The apparatus is provided with memory management circuitry to provide a more secure memory management unit to perform address translation for devices coupled to the more secure interface, and a less secure memory management unit to perform address translation for devices coupled to the less secure interface. The apparatus is provided with control circuitry responsive to identification that a device coupled to the less secure interface has satisfied a condition, to de-couple the device from the less secure interface and to re-couple the device to the more secure interface whilst maintaining the operating state of the device.

Skip to: Description  ·  Claims  · Patent History  ·  Patent History
Description

The present techniques relate to data processing. Furthermore, the present techniques relate to an apparatus, a method, and a computer program.

Some apparatuses are provided with processing circuitry to perform processing in a plurality of domains including a more secure domain and a less secure domain. External devices may be coupled to the processing circuitry using one or more virtual interfaces. The one or more virtual interfaces may be associated with different domains.

According to a first aspect of the present techniques there is provided an apparatus comprising:

    • processing circuitry configured to perform processing in a plurality of domains comprising at least a more secure domain and a less secure domain, each of the plurality of domains associated with a respective physical address space, wherein the processing circuitry is configured to support a plurality of virtual interfaces to couple external devices to the plurality of domains, the plurality of virtual interfaces comprising a more secure interface configured to enable access to the more secure domain, and a less secure interface configured to enable access to the less secure domain;
    • memory management circuitry configured to perform address translation on behalf of the one or more devices, wherein the memory management circuitry is configured to provide a more secure memory management unit to perform address translation on behalf of a first subset of the external devices coupled to the more secure interface to enable the first subset to access at least the respective physical address space of the more secure domain, and a less secure memory management unit to perform address translation on behalf of a second subset of the external devices coupled to the less secure interface to enable the second subset to access the respective physical address space of the less secure domain; and
    • control circuitry responsive to identification that a device coupled to the less secure interface has satisfied at least one predetermined condition, to set a state of the device to a non-modifiable state, to de-couple the device from the less secure interface and to re-couple the device to the more secure interface whilst maintaining the operating state of the device.

According to a second aspect of the present techniques there is provided a method comprising:

    • performing processing in a plurality of domains comprising at least a more secure domain and a less secure domain, each of the plurality of domains associated with a respective physical address space, wherein the processing comprises supporting a plurality of virtual interfaces to couple external devices to the plurality of domains, the plurality of virtual interfaces comprising a more secure interface configured to enable access to the more secure domain and a less secure interface configured to enable access to the less secure domain;
    • performing address translation on behalf of the one or more devices, by providing a more secure memory management unit to perform address translation on behalf of a first subset of the external devices coupled to the more secure interface to enable the first subset to access at least the respective physical address space of the more secure domain, and a less secure memory management unit to perform address translation on behalf of a second subset of the external devices coupled to the less secure interface to enable the second subset to access the respective physical address space of the less secure domain; and
    • in response to identification that a device coupled to the less secure interface has satisfied at least one predetermined condition, setting a state of the device to a non-modifiable state, de-coupling the device from the less secure interface and re-coupling the device to the more secure interface whilst maintaining the operating state of the device.

According to a third aspect of the present techniques there is provided a computer program for controlling a host data processing apparatus to provide an instruction execution environment, the computer program comprising:

    • processing program logic configured to perform processing in a plurality of domains comprising at least a more secure domain and a less secure domain, each of the plurality of domains associated with a respective physical address space, wherein the processing program logic is configured to support a plurality of virtual interfaces to couple external devices to the plurality of domains, the plurality of virtual interfaces comprising a more secure interface configured to enable access to the more secure domain and a less secure interface configured to enable access to the less secure domain;
    • memory management program logic configured to perform address translation on behalf of the one or more devices, wherein the memory management program logic is configured to provide a more secure memory management unit to perform address translation on behalf of a first subset of the external devices coupled to the more secure interface to enable the first subset to access at least the respective physical address space of the more secure domain, and a less secure memory management unit to perform address translation on behalf of a second subset of the external devices coupled to the less secure interface to enable the second subset to access the respective physical address space of the less secure domain; and
    • control program logic responsive to identification that a device coupled to the less secure interface has satisfied at least one predetermined condition, to set a state of the device to a non-modifiable state, to de-couple the device from the less secure interface and to re-couple the device to the more secure interface whilst maintaining the operating state of the device.

According to a fourth aspect of the present techniques there is provided a computer program according to the third aspect stored on a computer readable storage medium. In some configurations the computer readable storage medium is a non-transitory computer readable storage medium.

The present techniques will be described further, by way of example only, with reference to configurations thereof as illustrated in the accompanying drawings, in which:

FIG. 1a schematically illustrates an apparatus according to some configurations of the present techniques;

FIG. 1b schematically illustrates an apparatus according to some configurations of the present techniques;

FIG. 2 schematically illustrates an apparatus according to some configurations of the present techniques;

FIG. 3 schematically illustrates an apparatus according to some configurations of the present techniques;

FIG. 4 schematically illustrates aliasing of physical address spaces according to some configurations of the present techniques;

FIG. 5 schematically illustrates architectural physical address spaces and a system physical address space according to some configurations of the present techniques;

FIG. 6 schematically illustrates a sequence of steps carried out according to some configurations of the present techniques;

FIG. 7 schematically illustrates an apparatus according to some configurations of the present techniques;

FIG. 8 schematically illustrates an apparatus according to some configurations of the present techniques;

FIG. 9 schematically illustrates a sequence of steps according to some configurations of the present techniques; and

FIG. 10 schematically illustrates a simulator implementation according to some configurations of the present techniques.

Some configurations of the present techniques provide an apparatus comprising processing circuitry configured to perform processing in a plurality of domains comprising at least a more secure domain and a less secure domain, each of the plurality of domains associated with a respective physical address space. The processing circuitry is configured to support a plurality of virtual interfaces to couple external devices to the plurality of domains, the plurality of virtual interfaces comprising a more secure interface configured to enable access to the more secure domain, and a less secure interface configured to enable access to the less secure domain. The apparatus comprises memory management circuitry configured to perform address translation on behalf of the one or more devices. The memory management circuitry is configured to provide a more secure memory management unit to perform address translation on behalf of a first subset of the external devices coupled to the more secure interface to enable the first subset to access at least the respective physical address space of the more secure domain, and a less secure memory management unit to perform address translation on behalf of a second subset of the external devices coupled to the less secure interface to enable the second subset to access the respective physical address space of the less secure domain. The apparatus is provided with control circuitry responsive to identification that a device coupled to the less secure interface has satisfied at least one predetermined condition, to set a state of the device to a non-modifiable state, to de-couple the device from the less secure interface and to re-couple the device to the more secure interface whilst maintaining the operating state of the device.

The processing circuitry is configured to perform processing in a plurality of domains. The domains include at least a more secure domain and a less secure domain. However, in some configurations the plurality of domains may comprise additional domains, e.g., a root domain and/or an additional secure domain. Each of the plurality of domains is associated with its own physical address space. This enables isolation of data from different domains within at least part of the memory system. The respective physical address space of the more secure domain (otherwise referred to as the more secure physical address space) is inaccessible to processes executing in the less secure domain and to devices coupled to the less secure interface. On the other hand, the respective physical address space of the less secure domain (otherwise referred to as the less secure physical address space) may be accessible to processes executing in both the more secure domain and the less secure domain and to devices coupled to both the more secure interface and to the less secure interface.

The provision of different physical address spaces means that code (or processes) executing in the more secure domain do not need to trust code (or processes) executing in the less secure domain. This isolation of address spaces can be advantageous for data security. In particular, by restricting processes executing in the more secure domain, certification and attestation of processes operating in the more secure domain can be simplified. In other words, it becomes possible to verify that code executed in the secure domain satisfies a set of anticipated properties. Translation of addresses for processes operating in each domain is handled by a memory management unit associated with the processing circuitry.

In addition to processing circuitry, the apparatus is configured to be coupled to a plurality of external devices. In order for the external devices to be able to access the physical address spaces associated with each of the plurality of domains, memory management circuitry is provided to perform address translation on behalf of the one or more devices. Whilst a physical device may be plugged into a single physical port associated with the apparatus, the present techniques provide a plurality of virtual interfaces to which the device can be coupled via the memory management circuitry. The virtual interfaces comprise at least a more secure interface that is provided between the external devices and the more secure domain and a less secure interface that is provided between the external devices and the less secure domain. The more secure interface enables a first subset of devices coupled to the more secure interface to access the more secure physical address space via a more secure memory management unit provided by the memory management circuitry to enable address translation for the more secure physical address space and, in some configurations, the less secure physical address space. The less secure interface enables a second subset of devices coupled to the less secure interface to access the less secure physical address space via a less secure memory management unit provided by the memory management circuitry to enable address translation for the less secure physical address space. However, the less secure interface is restricted such that the second subset of devices are unable to access the more secure physical address space. Processes running in the more secure domain are able to interact with devices via the more secure interface and the less secure interface. In addition, when coupled through the more secure interface, a given device may be unable to access the more secure physical address space, for example, if the more secure memory management unit has not yet been programmed with address translation data for the more secure physical address space.

When a device is first coupled to the apparatus, that device is assumed to be an untrusted device, i.e., mutual trust has not yet been established between the device and the more secure domain. For example, the device may be coupled to the less secure interface. Alternatively, the device may be coupled to the more secure interface, but may not yet be authenticated and, hence, may not be permitted to access the more secure physical address space, e.g., because the more secure memory management unit has not yet been programmed with address translation data for the more secure physical address space. The inventors have recognised that, whilst the device is untrusted, it would be beneficial to couple the device to at least some of the memory associated with the processing circuitry and that is accessible to the processes running in the more secure domain, for example, to enable initialisation procedures to be carried out by processes running in the more secure domain but without exposing the more secure physical address space to the device. The device is therefore coupled using the less secure interface and can theoretically interact with processes running in both the more secure domain and the less secure domain using the less secure memory management unit.

In particular, processes running in the more secure domain can make use of the less secure interface to interact with the device without exposing the more secure physical address space to the device. The device is unable to access the more secure physical address space and cannot read or modify data stored in the more secure physical address space. However, it may be desirable for the device to interact with the more secure physical address space once it has been determined that the device satisfies one or more conditions under the control of processes running in the more secure domain. Before the device is coupled to the more secure physical address space, it is first determined if the device satisfies at least one predetermined condition, for example, does the device behave in an expected manner, does software or hardware provided on the device satisfy one or more predetermined conditions required by the more secure domain. Alternatively, the at least one predetermined condition may be met when a request to transfer the device to the more secure interface is received (e.g., from software being executed in the more secure domain). If the device satisfies the at least one predetermined condition, then the device can theoretically be set into a non-modifiable state and access to the more secure domain can be enabled.

Changing the coupling of the device includes de-coupling the device from the less secure interface and, subsequently, re-coupling the device to the more secure interface. Because both the less secure interface and the more secure interface are virtual interfaces, the de-coupling and re-coupling are achieved virtually without the device being physically disconnected from the apparatus. During the de-coupling and re-coupling, the device maintains the operating state such that any settings modified whilst coupled to the less secure domain are retained during the re-coupling procedure. As part of the de-coupling and re-coupling, the device is put into the non-modifiable state (otherwise referred to as the locked state or immutable state). Changing the state of the device may occur before de-coupling the device, after decoupling the device but before re-coupling the device, or after the device has been re-coupled. The re-coupling may be considered to be a virtual “hot-swap” of the device between the less secure interface and the more secure interface. Advantageously, this enables a device to be accessed and potentially modified (e.g., setup) by processes running in the more secure domain (or, theoretically in the less secure domain, because both the less secure interface and the more secure interface can be accessed by the more secure domain) whilst preventing the device from being able to access the more secure physical address space. Subsequently, the device may then be swapped to the more secure interface. As a result, the security guarantees imposed by the more secure physical address space can be respected. This approach does not increase complexity of the circuitry and code required and does not require sharing of data from the more secure domain with the device. Furthermore, the more secure domain does not need to be modified to handle both the more secure memory management unit and the less secure memory management unit at the same time for a given device. Rather, the more secure domain interacts with the device via the less secure interface and the less secure memory management unit until the device is transferred to the more secure interface. At this point, the more secure domain interacts with the device via the more secure interface and the more secure memory management unit.

Whilst the more secure domain may provide a single execution environment, in some configurations the more secure domain is subdivided into a variable number of execution environments; and the processing circuitry is operable in at least one mode in which access to each given execution environment is restricted for each of the variable number of execution environments other than the given execution environment. For example, the more secure domain may be configurable by a hypervisor or other privileged software such that the domain can be split into one or more execution environments (e.g., virtual machines) where a size of each execution environment can be varied and the number of execution environments can also be varied. The variable number of execution environments may change during runtime and may each be associated with a same user or with different users. Because the same processing circuitry is capable of performing processing in the variable number of execution environments, the accessibility of processes and information associated with each of the variable number of execution environments is controlled. In particular, to prevent one execution environment from being able to access data or processes associated with another execution environment, control circuitry is provided to restrict access to each of the variable number of execution environments. The control circuitry is considered to be trusted circuitry that is responsible for managing the access restrictions between the execution environments. Hence, each execution environment is required to trust the control circuitry, but the execution environments do not need to have mutually established trust with one another. The control circuitry may be provided as physical circuitry that is distinct from the processing circuitry. On the other hand, the control circuitry may be provided by a hypervisor or Virtual Machine Manager (VMM) which, when executed by the processing circuitry or by further processing circuitry, causes the processing circuitry or further processing circuitry to operate as the control circuitry.

In some configurations the more secure interface is one of a variable number of more secure interfaces, each of the variable number of more secure interfaces associated with a corresponding one of the variable number of execution environments and, when operating in the at least one mode, the processing circuitry is configured for the given execution environment, to restrict access to a given interface associated with the given execution environment for each of the variable number of execution environments other than the given execution environment. In other words, when the device is coupled to the given interface for a given execution environment, then the device is able to interact with the given execution environment, e.g., can access portions of the more secure address space assigned to the given execution environment, but the device is unable to interact with other execution environments and cannot access portions of the more secure address space assigned to the other execution environments.

In some configurations the control circuitry is responsive to identification of the device, to initially couple the device to the less secure interface in an initialisation state to enable one or more initialisation steps to set the operating state of the device. The device may be operable in one of a plurality of states including the initialisation state and the locked state. The one or more initialisation steps may include transferring content to the device, transferring content from the device, programming the device, and/or modifying one or more control parameters associated with the device. When operating in the locked state, the device may still be able to interact with the domain to which it is coupled, but one or more parameters relating to the device may be locked such that they cannot be changed. For example, where the device is a hardware accelerator, it may be possible to initialise one or more processes to be performed by the hardware accelerator whilst in the initialisation state but not whilst the hardware accelerator is in the locked state. On the other hand, the processes may be executed in either the locked state or the initialisation state.

In addition to being able to de-couple the device from the less secure interface and re-couple the device to the more secure interface, in some configurations the control circuitry is responsive to a re-initialisation signal to de-couple the device from the more secure interface and to re-couple the device to the less secure interface. After being coupled to the more secure interface, the more secure domain may trigger one or more attestation processes to verify that the device is configured in a suitable manner. In the event that one of the one or more attestation processes fail, or one or more measurements relating to the device are not as expected, then further initialisation of the device may be required. Rather than unlocking the device and performing the further initialisation using the more secure interface, the device is “hot-swapped” back to the less secure interface whilst retaining state information associated with the device. Advantageously, this allows further initialisation without exposing the more secure physical address space to the device when it is not in the locked state. In some configurations the control circuitry is responsive to the re-initialisation signal to perform the de-coupling and re-coupling whilst maintaining the current state of the device. In some alternative configurations the control circuitry is responsive to the re-initialisation signal to perform the de-coupling and re-coupling without maintaining the current state of the device. For example, the state of the device may be reset in response to the re-initialisation signal.

In some configurations the control circuitry is responsive to the re-initialisation signal to set a state of the device to the initialisation state. Setting the state of the device to the initialisation state may be performed subsequent to the device being de-coupled form the more secure interface, for example, the state may be set once the device has been re-coupled to the less secure interface.

In some configurations the more secure memory management unit is configured to enable the first subset to access the respective physical address space of the less secure domain. The less secure physical address space may therefore be accessible to devices coupled to both the more secure interface and to the less secure interface.

In some configurations the less secure memory management unit is configured to prevent the second subset from accessing the respective physical address space of the more secure domain. In contrast to the less secure physical address space, the more secure physical address space is inaccessible from the less secure memory management unit. It is noted that, in some configurations, even if the less secure memory management unit were configured to allow access to the more secure physical address space, the downstream hardware would prevent the access to the more secure domain, for example, resulting in a granule protection fault. In other words, the less secure memory management unit may not itself be trusted by the more secure domain as it is controlled by the less secure domain.

The plurality of virtual interfaces may be any type of interface, however, in some configurations the plurality of virtual interfaces comprises one or more virtual PCIe interfaces. The Peripheral Component Interconnect Express (PCIe) interfaces may support transactions according to a PCIe-based protocol derived from the PCIe standard. For example, the PCIe-based protocol may be PCIe itself, or other protocols such as CXL (Compute Express Link) which is derived from PCIe. The PCIe protocol may comprise a layered protocol, which is based on multiple layers of packet formatting rules, with one-layer encapsulating, with additional packet headers/footers, a packet defined according to a preceding layer of the protocol. Examples of layered protocols include the PCIe-based protocols mentioned above as well as other protocols such as the AMBA® CHI Chip-to-Chip (C2C) protocol provided by Arm® Limited, which is used for chip-to-chip communication in a multi-chip compute system.

In some configurations the one or more virtual PCIe interfaces comprises the more secure interface and the less secure interface.

In some configurations each of the one or more virtual PCIe interfaces comprises a virtual PCIe root complex. The PCIe root complex is coupled between the devices and the processing circuitry and handles requests between the devices and memory.

The memory management circuitry may be any form of memory management circuitry, but in some configurations the memory management circuitry is a system memory management unit. A System Memory Management Unit (SMMU) includes address translation circuitry which controls address translation and memory permissions based on translation data defined in page table structures in memory. The SMMU may have one or more Translation Lookaside Buffers (TLBs) which have a similar functionality to the TLBs within a Memory Management Unit (MMU) of a processing core. Devices which access memory via the SMMU can include cached devices which include an internal cache and uncached devices which do not have any cache. For example, a device could include a display controller for controlling display of image frames on display, a network controller for controlling input or output of data via a network, a hardware accelerator for performing certain dedicated processing functions in a more efficient manner than can be achieved using software executing on a generic processor such as the CPU, and so on. The SMMU provides memory address translation services in respect of memory accesses performed by the external devices. At a basic level, an external device executes an application comprising processing instructions, and as part of that execution memory accesses are required. As far as the external devices are concerned, such memory accesses are defined by virtual memory addresses (VA) in an address space applicable to that application, whereas main memory is accessible according to physical memory addresses in one of the physical address spaces. Therefore, there is a need for translation of a VA to a PA. The translation process can provide a potentially improved level of security by denying individual applications direct access to physical memory.

In an example operation, an external device issues a transaction request involving a memory access to the SMMU via one of the more secure or less secure interfaces. The SMMU processes that transaction and returns a response to the external device which initiated that transaction request. In doing so, the SMMU translates a VA defined by the transaction request into a corresponding PA in the respective physical address space for the interface through which the external device is coupled, performs a memory access according to that PA and returns a result of that memory access to the initiating external device.

In some configurations the apparatus is provided with physical address space selection circuitry to select a selected physical address space for memory access requests from among a plurality of physical address spaces including the respective physical address space of the more secure domain and the respective physical address space of the less secure domain, the more secure physical address space being prohibited from being selected for the memory access requests associated with the less secure domain. The physical address space selection circuitry may be provided in the form of granule protection checking circuitry configured to perform a granule protection check (GPC) to determine, based on granule protection information associated with a target granule of physical addresses, whether a selected physical address space selected from among the plurality of physical address spaces is permitted to access the target granule of physical addresses. The selection circuitry therefore provides control over which physical address spaces are permitted to access certain granules of physical addresses. This can allow the apparatus to provide hardware enforced controls over accesses to locations in memory. For example, memory access requests may be associated with one of the plurality of physical address spaces. Certain software processes may be prohibited from issuing memory access requests associated with certain physical address spaces, and hence the GPC can be used to prevent certain software processes from accessing certain granules of physical addresses. A software process may be unable to access a particular memory location identified by a target physical address if it is unable to issue a memory access request in a physical address space which is permitted to access a target granule of physical addresses comprising that target physical address. The granule protection check may comprise a granule protection lookup to obtain the granule protection information. The granule protection lookup may be performed in a granule protection table (GPT) stored in memory. However, in some examples, one or more portions of the GPT, such as particular items of granule protection information (GPI) may be cached in locations which are faster to access than memory, and hence the lookup may also or alternatively be performed in a cache structure. The GPI may be specified for granules (e.g., contiguous blocks) of physical addresses all able to be accessed via the same physical address spaces. It will be appreciated that for the purposes of the present invention, the details (e.g., size) of the granule of physical addresses is not particularly limited. The size of a granule may be configurable, such as 4 KB (e.g., the same size as a memory page), 16 KB, or 64 KB, for example. Physical addresses specified in a physical address space not permitted to access a target granule of physical addresses can therefore be prevented from accessing the data stored at a target physical address in that granule. This can provide a strong hardware enforced barrier to prevent software processes accessing data they are not permitted to access.

In some configurations the apparatus is provided with at least one memory system component configured to treat aliasing physical addresses associated with different physical address spaces as if they specify different memory system resources, even when the aliasing physical addresses actually correspond to a same memory system resource. For example, the memory system may include a point of physical aliasing (PoPA), which is a point at which aliasing physical addresses from different physical address spaces which correspond to the same memory system resource are mapped (de-aliased) to a single physical address uniquely identifying that memory system resource. The memory system may include at least one pre-PoPA memory system component which is provided upstream of the PoPA, which treats the aliasing physical addresses as if they correspond to different memory system resources.

For example, the at least one pre-PoPA memory system component could include a cache or translation lookaside buffer which may cache data, program code or address translation information for the aliasing physical addresses in separate entries, so that if the same memory system resource is requested to be accessed from different physical address spaces, then the accesses will cause separate cache or TLB entries to be allocated. Also, the pre-PoPA memory system component could include coherency control circuitry, such as a coherent interconnect, snoop filter, or other mechanism for maintaining coherency between cached information at respective master devices. The coherency control circuitry could assign separate coherency states to the respective aliasing physical addresses in different physical address spaces. Hence, the aliasing physical addresses are treated as separate addresses for the purpose of maintaining coherency even if they do actually correspond to the same underlying memory system resource. Although on the face of it, tracking coherency separately for the aliasing physical addresses could appear to cause a problem of loss of coherency, in practice this is not a problem because if processes operating in different domains are really intended to share access to a particular memory system resource then they can use the less secure physical address space to provide access to that resource. Another example of a pre-PoPA memory system component may be a memory protection engine which is provided for protecting data saved to off-chip memory against loss of confidentiality and/or tampering. Such a memory protection engine could, for example, separately encrypt data associated with a particular memory system resource with different encryption keys depending on which physical address space the resource is accessed from, effectively treating the aliasing physical addresses as if they were corresponding to different memory system resources (e.g. an encryption scheme which makes the encryption dependent on the address may be used, and the physical address space identifier may be considered to be part of the address for this purpose).

Regardless of the form of the pre-PoPA memory system component, it can be useful for such a PoPA memory system component to treat the aliasing physical addresses as if they correspond to different memory system resources, as this provides hardware-enforced isolation between the accesses issued to different physical address spaces so that information associated with one domain cannot be leaked to another domain by features such as cache timing side channels or side channels involving changes of coherency triggered by the coherency control circuitry.

It may be possible, in some implementations, for the aliasing physical addresses in the different physical address spaces to be represented using different numeric physical address values for the respective different physical address spaces. This approach may require a mapping table to determine at the PoPA which of the different physical address values correspond to the same memory system resource. However, this overhead of maintaining the mapping table may be considered unnecessary, and so in some implementations it may be simpler if the aliasing physical addresses comprise physical addresses which are represented using the same numeric physical address value in each of the different physical address spaces. If this approach is taken then, at the point of physical aliasing, it can be sufficient simply to discard the physical address space identifier which identifies which physical address space is accessed using a memory access, and then to provide the remaining physical address bits downstream as a de-aliased physical address.

Hence, in addition to the pre-PoPA memory system component, the memory system may also include a PoPA memory system component configured to de-alias the plurality of aliasing physical addresses to obtain a de-aliased physical address to be provided to at least one downstream memory system component. The PoPA memory system component could be a device accessing a mapping table to find the dealiased address corresponding to the aliasing address in a particular address space, as described above. However, the PoPA component could also simply be a location within the memory system where the physical address tag associated with a given memory access is discarded so that the physical address provided downstream uniquely identifies a corresponding memory system resource regardless of which physical address space this was provided from. Alternatively, in some cases the PoPA memory system component may still provide the physical address space tag to the at least one downstream memory system component (e.g. for the purpose of enabling completer-side filtering as discussed further below), but the PoPA may mark the point within the memory system beyond which downstream memory system components no longer treat the aliasing physical addresses as different memory system resources, but consider each of the aliasing physical addresses to map the same memory system resource. For example, if a memory controller or a hardware memory storage device downstream of the PoPA receives the physical address tag and a physical address for a given memory access request, then if that physical address corresponds to the same physical address as a previously seen transaction, then any hazard checking or performance improvements performed for respective transactions accessing the same physical address (such as merging accesses to the same address) may be applied even if the respective transactions specified different physical address space tags. In contrast, for a memory system component upstream of the PoPA, such hazard checking or performance improving steps taken for transactions accessing the same physical address may not be invoked if these transactions specify the same physical address in different physical address spaces.

In some configurations the apparatus comprises a physical interface configured to couple the processing circuitry to the one or more devices, and each of the more secure interface and the less secure interface is a virtual instance of the physical interface. Hence, when the control circuitry is performing the steps of de-coupling the device from the less secure interface and re-coupling the device to the more secure interface, the physical device may remain physically coupled to the same physical interface.

In some configurations the memory management circuitry is configured to prevent the second subset from accessing the respective physical address space of the more secure domain. As discussed, the less secure physical address space may be accessed by devices coupled to both the more secure and less secure interfaces. However, devices coupled to the less secure interface are restricted (prohibited) from accessing the more secure physical address space.

In some configurations the control circuitry is configured to identify that the at least one predetermined condition has been satisfied in response to one or more initialisation steps being completed. The one or more initialisation steps may involve programming the device and the one or more initialisation steps may be signalled as completed by a request from software operating in the more secure domain.

Some configurations of the present techniques will now be described with reference to the accompanying figures.

FIGS. 1a and 1b schematically illustrates an apparatus 100 according to some configurations of the present techniques. The apparatus 100 is provided with processing circuitry 101, control circuitry 102, and an external device 104. The processing circuitry 101 is arranged to perform processing in a plurality of domains including a more secure domain 105 and a less secure domain 107. Each of the plurality of processing domains is associated with a respective physical address space. In particular, the more secure domain 105 is associated with a more secure physical address space (PAS) 112 and the less secure domain 107 is associated with a less secure physical address space 111. Whilst the less secure physical address space 111 is accessible from both the less secure domain 107 and the more secure domain 105, the more secure address space 112 is accessible to the more secure domain 105 and is not accessible to the less secure domain 107.

The processing circuitry 101 also supports a plurality of virtual interfaces, each associated with a respective one of the plurality of domains. In the illustrated configurations, the processing circuitry 101 supports a more secure interface 106 associated with the more secure domain and a less secure interface 108 associated with the less secure domain. The plurality of virtual interfaces is provided to enable coupling between the device 104 and the plurality of physical address spaces. In particular, the less secure interface 108 is provided to enable the more secure domain 105 and the device to interact with one another without the deice 104 gaining access to the more secure physical address space 112. The less secure interface 108 may also enable the less secure domain 107 and the device 104 to interact with one another. The more secure interface 106 is provided to enable the more secure domain 105 and the device 104 to interact with one another.

The memory management circuitry 103, is provided to perform address translation on behalf of the device 104 (and any other external devices coupled to the processing circuitry). The memory management circuitry 103 is configured to provide a more secure SMMU (System Memory Management Unit) 109 configured to perform address translation on behalf of the device 104 when coupled via the more secure interface to the more secure domain. The memory management circuitry 103 is also provided with a less secure SMMU 110 configured to perform address translation on behalf of the device 104 when coupled to the more secure domain via the less secure interface (and on behalf of the device 104 when coupled to the less secure domain via the less secure interface).

The control circuitry 102 is provided to manage the coupling between the device 104 and the respective interfaces (the more secure interface 106 and the less secure interface 108). In particular, the control circuitry is capable of de-coupling the device 104 from one of the less secure interface 108 and the more secure interface 106, and re-coupling the device 104 to the other of the less secure interface 108 and the more secure interface 106.

In particular, and as illustrated in FIG. 1a, the device 104 may be initially coupled to the more secure domain 105 via the less secure interface 108. Hence, processes running in the more secure domain 105 may interact with the device 104 via the less secure interface without exposing the more secure physical address space 112 to the device 104. The device 104, when coupled to the less secure interface 108 is able to access the less secure physical address space 111 via the less secure SMMU 110.

The control circuitry 102 is responsive to identification that the device 104, which is initially coupled to the less secure interface 108, has satisfied at least one predetermined condition, to trigger the device to be recoupled to the more secure interface. The determination that the device 104 has satisfied the at least one condition may be made in response to receipt of a request to trigger the recoupling from a control process running in the more secure domain 105. The control circuitry is configured, when triggering the recoupling, to set the device 104 to a non-modifiable state, to de-couple the device 104 from the less secure interface 108 and to re-couple the device 104 to the more secure interface 106. The re-coupling performed by the control circuitry 102 is a virtual re-coupling that maintains the operating state of the device 104 which is effectively hot-swapped from the less secure interface 108 to the more secure interface 106. The device 104 itself is not physically unplugged from the processing apparatus 100 and retains state information throughout the re-coupling. Rather, the control circuitry 102 modifies the virtual interface to which that device 104 is coupled enabling the device 104 to access the more secure SMMU 109 when coupled to the more secure interface 106.

FIG. 1b schematically illustrates the coupling between the device 104 and the system once the device has been recoupled to the more secure interface 106. In particular, processes running in the more secure domain 105 are able to interact with the device 104 using the more secure interface 106 and (like the processes running in the more secure domain 105) the device 104 is able to access both the more secure physical address space 112 and the less secure physical address space 111 through the more secure SMMU 109.

FIGS. 2 to 5 describe such an architecture which may be used to implement the apparatus according to some configurations of the present techniques.

FIG. 2 schematically illustrates an example of a data processing system 2 having at least one requester device 4 and at least one completer device 6. An interconnect 8 provides communication between the requester devices 4 and completer devices 6. A requester device is capable of issuing memory access requests requesting a memory access to a particular addressable memory system location. A completer device 6 is a device that has responsibility for servicing memory access requests directed to it. Although not shown in FIG. 2, some devices may be capable of acting both as a requester device and as a completer device. The requester devices 4 may for example include processing elements such as a central processing unit (CPU) or graphics processing unit (GPU) or other master devices such as bus master devices, network interface controllers, display controllers, etc. The completer devices may include memory controllers responsible for controlling access to corresponding memory storage units, peripheral controllers for controlling access to a peripheral device, etc. FIG. 2 shows an example configuration of one of the requester devices 4 in more detail but it will be appreciated that the other requester devices 4 could have a similar configuration. Alternatively, the other requester devices may have a different configuration to the requester device 4 shown in FIG. 2.

The requester device 4 shown in FIG. 2 has processing circuitry 10 for performing data processing in response to instructions, with reference to data stored in registers 12. The registers 12 may include general purpose registers for storing operands and results of processed instructions, as well as control registers for storing control data for configuring how processing is performed by the processing circuitry. For example, the control data may include a current domain indication 14 used to select which domain of operation is the current domain, and a current exception level indication 15 indicating which exception level is the current exception level in which the processing circuitry 10 is operating.

The processing circuitry 10 may be capable of issuing memory access requests specifying a virtual address (VA) identifying the addressable location to be accessed and a domain identifier (Domain ID or ‘security state’) identifying the current domain. Address translation circuitry 16 (e.g., a memory management unit (MMU)) translates the virtual address into a physical address (PA) through one of more stages of address translation based on page table data defined in page table structures stored in the memory system. A translation lookaside buffer (TLB) 18 acts as a lookup cache for caching some of that page table information for faster access than if the page table information had to be fetched from memory each time an address translation is required. In this example, as well as generating the physical address, the address translation circuitry 16 also selects one of a number of physical address spaces associated with the physical address and outputs a physical address space (PAS) identifier identifying the selected physical address space. Selection of the PAS will be discussed in more detail below.

A PAS filter 20 acts as checking circuitry for checking, based on the translated physical address and the PAS identifier, whether that physical address is allowed to be accessed within the specified physical address space identified by the PAS identifier. This lookup is based on granule protection information stored in a granule protection table structure stored within the memory system. The granule protection information may be cached within a granule protection information cache 22, similar to caching of page table data in the TLB 18. While the granule protection information cache 22 is shown as a separate structure from the TLB 18 in the example of FIG. 2, in other examples these types of lookup caches could be combined into a single lookup cache structure so that a single lookup of an entry of the combined structure provides both the page table information and the granule protection information. The granule protection information defines information restricting the physical address spaces from which a given physical address can be accessed, and based on this lookup the PAS filter 20 determines whether to allow the memory access request to proceed to be issued to one or more caches 24 and/or the interconnect 8. If the specified PAS for the memory access request is not allowed to access the specified physical address, then the PAS filter 20 blocks the transaction and may signal a fault.

While FIG. 2 shows an example with a system having multiple requester devices 4, the features shown for the one requester device of FIG. 2 could also be included in a system where there is only one requester device, such as a single-core processor.

While FIG. 2 shows an example where selection of the PAS for a given request is performed by the address translation circuitry 16, in other examples information for determining which PAS to select can be output by the address translation circuitry 16 to the PAS filter 20 along with the PA, and the PAS filter 20 may select the PAS and check whether the PA is allowed to be accessed within the selected PAS. Hence, PAS selection circuitry could be provided by either the address translation circuitry 16, or the PAS filter 20, or both working together.

The provision of the PAS filter 20 helps to support a system which can operate in a number of domains of operation each associated with its own isolated physical address space where, for at least part of the memory system (e.g. for some caches or coherency enforcing mechanisms such as a snoop filter), the separate physical address spaces are treated as if they refer to completely separate sets of addresses identifying separate memory system locations, even if addresses within those address spaces actually refer to the same physical location in the memory system. This can be useful for security purposes.

The data processing system 2 of FIG. 2 is also coupled to a device 104 via the interconnect, and hence, to the completer devices 6 via a system memory management unit (SMMU) 103. The SMMU 103 provides memory address translation services in respect of memory accesses performed by the external devices 104. At a basic level, an external device 104 executes an application comprising processing instructions, and as part of that execution memory accesses are required. As far as the external devices are concerned, such memory accesses are defined by virtual memory addresses (VA) in an address space applicable to that application, whereas main memory is accessible according to physical memory addresses in one of the physical address spaces. Therefore, there is a need for translation of a VA to a PA. The translation process can provide a potentially improved level of security by denying individual applications direct access to physical memory.

In an example operation, an external device 104 issues a transaction request involving a memory access to the SMMU 103 via one of the more secure or less secure interfaces. The SMMU 103 processes that transaction and returns a response to the external device which initiated that transaction request. In doing so, the SMMU 103 translates a VA defined by the transaction request into a corresponding PA in the respective physical address space for the interface through which the external device is coupled, performs a memory access according to that PA and returns a result of that memory access to the initiating external device.

FIG. 3 shows an example of different operating states and domains in which the processing circuitry 10 can operate, and an example of types of software which could be executed in the different exception levels and domains (it will be appreciated that the particular software installed on a system is chosen by the parties managing that system and may vary within a given hardware architecture).

The processing circuitry 10 is operable at a number of different exception levels 80, in this example four exception levels labelled EL0, EL1, EL2 and EL3, where in this example EL3 refers to the exception level with the greatest level of privilege while EL0 refers to the exception level with the least privilege. It will be appreciated that other architectures could choose the opposite numbering so that the exception level with the highest number could be considered to have the lowest privilege. In this example the least privileged exception level EL0 is for application-level code, the next most privileged exception level EL1 is used for operating system-level code, the next most privileged exception level EL2 is used for hypervisor-level code which manages switching between a number of virtualised operating systems, while the most privileged exception level EL3 is used for monitor code which manages switches between respective domains and allocation of physical addresses to physical address spaces, as described later.

When an exception occurs while processing software in a particular exception level, for some types of exceptions, the exception is taken to a higher (more privileged) exception level, with the particular exception level in which the exception is to be taken being selected based on attributes of the particular exception which occurred. However, it may be possible for other types of exceptions to be taken at the same exception level as the exception level associated with the code being processed at the time an exception was taken, in some situations. When an exception is taken, information characterising the state of the processor at the time the exception was taken may be saved, including for example the current exception level at the time the exception was taken, and so once an exception handler has been processed to deal with the exception, processing may then return to the previous processing and the saved information can be used to identify the exception level to which processing should return.

In addition to the different exception levels, the processing circuitry also supports a number of domains of operation (also known as “security states”), the domains including a root domain 82, a secure(S) domain 84, a less secure domain 86 and a realm domain 88 (an example of the more secure domain of FIG. 1). For ease of reference, the less secure domain will be described below as the “non-secure” (NS) domain, but it will be appreciated that this is not intended to imply any particular level of (or lack of) security. Instead, “non-secure” merely indicates that the non-secure domain is intended for code which is less secure than code operating in the secure domain. The root domain 82 is selected when the processing circuitry 10 is in the highest exception level EL3. When the processing circuitry is in one of the other exception levels EL0 to EL2, the current domain is selected based on the current domain indicator 14, which indicates which of the other domains 84, 86, 88 is active. For each of the other domains 84, 86, 88 the processing circuitry could be in any of the exception levels EL0, EL1 or EL2.

At boot time, a number of pieces of boot code (e.g. BL1, BL2, OEM Boot) may be executed, e.g. within the more privileged exception levels EL3 or EL2. The boot code BL1, BL2 may be associated with the root domain for example and the OEM boot code may operate in the Secure domain. However, once the system is booted, at runtime the processing circuitry 10 may be considered to operate in one of the domains 82, 84, 86 and 88 at a time. Each of the domains 82 to 88 is associated with its own associated physical address space (PAS) which enables isolation of data from the different domains within at least part of the memory system. This will be described in more detail below.

The non-secure domain 86 can be used for regular application-level processing, and for the operating system and hypervisor activity for managing such applications. Hence, within the non-secure domain 86, there may be application code 30 operating at EL0, operating system (OS) code 32 operating at EL1 and hypervisor code 34 operating at EL2.

The secure domain 84 enables certain system-on-chip security, media or system services to be isolated into a separate physical address space from the physical address space used for non-secure processing. The secure and non-secure domains are not equal, in the sense that the non-secure domain code cannot access resources associated with the secure domain 84, while the secure domain can access both secure and non-secure resources. An example of a system supporting such partitioning of secure and non-secure domains 84, 86 is a system based on the TrustZone® architecture provided by Arm® Limited. The secure domain can run trusted applications 36 at EL0, a trusted operating system 38 at EL1, as well as optionally a secure partition manager 40 at EL2 which may, if secure partitioning is supported, use stage 2 page tables to support isolation between different trusted operating systems 38 executing in the secure domain 84 in a similar way to the way that the hypervisor 34 may manage isolation between virtual machines or guest operating systems 32 executing in the non-secure domain 86.

Extending the system to support a secure domain 84 has become popular in recent years because it enables a single hardware processor to support isolated secure processing, avoiding the need for the processing to be performed on a separate hardware processor. However, with the increasing popularity of use of the secure domain, many practical systems having such a secure domain now support, within the secure domain, a relatively sophisticated mixed environment of services which are provided by a wide range of different software providers. For example the code operating in the secure domain 84 may include different pieces of software provided by (among others): the silicon provider who manufactured the integrated circuit, an original equipment manufacturer (OEM) who assembles the integrated circuit provided by the silicon provider into an electronic device such as a mobile telephone, an operating system vendor (OSV) who provides the operating system 32 for the device; and/or a cloud platform provider who manages a cloud server supporting services for a number of different clients through the cloud.

However, increasingly there is a desire for parties providing user-level code (which might normally be expected to execute as applications 30 within the non-secure domain 86) to be provided with secure computing environments which can be trusted not to leak information to other parties operating code on the same physical platform. It may be desirable for such secure computing environments to be dynamically allocated at runtime, and to be certified and attestable so that the user is able to verify whether sufficient security guarantee is provided on the physical platform, before trusting the device to process potentially sensitive code or data. A user of such software may not wish to trust the party providing a rich operating system 32 or hypervisor 34 which might normally operate in the non-secure domain 86 (or even if those providers themselves can be trusted, the user may wish to protect themselves against the operating system 32 or hypervisor 34 being compromised by an attacker). Also, while the secure domain 84 could be used for such user-provided applications needing secure processing, in practice this causes problems both for the user providing the code requiring the secure computing environment and for the providers of existing code operating within the secure domain 84. For the providers of existing code operating within the secure domain 84, the addition of arbitrary user-provided code within the secure domain would increase the attack surface for potential attacks against their code, which may be undesirable, and so allowing users to add code into the secure domain 84 may be strongly discouraged. On the other hand, the user providing the code requiring the secure computing environment may not be willing to trust all of the providers of the different pieces of code operating in the secure domain 84 to have access to its data or code, if certification or attestation of the code operating in a particular domain is needed as a prerequisite for the user-provided code to perform its processing, it may be difficult to audit and certify all of the distinct pieces of code operating in the secure domain 84 provided by the different software providers, which may limit the opportunities for third parties to provide more secure services.

Therefore, as shown in FIG. 3, an additional more secure domain 88, called the realm domain (an example of the more secure domain of FIG. 1), is provided which can be used by such user-introduced code to provide a secure computing environment orthogonal to any secure computing environment associated with components operating in the secure domain 24. In the realm domain, the software executed can include a number of realms (examples of execution environments), where each realm can be isolated from other realms by a realm management module (RMM) 46 operating at exception level EL2. The RMM 46 (which is an example of control circuitry according to some configurations of the present techniques) may control isolation between the respective realms 42, 44 executing the realm domain 88, for example by defining access permissions and address mappings in page table structures similar to the way in which hypervisor 34 manages isolation between different components operating in the non-secure domain 86. In this example, the realms include an application-level realm 42 which executes at EL0 and an encapsulated application/operating system realm 44 which executes across exception levels EL0 and EL1. It will be appreciated that it is not essential to support both EL0 and EL0/EL1 types of realms, and that multiple realms of the same type could be established by the RMM 46.

The realm domain 88 has its own physical address space allocated to it, similar to the secure domain 84, but the realm domain is orthogonal to the secure domain 84 in the sense that while the realm and secure domains 88, 84 can each access the non-secure PAS associated with the non-secure domain 86 (an example of the less secure domain of FIG. 1), the realm and secure domains 88, 84 cannot access each other's physical address spaces. This means that code executing in the realm domain 88 and secure domains 84 have no dependencies on each other. Code in the realm domain only needs to trust the hardware, the RMM 46 and the code operating in the root domain 82 which manages switching between domains, which means attestation and certification becomes more feasible. Attestation enables a given piece of software to request verification that code installed on the device matches certain anticipated properties (one or more predefined conditions). This could be implemented by checking whether a hash of the program code installed on the device matches an expected value that is signed by a trusted party using a cryptographic protocol. The RMM 46 and monitor code 29 could for example be attested by checking whether a hash of this software matches an expected value signed by a trusted party, such as the silicon provider who manufactured the integrated circuit comprising the processing system 2 or an architecture provider who designed the processor architecture which supports the domain-based memory access control. This can allow user-provided code 42, 44 to verify whether the integrity of the domain-based architecture can be trusted prior to executing any secure or sensitive functions.

Hence, it can be seen that the code associated with realms 42, 44, which would previously have executed in the non-secure domain 86 as shown by the dotted lines showing the gap in the non-secure domain where these processes would previously have executed, can now be moved to the realm domain where they may have stronger security guarantees because their data and code is not accessible by other code operating in a non-secure domain 86. However, due to the fact that the realm domain 88 and secure domain 84 are orthogonal and so cannot see each other's physical address spaces, this means that the providers of code in the realm domain do not need to trust the providers of code in the secure domain and vice versa. The code in the realm domain can simply trust the trusted firmware providing the monitor code 29 for the root domain 82 and the RMM 46, which may be provided by the silicon provider or the provider of the instruction set architecture supported by the processor, who may already inherently need to be trusted when the code is executing on their device, so that no further trust relationships with other operating system vendors, OEMs or cloud hosts are needed for the user to be able to be provided with a secure computing environment.

This can be useful for a range of applications and use cases, including for example mobile wallet and payment applications, gaming anti-cheating and piracy mechanisms, operating system platform security enhancements, secure virtual machine hosting, confidential computing, networking, or gateway processing for Internet of Things devices. It will be appreciated that users may find many other applications where the realm support is useful.

To support the security guarantees provided to a realm, the processing system may support an attestation report function, where at boot time or at run time measurements are made of firmware images and configuration, e.g., monitor code images and configuration or RMM code images and configuration and at runtime realm contents and configuration are measured, so that the realm owner can trace the relevant attestation report back to known implementations and certifications to make a trust decision on whether to operate on that system.

As shown in FIG. 3, a separate root domain 82 is provided which manages domain switching, and that root domain has its own isolated root physical address space. The creation of the root domain and the isolation of its resources from the secure domain allows for a more robust implementation even for systems which only have the non-secure and secure domains 86, 84 but do not have the realm domain 88, but can also be used for implementations which do support the realm domain 88. The root domain 82 can be implemented using monitor software 29 provided by (or certified by) the silicon provider or the architecture designer, and can be used to provide secure boot functionality, trusted boot measurements, system-on-chip configuration, debug control and management of firmware updates of firmware components provided by other parties such as the OEM. The root domain code can be developed, certified and deployed by the silicon provider or architecture designer without dependencies on the final device. In contrast the secure domain 84 can be managed by the OEM for implementing certain platform and security services. The management of the non-secure domain 86 may be controlled by an operating system 32 to provide operating system services, while the realm domain 88 allows the development of new forms of trusted execution environments which can be dedicated to user or third party applications while being mutually isolated from existing secure software environments in the secure domain 84.

FIG. 4 illustrates a mapping of multiple physical address spaces onto physical memory, a concept otherwise known as aliasing of the respective physical address spaces onto physical memory provided in hardware. As described earlier, each of the domains 82, 84, 86, 88 has its own respective physical address space 61.

At the point when a physical address is generated by address translation circuitry 16, the physical address has a value within a certain numeric range 62 supported by the system, which is the same regardless of which physical address space is selected. However, in addition to the generation of the physical address, the address translation circuitry 16 may also select a particular physical address space (PAS) based on the current domain 14 and/or information in the page table entry used to derive the physical address. Alternatively, instead of the address translation circuitry 16 performing the selection of the PAS, the address translation circuitry (e.g. MMU) could output the physical address and the information derived from the page table entry (PTE) which is used for selection of the PAS, and then this information could be used by the PAS filter or GMPU 20 to select the PAS.

The selection of PAS for a given memory access request may be restricted depending on the current domain in which the processing circuitry 10 is operating when issuing the memory access request, according to rules defined in the following table:

Current Non-Secure Domain PAS Secure PAS Realm PAS Root PAS Non-secure Accessible Inaccessible Inaccessible Inaccessible Secure Accessible Accessible Inaccessible Inaccessible Realm Accessible Inaccessible Accessible Inaccessible Root Accessible Accessible Accessible Accessible

For those domains for which there are multiple physical address spaces available for selection, the information from the accessed page table entry used to provide the physical address is used to select between the available PAS options.

Hence, at the point when the PAS filter 20 outputs a memory access request to the system fabric 24, 8 (assuming it passed any filtering checks), the memory access request is associated with a physical address (PA) and a selected physical address space (PAS).

From the point of view of memory system components (such as caches, interconnects, snoop filters etc.) which operate before the point of physical aliasing (PoPA) 60, the respective physical address spaces 61 are viewed as entirely separate ranges of addresses which correspond to different system locations within memory. This means that, from the point of view of the pre-PoPA memory system components, the range of addresses identified by the memory access request is actually four times the size of the range 62 which could be output in the address translation, as effectively the PAS identifier is treated as additional address bits alongside the physical address itself, so that depending on which PAS is selected the same physical address PAx can be mapped to a number of aliasing physical addresses 63 in the distinct physical address spaces 61. These aliasing physical addresses 63, all actually correspond to the same memory system location implemented in physical hardware, but the pre-PoPA memory system components treat aliasing addresses 63 as separate addresses. Hence, if there are any pre-PoPA caches or snoop filters allocating entries for such addresses, the aliasing addresses 63 would be mapped into different entries with separate cache hit/miss decisions and separate coherency management. This reduces likelihood or effectiveness of attackers using cache or coherency side channels as a mechanism to probe the operation of other domains.

The system may include more than one PoPA 60 (e.g. memory access requests specifying different physical addresses may be routed via different paths through the memory system and may be handled by different PoPAs 60). At each PoPA 60, the aliasing physical addresses are collapsed into a single de-aliased address 65 in the system physical address space 64. The de-aliased address 65 is provided downstream to any post-PoPA components, so that the system physical address space 64 which actually identifies memory system locations is once more of the same size as the range of physical addresses that could be output in the address translation performed on the requester side. For example, at the PoPA 60 the PAS identifier may be stripped out from the addresses, and for the downstream components the addresses may simply be identified using the physical address value, without specifying the PAS. Alternatively, for some cases where some completer-side filtering of memory access request is desired, the PAS identifier could still be provided downstream of the PoPA 60, but may not be interpreted as part of the address so that the same physical addresses appearing in different physical address spaces 60 would be interpreted downstream of the PoPA as referring to the same memory system location, but the supplied PAS identifier can still be used for performing any completer-side security checks.

FIG. 5 illustrates how the system physical address space 64 can be divided, using the granule protection table 56, into chunks allocated for access within a particular architectural physical address space 61. The granule protection table (GPT) 56 defines which portions of the system physical address space 65 are allowed to be accessed from each architectural physical address space 61. For example, the GPT 56 may comprise a number of entries each defining granule protection information (GPI) corresponding to a granule of physical addresses of a certain size (e.g. a 4K page). The GPI may assign a particular PAS for that granule, or may indicate that more than one PAS can be used to access the granule.

If a particular granule or set of granules of physical memory address space is defined in the GPT as being accessible from only one PAS, then it can only be accessed within that PAS and cannot be accessed within the PASs of the other domains. However, note that while a granule allocated to the secure PAS (for instance) cannot be accessed from within the root PAS, the root domain 82 is nevertheless able to access that granule of physical addresses by specifying in its page tables the PAS selection information for ensuring that virtual addresses associated with pages which map to that region of physical addressed memory are translated into a physical address in the secure PAS instead of the root PAS. Hence, the sharing of data across domains (to the extent permitted by the accessibility/inaccessibility rules defined in the table described earlier) may be controlled at the point of selecting the PAS for a given memory access request.

However, in some implementations, in addition to allowing a granule of physical addresses to be accessed within a single assigned PAS defined by the GPT, the GPT could use other GPT attributes to mark certain regions of the address space as shared with another address space (e.g. an address space associated with a domain of lower or orthogonal privilege which would not normally be allowed to select the assigned PAS for that domain's access requests). This can facilitate temporary sharing of data without needing to change the assigned PAS for a given granule. For example, in FIG. 5 the region 70 of the realm PAS is defined in the GPT as being assigned to the realm domain, so normally it would be inaccessible from the non-secure domain 86 because the non-secure domain 86 cannot select the realm PAS for its access requests. As the non-secure domain 26 cannot access the realm PAS, then normally non-secure code could not see the data in region 70. However, if the realm temporarily wishes to share some of its data in its assigned regions of memory with the non-secure domain then it could request that the monitor code 29 operating in the root domain 82 updates the GPT 56 to indicate that region 70 is to be shared with the non-secure domain 86, and this may make region 70 also be accessible from the non-secure PAS as shown on the left hand side of FIG. 5, without needing to change which domain is the assigned domain for region 70. If the realm domain has designated a region of its address space as shared with the non-secure domain, then although the memory access requests targeting that region which are issued from the non-secure domain may initially specify the non-secure PAS, the PAS filter 20 may remap the PAS identifier of the request to specify the realm PAS instead, so that downstream memory system components treat the request as if it was issued from the realm domain all along. This sharing can improve performance because the operations for assigning a different domain to a particular memory region may be more performance intensive involving a greater degree of cache/TLB invalidation and/or data zeroing in memory or copying of data between memory regions, which may be unjustified if the sharing is only expected to be temporary.

Other implementations may not support such sharing options and so the GPT may restrict each physical address to being accessible through one PAS only.

FIG. 6 schematically illustrates a sequence of steps carried out according to some configurations of the present techniques. Steps carried out whilst the device 104 is coupled to the less secure interface are set out on the left hand side of the figure and steps carried out whilst the device 104 is coupled to the more secure interface are set out in the right hand side of the figure. Flow begins at step S60 where a device, for example, the device 104, is coupled to processing circuitry via the less secure interface. The less secure interface enables the device 104 to access the less secure SMMU but prohibits the device from accessing the more secure SMMU. Flow then proceeds to step S61. At step S61 it is determined whether the device requires initialisation. If, at step S61, it is determined that the device requires initialisation, then flow proceeds to step S62 (otherwise labelled step A.0) where the device 104 is in a mutable (unlocked/modifiable) state. The device 104 is not initialised and is only able to access the less secure physical address space (non-secure PAS) via the less secure SMMU (non-secure SMMU). Flow then proceeds to step S63 (otherwise labelled step A.1) where the device 104 is programmed, for example, where the device is an accelerator, it may be programmed with a required AI/ML algorithm. The programming utilises the less secure SMMU to perform address translation on behalf of the device 104.

When the programming is complete, i.e., initialisation is complete (predetermined condition satisfied), flow then proceed to step S64 (otherwise labelled step A.2) where the device 104 remains in the mutable (unlocked/modifiable) state. The device 104 is now initialised, however, the device remains coupled through the less secure interface and is therefore only able to access the less secure physical address space via the less secure SMMU. If, at step S61, it is determined that initialisation is not required, i.e., initialisation is already complete (predetermined condition is met), then flow proceeds to step S64 as described above.

Subsequently, flow proceeds to step S65 (otherwise referred to as step A.3) where the control circuitry (for example, the hypervisor or VMM operating on processing circuitry) triggers a replug (re-couple) operation, e.g., initiated by software running in the more secure domain. The replug operation includes de-coupling the device 104 from the less secure interface (A.3), re-plugging the device to the more secure interface (A.4). The device 104 at step S66 (otherwise referred to as step B.0) is now in the unlocked state. The device 104 is initialised, and is coupled to the more secure interface (coupled to the realm root complex). The device is not yet verified and is denied access to the more secure physical address space. The device is therefore only able to access the less secure physical address space, which is accessible via the more secure SMMU. In other words, the device is serviced by the more secure SMMU. However, the device is not active and cannot access the more secure physical address space because the RMM has not yet programmed the more secure SMMU with the necessary page table information to access the more secure address space. Flow then proceeds to step S67 (otherwise referred to as B.1) where, as part of the re-coupling operation, the device 104 is put into the locked state. The device 104 is now in the immutable state (the locked state or non-modifiable state). The device 104 is also initialised, but has not yet been verified and can therefore only access the less secure physical address space via the less secure SMMU.

Flow then proceeds to step S69 (otherwise referred to as step B.2) where the device is verified and authenticated. If, at step S69, it is determined that the device is unable to be verified or authenticated, then flow proceeds to step S70 where the device is rejected without being allowed access to the more secure physical address space. The device 104 is de-coupled from the more secure interface and may be re-coupled to the less secure interface. If, at step S69, the device is verified and authenticated, then flow proceeds to step S71 (otherwise referred to as step B.3) where the device is measured to determine if the software loaded during the initialisation steps is present as expected. Flow then proceeds to step S72 (otherwise referred to as B.4) where it is determined if the measurements identified in step S71 are as expected, i.e., whether a hash of the measurements matches an expected hash. If, at step S72, it is determined that the measurements are not as expected, then flow proceeds to step S75 (otherwise referred to as step B.6) where the device 104 is de-coupled from the more secure interface and is re-coupled to the less secure interface before flow returns to step S60.

If, at step S72, it is determined that there is a hash match, i.e., the measurements match the expected values, then flow proceeds to step S73. At step S73, the device 104 is accepted (if it had not already been accepted). Accepting the device 104 sets the state of that device 104 to a secure immutable state and enables the device to access the more secure physical address space, i.e., enables the device 104 to be coupled to the more secure SMMU. Flow then proceeds to step S74 where the device 104 has been initialised and the more secure SMMU is activated. Once the device is activated (accepted), the RMM programs the more secure SMMU with access to page tables for address translation associated with the more secure physical address space. The device 104 is then able to access both the less secure address space and the more secure address space via the more secure SMMU. Flow then proceeds to step S76 (otherwise referred to as B.6) where the device is able to run applications and interact with the more secure address space. After a predetermined time, or in response to one or more requests, flow returns to step S71 for the measurements to be re-confirmed.

The process of FIG. 6 is further described in relation to FIGS. 7 and 8. FIGS. 7 and 8 illustrate the virtual machine manager (VMM) 120, a realm 125, the Realm Management Module (RMM) 130 and an interface 123.

FIG. 7 schematically illustrates steps A.0 to A.4 as described in relation to FIG. 6. As illustrated in FIG. 7, the device (pdev) 104 is coupled to the interface 123. Initially, the device 104 is coupled, via the interface 123, to the respective physical address spaces by the less secure SMMU 122 (step A.0). In other words, whilst the device 104 is coupled to the interface 123, from a software perspective it is coupled to the less secure interface (NS-BUS) 129 and is able to access the less secure physical address space. The device is unable to access the more secure physical address space from the less secure interface 129.

Subsequently, in step A.1, the device 104 is accessed by a device programmer application 126 running in the realm 125 via a device driver 128. The realm 125 programs the device 104 using the less secure physical address space using the less secure interface 129. Once the programming is complete (e.g., one or more initialisation steps have been completed) the device 104 is in state A.2 as described in relation to FIG. 6 and is ready to be hot-swapped to the more secure interface.

In step A.3 the hot-swap operation is communicated from the realm 125 to the device manager 121 in the VMM 120 (step A.3.1), and the VMM 120 triggers the hot-swap operation. The hot-swap operation comprises triggering a switch 120 in the interface 120 to switch the instance of the SMMU (step A.3.2) used to access the device 104. In particular, this triggers the device 104 to be de-coupled from the less secure interface 129 and the less secure SMMU 122 and to be re-coupled to the more secure SMMU 131 and the more secure interface 133 (step A.4). The device 104 is now coupled to the more secure interface 133 and is capable of being supported by the more secure SMMU 131. Hence, under the control of software running in the more secure domain, the device 104 is able to access both the less secure physical address space and the more secure physical address space. However, at this stage the device has not been accepted and set into the secure state. Therefore, the software running on the more secure domain may request the RMM to enable access to the more secure physical address space but, as discussed above, the less secure SMMU may continue to service the device 104 until the device has been accepted.

FIG. 8 schematically illustrates steps B.0 to B.7 as described in relation to FIG. 6. As illustrated in FIG. 8, the device 104 is physically coupled to the interface 123 (e.g., as a result of the re-plug operation described in relation to FIG. 7). In step B.0, the device 104 is coupled to the more secure interface 133 (R-BUS) and is supported by the more secure SMMU 131. In an initial step, the realm 125 triggers the device driver 128 to cause the device 104 to be locked (put in a non-modifiable state). It is noted that this step may also be performed by the control circuitry (e.g., a hypervisor or VMM operating on processing circuitry). The realm 125 also triggers (in step B.2) the device driver 128 to request that the RMM 130 verifies and authenticates the device 104. The RMM 130 comprises authentication circuitry 132 which verifies and authenticates the device, e.g., performs one or more checks to ensure that the device 104 behaves as expected. The authentication step may involve the RMM requesting credentials from the device 104 and passing the credentials to software running in the more secure domain (the realm) for that software to perform the authentication. In such a flow, the role of the RMM is to verify that the credentials are coming from the device 104.

Subsequently, in step B.3 device measurements are provided to the realm 125 which confirms (step B.4) that the device measurements match the expected measurements. In the event that the measurements match, then the realm 125 accepts the device (step B.5) and indicates acceptance to the RMM 130. The RMM is responsive to receipt of the acceptance from the realm 125 to trigger the device 104 to transition to the secure state (step B.5.1). The RMM also configures the more secure SMMU instance to provide the device 104 with access to both the more secure and the less secure physical address spaces. Subsequently, the realm 125 is able to run jobs (execute code) 127 on the device 104 (step B.6) via the more secure interface supported by the more secure SMMU 131.

In the event that the measurements do not match the expected measurements, the realm 125 triggers (B.7) a hot-swap event including issuing a re-plug request, via the RMM 130, from the device driver 128 to the device manager 121 hosted by the VMM 120 (step B.7.1). Alternatively, the re-plug request may be initiated from the VMM 120. The device manager 121 triggers switch circuitry 120 in the interface 123 to de-couple the device 104 from the more secure interface 133 and the more secure SMMU 131, and to re-couple the device 104 to the less secure interface 129 and the less secure SMMU 122 (step B.7.2). Effectively, this triggers a hot re-plug event (B.8) to occur to cause the device 104 to be re-coupled to the less secure interface and to be de-coupled from the more secure interface. The hot re-plug event restricts the device 104 such that it can only couple to the less secure physical address space.

FIG. 9 schematically illustrates a sequence of steps carried out according to some configurations of the present techniques. Flow begins at step S90 where a device is coupled to the less secure domain via the less secure interface and is supported by the less secure SMMU. Address translation on behalf of the device is performed using the less secure SMMU. Flow then proceeds to step S91 where it is determined if a predetermined condition has been met. If, at step S91, it is determined that a predetermined condition has not been met, then flow returns to step S90. If, at step S91, it is determined that the predetermined condition has been met, then flow proceeds to step S92. At step S92, the device is set to the non-modifiable state. Flow then proceeds to step S93 where the device is de-coupled from the less secure interface. Flow then proceeds to step S94 where the device is re-coupled to the more secure interface. Steps S93 and S94 are a virtual re-plug operation during which the physical device remains coupled to the same physical interface. The state of the device is maintained during the re-plug operation. Flow then proceeds to step S95 where address translation is performed using the more secure SMMU on behalf of the device which is coupled to the more secure domain via the more secure interface. Flow then proceeds to step S96 where it is determined whether the device needs to be re-initialised. If, at step S96, it is determined that the device does not need to be re-initialised, then flow returns to step S95. If, at step S96, it is determined that the device does need re-initialised, then flow proceeds to step S97. At step S97 the device is de-coupled from the more secure interface. Flow then proceeds to step S98 where the device is recoupled to the less secure interface. Steps S97 and S98 are a virtual re-plug operation during which the physical device remains coupled to the same physical interface. The state of the device is maintained during the re-plug operation. Flow then proceeds to step S99 where the device is set to the initialisation state. Flow then returns to step S90. It will be readily apparent to the skilled person that steps S92 and S99 which set the state of the device may be performed before or after the respective re-plug operations.

FIG. 10 schematically illustrates a simulator implementation that may be used. Whilst the earlier described embodiments implement the present invention in terms of apparatus and methods for operating specific processing hardware supporting the techniques concerned, it is also possible to provide an instruction execution environment in accordance with the embodiments described herein which is implemented through the use of a computer program. Such computer programs are often referred to as simulators, insofar as they provide a software based implementation of a hardware architecture. Varieties of simulator computer programs include emulators, virtual machines, models, and binary translators, including dynamic binary translators. Typically, a simulator implementation may run on a host processor 730, optionally running a host operating system 720, supporting the simulator program 710. In some arrangements, there may be multiple layers of simulation between the hardware and the provided instruction execution environment, and/or multiple distinct instruction execution environments provided on the same host processor. Historically, powerful processors have been required to provide simulator implementations which execute at a reasonable speed, but such an approach may be justified in certain circumstances, such as when there is a desire to run code native to another processor for compatibility or re-use reasons. For example, the simulator implementation may provide an instruction execution environment with additional functionality which is not supported by the host processor hardware, or provide an instruction execution environment typically associated with a different hardware architecture. An overview of simulation is given in “Some Efficient Architecture Simulation Techniques”, Robert Bedichek, Winter 1990 USENIX Conference, Pages 53-63.

To the extent that embodiments have previously been described with reference to particular hardware constructs or features, in a simulated embodiment, equivalent functionality may be provided by suitable software constructs or features. For example, particular circuitry may be implemented in a simulated embodiment as computer program logic. Similarly, memory hardware, such as a register or cache, may be implemented in a simulated embodiment as a software data structure. In arrangements where one or more of the hardware elements referenced in the previously described embodiments are present on the host hardware (for example, host processor 730), some simulated embodiments may make use of the host hardware, where suitable.

The simulator program 710 may be stored on a computer-readable storage medium (which may be a non-transitory medium), and provides a program interface (instruction execution environment) to the target code 700 (which may include applications, operating systems and a hypervisor) which is the same as the interface of the hardware architecture being modelled by the simulator program 710. Thus, the program instructions of the target code 700 may be executed from within the instruction execution environment using the simulator program 710, so that a host computer 730 which does not actually have the hardware features of the apparatuses described in relation to FIGS. 1 to 11 above. For example, the simulator code 710 may comprise processing program logic 712 which is configured to perform processing in a plurality of domains comprising at least a more secure domain and a less secure domain, each of the plurality of domains associated with a respective physical address space. The processing program logic 712 is configured to support a plurality of virtual interfaces to couple external devices to the plurality of domains, the plurality of virtual interfaces comprising a more secure interface configured to enable access to the more secure domain and a less secure interface configured to enable access to the less secure domain. The simulator code 710 also comprises memory management program logic 716 configured to perform address translation on behalf of the one or more devices. The memory management program logic 716 is configured to provide a more secure memory management unit to perform address translation on behalf of a first subset of the external devices coupled to the more secure interface to enable the first subset to access at least the respective physical address space of the more secure domain, and a less secure memory management unit to perform address translation on behalf of a second subset of the external devices coupled to the less secure interface to enable the second subset to access the respective physical address space of the less secure domain. The simulator code 710 also comprises control program logic 714 responsive to identification that a device coupled to the less secure interface has satisfied at least one predetermined condition, to set a state of the device to a non-modifiable state, to de-couple the device from the less secure interface and to re-couple the device to the more secure interface whilst maintaining the operating state of the device

In brief overall summary there is provided an apparatus comprising processing circuitry to perform processing in a plurality of domains comprising at least a more secure domain and a less secure domain, and to support a more secure interface and a less secure interface, to couple devices to the plurality of domains. The apparatus is provided with memory management circuitry to provide a more secure memory management unit to perform address translation for devices coupled to the more secure interface, and a less secure memory management unit to perform address translation for devices coupled to the less secure interface. The apparatus is provided with control circuitry responsive to identification that a device coupled to the less secure interface has satisfied a condition, to de-couple the device from the less secure interface and to re-couple the device to the more secure interface whilst maintaining the operating state of the device.

In the present application, the words “configured to . . . ” are used to mean that an element of an apparatus has a configuration able to carry out the defined operation. In this context, a “configuration” means an arrangement or manner of interconnection of hardware or software. For example, the apparatus may have dedicated hardware which provides the defined operation, or a processor or other processing device may be programmed to perform the function. “Configured to” does not imply that the apparatus element needs to be changed in any way in order to provide the defined operation.

In the present application, lists of features preceded with the phrase “at least one of” mean that any one or more of those features can be provided either individually or in combination. For example, “at least one of: [A], [B] and [C]” encompasses any of the following options: A alone (without B or C), B alone (without A or C), C alone (without A or B), A and B in combination (without C), A and C in combination (without B), B and C in combination (without A), or A, B and C in combination.

Although illustrative configurations of the invention have been described in detail herein with reference to the accompanying drawings, it is to be understood that the invention is not limited to those precise configurations, and that various changes, additions and modifications can be effected therein by one skilled in the art without departing from the scope of the invention as defined by the appended claims. For example, various combinations of the features of the dependent claims could be made with the features of the independent claims without departing from the scope of the present invention.

Claims

1. An apparatus comprising:

processing circuitry configured to perform processing in a plurality of domains comprising at least a more secure domain and a less secure domain, each of the plurality of domains associated with a respective physical address space, wherein the processing circuitry is configured to support a plurality of virtual interfaces to couple external devices to the plurality of domains, the plurality of virtual interfaces comprising a more secure interface configured to enable access to the more secure domain, and a less secure interface configured to enable access to the less secure domain;
memory management circuitry configured to perform address translation on behalf of the one or more devices, wherein the memory management circuitry is configured to provide a more secure memory management unit to perform address translation on behalf of a first subset of the external devices coupled to the more secure interface to enable the first subset to access at least the respective physical address space of the more secure domain, and a less secure memory management unit to perform address translation on behalf of a second subset of the external devices coupled to the less secure interface to enable the second subset to access the respective physical address space of the less secure domain; and
control circuitry responsive to identification that a device coupled to the less secure interface has satisfied at least one predetermined condition, to set a state of the device to a non-modifiable state, to de-couple the device from the less secure interface and to re-couple the device to the more secure interface whilst maintaining the operating state of the device.

2. The apparatus of claim 1, wherein:

the more secure domain is subdivided into a variable number of execution environments; and
the processing circuitry is operable in at least one mode in which access to each given execution environment is restricted for each of the variable number of execution environments other than the given execution environment.

3. The apparatus of claim 2, wherein the more secure interface is one of a variable number of more secure interfaces, each of the variable number of more secure interfaces associated with a corresponding one of the variable number of execution environments and, when operating in the at least one mode, the processing circuitry is configured for the given execution environment, to restrict access to a given interface associated with the given execution environment for each of the variable number of execution environments other than the given execution environment.

4. The apparatus of claim 1, wherein the control circuitry is responsive to identification of the device, to initially couple the device to the less secure interface in an initialisation state to enable one or more initialisation steps to set the operating state of the device.

5. The apparatus of any of claim 4, wherein the control circuitry is responsive to a re-initialisation signal to de-couple the device from the more secure interface and to re-couple the device to the less secure interface.

6. The apparatus of claim 5, wherein the control circuitry is responsive to the re-initialisation signal to set a state of the device to the initialisation state.

7. The apparatus of claim 1, wherein the more secure memory management unit is configured to enable the first subset to access the respective physical address space of the less secure domain.

8. The apparatus of claim 1, wherein the less secure memory management unit is configured to prevent the second subset from accessing the respective physical address space of the more secure domain.

9. The apparatus of claim 1, wherein the plurality of virtual interfaces comprises one or more virtual PCIe interfaces.

10. The apparatus of claim 9, wherein the one or more virtual PCIe interfaces comprises the more secure interface and the less secure interface.

11. The apparatus of claim 1, wherein each of the one or more virtual PCIe interfaces comprises a virtual PCIe root complex.

12. The apparatus of claim 1, wherein the memory management circuitry is a system memory management unit.

13. The apparatus of claim 1, comprising physical address space selection circuitry to select a selected physical address space for memory access requests from among a plurality of physical address spaces including the respective physical address space of the more secure domain and the respective physical address space of the less secure domain, the more secure physical address space being prohibited from being selected for the memory access requests associated with the less secure domain.

14. The apparatus of claim 1, comprising at least one memory system component configured to treat aliasing physical addresses associated with different physical address spaces as if they specify different memory system resources, even when the aliasing physical addresses actually correspond to a same memory system resource.

15. The apparatus of claim 1, comprising a physical interface configured to couple the processing circuitry to the one or more devices, and each of the more secure interface and the less secure interface is a virtual instance of the physical interface.

16. The apparatus of claim 1, wherein the memory management circuitry is configured to prevent the second subset from accessing the respective physical address space of the more secure domain.

17. The apparatus of claim 1, wherein the control circuitry is configured to identify that the at least one predetermined condition has been satisfied in response to one or more initialisation steps being completed.

18. A method comprising:

performing processing in a plurality of domains comprising at least a more secure domain and a less secure domain, each of the plurality of domains associated with a respective physical address space, wherein the processing comprises supporting a plurality of virtual interfaces to couple external devices to the plurality of domains, the plurality of virtual interfaces comprising a more secure interface configured to enable access to the more secure domain and a less secure interface configured to enable access to the less secure domain; performing address translation on behalf of the one or more devices, by providing a more secure memory management unit to perform address translation on behalf of a first subset of the external devices coupled to the more secure interface to enable the first subset to access at least the respective physical address space of the more secure domain, and a less secure memory management unit to perform address translation on behalf of a second subset of the external devices coupled to the less secure interface to enable the second subset to access the respective physical address space of the less secure domain; and in response to identification that a device coupled to the less secure interface has satisfied at least one predetermined condition, setting a state of the device to a non-modifiable state, de-coupling the device from the less secure interface and re-coupling the device to the more secure interface whilst maintaining the operating state of the device.

19. A computer program for controlling a host data processing apparatus to provide an instruction execution environment, the computer program comprising:

processing program logic configured to perform processing in a plurality of domains comprising at least a more secure domain and a less secure domain, each of the plurality of domains associated with a respective physical address space, wherein the processing program logic is configured to support a plurality of virtual interfaces to couple external devices to the plurality of domains, the plurality of virtual interfaces comprising a more secure interface configured to enable access to the more secure domain and a less secure interface configured to enable access to the less secure domain; memory management program logic configured to perform address translation on behalf of the one or more devices, wherein the memory management program logic is configured to provide a more secure memory management unit to perform address translation on behalf of a first subset of the external devices coupled to the more secure interface to enable the first subset to access at least the respective physical address space of the more secure domain, and a less secure memory management unit to perform address translation on behalf of a second subset of the external devices coupled to the less secure interface to enable the second subset to access the respective physical address space of the less secure domain; and control program logic responsive to identification that a device coupled to the less secure interface has satisfied at least one predetermined condition, to set a state of the device to a non-modifiable state, to de-couple the device from the less secure interface and to re-couple the device to the more secure interface whilst maintaining the operating state of the device.
Patent History
Publication number: 20260377052
Type: Application
Filed: May 15, 2026
Publication Date: Nov 26, 2026
Applicant: Arm Limited (Cambridge)
Inventors: Sami Ur Rehman Zia Ur Rehman MUJAWAR (Cambridge), Suzuki Kuruppassery POULOSE (Cambridge)
Application Number: 19/678,648
Classifications
International Classification: G06F 3/06 (20060101);