Confidential computing architecture integrated with direct swap cache
By adopting a direct switching cache mechanism in a multi-tenant computing system, using fixed-ratio switching operations between near and far memory, combined with the virtual machine-specific key and message authentication code inspection, the uneven use of virtual machines on memory resources is solved. The problem of difficult security in data transmission is difficult to ensure, and efficient and secure data exchange and memory resource management are achieved.
Patent Information
- Application Number
- CN202380028428.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-04-08
- Filing Date
- 2023-01-25
- Publication Date
- 2024-11-01
AI Technical Summary
In multi-tenant computing systems, the uneven use of memory resources by virtual machines leads to the inefficient allocation of resources. Due to the existence of physical links, data encryption and decryption delays and security is difficult to guarantee, especially across memory paths. There is an attack surface during encryption and decryption.
Adopt direct exchange cache mechanism to integrate security and integrity, encrypt and decrypt using virtual machine-specific keys, and perform message authentication on physical links through fixed-ratio switching operations between near and far memory. Code check to ensure the integrity and security of the data.
It improves the efficiency of memory resources, reduces data exchange delay, enhances the security and integrity of data in transmission, and ensures confidential computing and isolation between virtual machines.
Smart Images

Figure CN118891628A_ABST
Abstract
Description
Background Art
[0001] Multiple users or tenants can share a system, including a computing system and a communication system. The computing system can include a public cloud, a private cloud, or a hybrid cloud with both public and private parts. A public cloud includes a global network of servers that perform various functions, including storing and managing data, running applications, and delivering content or services, such as streaming video, supplying email, providing office productivity software, or processing social media. Servers and other components can be located in data centers around the world. While public clouds provide services to the public over the Internet, enterprises can use private clouds or hybrid clouds. Both private and hybrid clouds also include a network of servers housed in a data center.
[0002] Multiple tenants can use the computing, storage and networking resources associated with the servers in the cloud. Computing, storage and networking resources can be supplied using a host operating system (OS) installed on a computing node (e.g., a server) in a data center. Each host OS can allow multiple virtual machines to access the computing and memory resources associated with the corresponding computing node. Due to the uneven use of memory resources by the virtual machines supported by the host OS, the amount of memory resources may not be allocated efficiently. As an example, a large amount of memory may not be utilized by the host server.
[0003] The provisioning of shared memory can alleviate some of these issues. However, shared memory can create additional security challenges for tenants when separated from the CPU by an additional physical link (and controller). Summary of the invention
[0004] In one aspect, the present disclosure relates to a method for managing a system having near memory and far memory. The method may include receiving a request from a requestor to read a first data block stored in the near memory or in the far memory, wherein the read request includes a first key associated with a first virtual machine corresponding to the system, wherein the first key is dedicated to the first virtual machine. The method may also include, in response to determining that the far memory contains an encrypted version of the first data block: (1) retrieving the encrypted version of the first data block from the far memory, decrypting the first data block using the first key, and providing the decrypted version of the first data block to the requestor, and (2) swapping out a second data block having an address that conflicts with the first data block from the near memory to the far memory, wherein the second data block is encrypted using a second key associated with a second virtual machine corresponding to the system, and wherein the second key is dedicated to the second virtual machine.
[0005] In another aspect, the present disclosure relates to a system having near memory and far memory. The system may include a near memory controller configured to receive a request from a requestor to read a first data block stored in the near memory or in the far memory, wherein the read request includes a first key associated with a first virtual machine corresponding to the system, wherein the first key is dedicated to the first virtual machine. The near memory controller may also be configured to, in response to determining that the far memory contains an encrypted version of the first data block: (1) retrieve the encrypted version of the first data block from the far memory, decrypt the first data block using the first key, and provide the decrypted version of the first data block to the requestor, and (2) swap out a second data block having an address that conflicts with the first data block from the near memory to the far memory, wherein the second data block is encrypted using a second key associated with a second virtual machine corresponding to the system, and wherein the second key is dedicated to the second virtual machine.
[0006] In yet another aspect, the present disclosure relates to a method for managing a system having near memory and far memory, wherein the far memory is associated with a far memory system having a root port and an endpoint separated by at least one physical link. The method may include performing an integrity check on a set of transactions between the root port and the endpoint through the at least one physical link, wherein before the integrity check is completed, data associated with the set of transactions is released for further processing by the system. The method may also include: receiving a request from a requestor to read a first data block stored in the near memory or in the far memory, wherein the read request includes a first key associated with a first virtual machine corresponding to the system, and wherein the first key is dedicated to the first virtual machine.
[0007] The method may also include, in response to determining that the far memory contains an encrypted version of the first data block: (1) retrieving the encrypted version of the first data block from the far memory, decrypting the first data block using the first key, and providing the decrypted version of the first data block to the requestor, wherein a delay associated with the decryption is sufficient to allow the integrity check to complete, and (2) swapping out a second data block having an address that conflicts with the first data block from the near memory to the far memory, wherein the second data block is encrypted using a second key associated with a second virtual machine corresponding to the system, and wherein the second key is dedicated to the second virtual machine.
[0008] This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The present disclosure is illustrated by way of example and not limitation in the accompanying figures, in which like reference numerals indicate similar elements. The elements in the figures are illustrated for simplicity and clarity and are not necessarily drawn to scale.
[0010] Figure 1 is a block diagram of a system having both near memory and far memory according to one example;
[0011] Figure 2 shows a block diagram of a far memory system;
[0012] Figure 3A and Figure 3B shows an example transaction flow associated with a read operation when there is a miss;
[0013] Figure 4 is a diagram showing an example transaction flow associated with a read operation and a write operation when there is a hit, wherein data targeted by the read operation and the write operation is in near memory;
[0014] Figure 5 A block diagram of an example system for implementing at least some of the methods for a confidential computing architecture for use with a direct exchange cache is shown;
[0015] Figure 6 A data center for implementing a system for a confidential computing architecture for use with a direct exchange cache is shown;
[0016] Figure 7 A flowchart showing an example method for managing memory having near memory and far memory; and
[0017] Figure 8 A flow chart of another example method for managing memory having near memory and far memory is shown. DETAILED DESCRIPTION
[0018] The examples described in this disclosure relate to systems and methods for a confidential computing architecture integrated with a direct exchange cache. Certain examples relate to the use of a confidential computing architecture in a multi-tenant computing system. The multi-tenant computing system may be a public cloud, a private cloud, or a hybrid cloud. A public cloud includes a global server network that performs various functions, including storing and managing data, running applications, and delivering content or services, such as streaming video, email, office productivity software, or social media. Servers and other components may be located in data centers around the world. While public clouds provide services to the public over the Internet, enterprises may use private clouds or hybrid clouds. Both private and hybrid clouds also include a server network housed in a data center. Virtual machines may be executed using the computing and memory resources of a data center. As used herein, the term "virtual machine" encompasses but is not limited to any executable code (in the form of hardware, firmware, software, or any combination of the foregoing) that implements functions, applications, services, microservices, containers, or single kernels for serverless computing. Alternatively, a virtual machine may be executed on hardware associated with an edge computing device, a local server, or other types of systems, including communication systems, such as base stations (e.g., 5G or 6G base stations).
[0019] Consistent with the examples of the present disclosure, a virtual machine may have access to a combination of near memory (e.g., local DRAM) and far memory (e.g., an allocated portion of pooled memory). As an example, a computing node in a data center may be allocated pooled memory exposed by a pooled memory system, which may then be made accessible as far memory to virtual machines running on the computing node. Pooled memory refers to a memory including any physical memory shared by a plurality of computing nodes. In addition, data / instructions associated with a virtual machine may be swapped in / out from far memory to near memory from far memory. In this arrangement, near memory (e.g., local memory) may be implemented using more expensive memory, and far memory (e.g., pooled memory) may be implemented using less expensive memory. As an example, a more expensive memory may correspond to a double data rate (DDR) dynamic random access memory (DRAM) (e.g., DDR2 DRAM, DDR3 DRAM, DDR4 DRAM, or DDR5 DRAM) operating at a higher data rate, and a less expensive memory may correspond to a DRAM (e.g., DRAM or DDR DRAM) operating at a lower data rate. Other cost differences may be a function of the reliability or other quality differences associated with near memory and far memory. As used herein, the terms "near memory" and "far memory" will be viewed in a relative manner. Thus, near memory includes any memory used to store any data or instructions evicted from system-level cache(s), and far memory includes any memory used to store any data or instructions swapped out of near memory. Another distinction between near memory and far memory relates to the relative number of physical links between the CPU and the memory. As an example, assume that near memory is coupled via a near memory controller and is therefore at least one physical link away from the CPU, and far memory is coupled to a far memory controller, which is at least one physical link away from the CPU.
[0020] In some environments, customers of cloud computing services (including virtual machines) may not fully trust the security provided by the hypervisor deployed by the cloud computing provider, or may prefer to have an additional layer of trust. Using virtual machines, as an example, in such an environment, customers may prefer to use their own keys to encrypt and decrypt data for storage or retrieval from memory. In a traditional computing system with only local memory attached to the processor executing the virtual machine, encryption and decryption across memory paths can be maintained. However, in a system that includes both near memory (e.g., local memory) and far memory, this may be difficult because there is an additional physical link between the processor and the memory system. The additional physical link can create an additional attack surface, thereby enabling malicious actors to snoop on data (including both encrypted data and plaintext data) flowing across such physical links. A possible solution to address some aspects of these issues would rely on a far memory system (e.g., based on the specification of a computational expression link) to encrypt and decrypt data across the physical link between the processor and the near memory system and the far memory system. However, such encryption and decryption may introduce significant latency with respect to memory transactions across the physical link of the far memory system. Furthermore, given the potential for side-channel attacks and other intrusions, it is difficult to ensure the security of encryption and decryption keys when they are handled by the far memory system. Furthermore, while such encryption and decryption by the far memory system can protect data in transit on a physical link associated with the far memory system, data at rest (stored in memory) is not protected. Furthermore, integrity checks of encrypted data with respect to data at rest may also not be provided. Certain examples described in the present disclosure address the problem of confidential computing by integrating security and integrity with a direct exchange cache mechanism.
[0021] Figure 1 1 is a block diagram of a system 100 including computing nodes 110, 140, and 170 coupled to a far memory system 180 according to one example. Each computing node may include computing and memory resources. As an example, computing node 110 may include a central processing unit (CPU) 112; computing node 140 may include CPU 142; and computing node 170 may include CPU 172. Although Figure 1Each computing node in is shown as having a single CPU, but each computing node may include additional CPUs and other devices, such as a graphics processor unit (GPU), a field programmable gate array (FPGA), an application-specific integrated circuit (ASIC), or other devices. In addition, each computing node may include near memory, which may be organized as memory modules. As an example, computing node 110 may include near memory in the form of memory modules 122, 124, 126, 128, 130, and 132. Computing node 140 may include near memory in the form of memory modules 152, 154, 156, 158, 160, and 162. Computing node 170 may include near memory in the form of memory modules 182, 184, 186, 188, 190, and 192. Examples of such memory modules include, but are not limited to, dual in-line memory modules (DIMMs) or single in-line memory modules (SIMMs). The memory included in these modules may be dynamic random access memory (DRAM), flash memory, static random access memory (SRAM), phase change memory, magnetic random access memory, or any other type of memory technology that may allow the memory to act as near memory.
[0022] Continue to refer Figure 1 , each CPU may also include (multiple) cores (e.g., (multiple) processing cores). As an example, CPU 112 may include (multiple) cores 114, CPU 142 may include (multiple) cores 144, and CPU 172 may include (multiple) cores 174. Each CPU may also include a system-level cache controller (SLCC) and associated cache memory (e.g., system-level cache (not shown)). As an example, CPU 112 may include system-level cache controller (SLCC) 116, CPU 142 may include system-level cache controller (SLCC) 146, and CPU 172 may include system-level cache controller (SLCC) 176. In addition, each CPU may also include one or more integrated memory controllers. As an example, CPU 112 may include integrated memory controller 118, CPU 142 may include integrated memory controller 148, and CPU 172 may include integrated memory controller 178. If the memory module includes DDR DRAM, the integrated memory controller included in such a node may be a double dynamic rate (DDR) DRAM controller.
[0023] Each compute node may be configured to execute a number of virtual machines. In this example, compute node 110 may have a host OS 114 installed thereon, compute node 140 may have a host OS 144 installed thereon, and compute node 170 may have a host OS 174 installed thereon. Far memory system 180 may include logical pooled memory, which may include a number of memory modules. Although Figure 1 Not shown, but the far memory system 180 may include a logical pooled memory controller (described later). Examples of such memory modules include, but are not limited to, dual in-line memory modules (DIMMs) or single in-line memory modules (SIMMs). The memory included in these modules may be dynamic random access memory (DRAM), flash memory, static random access memory (SRAM), phase change memory, magnetic random access memory, or any other type of memory technology that may allow the memory to act as pooled memory.
[0024] Any host OS (e.g., host OS 114, 144, or 174) executed by any of the compute nodes (e.g., compute nodes 110, 140, or 170) can access at least a portion of the physical memory included as part of the far memory system 180. Each host OS can support a certain number of virtual machines. As an example, host OS 114 can support virtual machines (VMs) 115, 117, and 119, host OS 144 can support virtual machines (VMs) 145, 147, and 149, and host OS 154 can support virtual machines (VMs) 155, 157, and 159. Far memory system 180 can allocate a portion of pooled memory to a compute node when the compute node is powered on or as part of an allocation / deallocation operation. The allocated portion can include one or more "slices" of memory, where a slice refers to any minimum granularity of a portion of memory managed by a pooled memory controller (e.g., a memory page or any other memory block aligned to a slice size). Any suitable slice size may be used, including 1GB slices, 2GB slices, 8GB slices, or any other suitable slice size. The pooled memory controller may allocate slices to or revoke allocations of slices to compute nodes based on an allocation / revocation policy associated with the far memory system 180. As previously explained, data / instructions associated with the host OS may be swapped into / out of near memory from far memory. In this arrangement, near memory (e.g., local memory) may be implemented using more expensive memory, and far memory (e.g., pooled memory) may be implemented using less expensive memory.
[0025] In one example, computing nodes 110, 140, and 170 may be part of a data center. As used in this disclosure, the term data center may include, but is not limited to, some or all of the data centers owned by a cloud service provider, some or all of the data centers owned and operated by a cloud service provider, some or all of the data centers owned by a cloud service provider operated by customers of the service provider, any other combination of data centers, a single data center, or even some clusters within a particular data center. In one example, each cluster may include several identical computing nodes. Thus, a cluster may include computing nodes that include a specific number of CPU cores and a specific amount of memory. In place of computing nodes, other types of hardware may also be used, such as edge computing devices, local servers, or other types of systems, including communication systems, such as base stations (e.g., 5G or 6G base stations). Although Figure 1 System 100 is shown as having a particular number of components, including compute nodes and memory components arranged in a particular manner, but system 100 may include additional or fewer components arranged differently. As an example, a memory controller may not be integrated with the CPU and may be located on a separate substrate. As another example, far memory system 180 may be included as part of each compute node, rather than as a separate component. Figure 1 A separate system in.
[0026] Figure 2 Shows the corresponding Figure 1 180 is shown in FIG. 2. The far memory system 200 may include a far memory system controller coupled to a computing node (e.g., Figure 1 The far memory system 200 may further include a number of pooled memory controllers and associated pooled memory modules. For example, the far memory system 200 may include a far memory controller (FMC) 210, FMC 220, FMC 230, FMC 240, FMC 250, and FMC 260 coupled to the root port(s) 202, as shown in FIG. Figure 22. Each of the FMCs 210, 220, 230, 240, 250, and 260 may also be coupled to a fabric manager 280. The FMC 210 may also be coupled to memory modules 212, 214, 216, and 218. The FMC 220 may also be coupled to memory modules 222, 224, 226, and 228. The FMC 230 may also be coupled to memory modules 232, 234, 236, and 238. The FMC 240 may also be coupled to memory modules 242, 244, 246, and 248. The FMC 250 may also be coupled to memory modules 252, 254, 256, and 258. The FMC 260 may also be coupled to memory modules 262, 264, 266, and 268. Each memory module may be a dual in-line memory module (DIMM) or a single in-line memory module (SIMM).
[0027] Continue to refer Figure 2In one example, each of the far memory controllers may be implemented as a pooled memory controller that complies with the Compute Express Link (CXL) specification. In this example, each of the memory modules associated with the far memory system 200 may be configured as a Type 3 CXL device. The fabric manager 280 may communicate with the data center control plane 290 via the bus 206. In one example, the fabric manager 280 may be implemented as a fabric manager that complies with the CXL specification. The control information received from the data center control plane 290 may include control information that specifies which slices of memory from the memory pool are assigned to any particular computing node at a given time. In response to the control information, the fabric manager 280 may assign slices of memory from the far memory to a particular computing node in a time-division multiplexed manner. In other words, at a certain time, a particular memory slice can only be assigned to a particular computing node and cannot be assigned to any other computing node. As part of this example, transactions associated with the CXL.io protocol (which is a non-coherent I / O protocol based on PCIe) may be used to configure memory devices and links between CPUs and memory modules included in the far memory system 200. The CXL.io protocol may also be used by CPUs associated with various compute nodes for device discovery, enumeration, error reporting, and management. Alternatively, any other I / O protocol that supports such configuration transactions may also be used. Memory access to memory modules may be handled via transactions associated with the CXL.mem protocol, which is a memory access protocol that supports memory transactions. As an example, load instructions and store instructions associated with any of the CPUs may be handled via the CXL.mem protocol. Alternatively, any other protocol that allows CPU load / store instructions to be converted into read / write transactions associated with memory modules included in the far memory system 200 may also be used.
[0028] Each far memory controller (e.g., any of FMC 210, FMC 220, FMC 230, FMC 240, FMC 250, and FMC 260) may maintain a segment table indicating different portions of far memory (e.g., implemented as pooled memory) that may be allocated / deallocated at any suitable granularity with respect to portion size. More generally, a far memory controller may maintain any suitable table representing available / allocated memory slices, indicating any relevant information related to the slices (e.g., allocated / unallocated status, ownership status indicating to which compute node the allocated slice is allocated, recency of usage information, recency of allocation information, host type related to the compute node to which the allocated slice is allocated, or other metadata). For example, for a 2TB memory pool, portions may be allocated / deallocated at a granularity of 1GB slices, e.g., there may be 2K (e.g., 2048) segments in the segment table indicating different 1GB slices. As an example, a segment in a segment table may include a 32-bit segment identifier that includes 8 bits indicating which host the portion is assigned to, a 1-bit value indicating whether the portion has ever been accessed, a 3-bit decoder map indicating a target address decoding scheme used to address data in the portion, and / or a 16-bit leaky bucket counter indicating a count value of recent accesses to the portion. For example, the above-described segment table may include an 8KB region of SRAM of a pooled memory controller. The above-described schema for the segment table is non-limiting, and the segment table may include any suitable data for tracking allocations of memory. Although Figure 2 The far memory system 200 is shown as having a specific number of components, including a pooled memory controller and memory modules arranged in a specific manner, but the far memory system 200 may include additional or fewer components arranged differently. In addition, multiple switches may be used. In addition, the fabric manager 280 may be shared with additional or fewer pooled memory controllers.
[0029] In order to Figure 1In the context of the system 100 of FIG. 1 , the near memory must have a fixed ratio to the far memory. In this example, it is assumed that the near memory has the same size as the far memory. This means that any access to a location in the near memory will operate in a direct swap cache manner. Therefore, these accesses will first perform a lookup in the memory designated as the near memory. Consistent with the non-optimized direct swap cache arrangement, any hit in the near memory will be directly served from the near memory (e.g., local memory), while a miss in the near memory will cause a swap operation between the corresponding far memory and near memory locations. The swap operation (e.g., swapping data from a location in the far memory to a location in the near memory or swapping data out of a location in the near memory to a location in the far memory) can be performed at the granularity level of a cache line. Therefore, in this example, a data block is equivalent to a cache line. However, in this example, each location can only have one of the two cache lines at a given time. The other cache line exists in the far memory.
[0030] Each cache line may include a combination of a data portion (e.g., 512 bits) and a metadata portion (e.g., 128 bits). The data portion may contain data representing user data or instructions executed by a computing node. The metadata portion may include data representing various attributes of the data in the data portion. The metadata portion may also include error checking and correction bits or other suitable types of information. In addition, the metadata portion may include a tag with an appropriate number of bits to distinguish the location of the cache line. A single bit of metadata information may be used to distinguish the location of two cache lines (e.g., CL$A and CL$B). The use of a single bit assumes a fixed ratio of 1:1 between the exchangeable range for near memory and the exchangeable range for far memory. However, the present disclosure is not limited to using a fixed ratio of 1:1 between the exchangeable range for near memory and the exchangeable range for far memory. As an example, a ratio of 1:3 may be used. In this case, additional tag bits may be required to encode information about the location of the cache line with respect to the region of the memory having the cache line.
[0031] Each VM (for example, Figure 1Any of the VMs 115, 117, ... 159) can have a virtual Trusted Platform Module (TPM) instance that runs in a secure environment associated with the particular VM. The virtual TPM instance can serve as a dedicated secure vault that is used to store any keys used to encrypt and decrypt data for a particular VM. In other words, each VM can have at least one key, allowing each VM to provide that specific key to an internal memory controller included within (or associated with) the CPU that is executing the VM. The virtual TPM can also allow the VM to boot in a trusted manner. Each internal memory controller (e.g., Figure 1 Any of the internal memory controllers 118, 148, and 178 of the present invention may include an Advanced Encryption Standard (AES) engine. The AES engine may provide hardware acceleration for encrypting and decrypting data on a per-VM key basis. The AES engine may support the use of various key sizes, including key sizes of 128, 192, and 256 bits. Encryption / decryption may also be performed using software only.
[0032] Figure 3A and Figure 3B An example transaction flow 300 is shown in connection with a read operation when there is a miss because the requested data is not in near memory. During a read operation, the CPU (e.g., Figure 1 Any of the CPUs 112, 142, or 172 of the present invention may issue a command which is communicated with an internal memory controller (e.g., Figure 1 The host agent associated with any of the internal memory controllers 118, 148, and 178 of the present invention processes the data to read the data. Figure 3A As shown in , there is a read request from a master agent to read cache line CL$A. The read request includes not only the address for the cache line, but also the key associated with the VM making the request. The master agent can be a last level cache controller (e.g., Figure 1 The master agent may ensure that if multiple cores associated with the CPU are requesting access to a cache line, those requests are handled by the same control logic (e.g., the master agent). An internal memory controller (e.g., described above with respect to Figure 1In one embodiment, the internal memory controller (any of the internal memory controllers described) checks the contents of the near memory. In operation, in response to a read request for cache line CL$A, if the meta tag portion indicates that the near memory contains cache line CL$B, it results in a miss. Therefore, the internal memory controller sends a request for cache line CL$A to the far memory system. In addition, blocking entries are set in the internal memory controller for other cache line entries mapped to the near memory location.
[0033] In this example, the far memory system is assumed to be a CXL compliant system, so requests for cache line CL$A go to the CXL root port. This example also assumes that any transaction across each CXL link (from the CXL root port to the CXL endpoint) is encrypted. The CXL root port can be considered similar to a PCIe root port, and the CXL endpoint can be considered similar to a PCIe endpoint. Therefore, any technology with a root port and an endpoint can be used to enumerate the link. Link-level encryption results in double encryption of data transmitted across the link.
[0034] Continue to refer Figure 3A In addition, the CXL root port may generate a message authentication code (MAC) to ensure the integrity of data across the physical link. The data across the physical link may be transmitted in the form of a flit (e.g., 512 bits) including a MAC header. In one example, multiple flits may be processed simultaneously to generate a MAC for the multiple flits, such that a MAC is not generated for each flit. As an example, four flits may be processed to generate a MAC. The MAC may be generated using a cryptographic hash function (e.g., HMAC) or using a block cipher algorithm.
[0035] Still reference Figure 3A , a read A request travels from the CXL root port to the CXL endpoint, which in turn retrieves the data from far memory. The CXL endpoint verifies the integrity of the received data by generating a MAC locally based on the received flit and comparing the generated MAC with the received MAC. The retrieved data for cache line CL$A travels from the CXL endpoint back to the CXL root port. The CXL endpoint also generates a MAC for a specific number of flits and transmits it back to the CXL root port. The CXL root port verifies the integrity of the received data by generating a MAC locally based on the received flit and comparing the generated MAC with the received MAC. The data is received by the internal memory controller, which decrypts the data using a per-VM key (key A) and provides the data to the requester (e.g., a host agent). The data (A) is also stored in near memory as part of the exchange of data between near memory and far memory.
[0036] In addition, if Figure 3B As shown in , as part of this swap operation, the data corresponding to cache line CL$B is written to far memory. As part of this process, the encrypted data (encrypted by the internal memory controller using a per-VM key) is transmitted to the CXL root port. The CXL root port also encrypts the data across the physical link between the CXL root port and the CXL endpoint. The CXL root port also generates a message authentication code (MAC) to ensure the integrity of the data across the physical link. The CXL endpoint writes the data corresponding to cache line CL$B to far memory. A completion (CMP) message is transmitted back to the internal memory controller.
[0037] about Figure 3A and Figure 3B In addition to the integrity-related processing (using a MAC) shown in FIG. 1 , the system can operate in two modes. One mode can be referred to as containment mode, and the other mode can be referred to as glide mode. In containment mode, the CXL endpoint may release data only after the integrity check passes. As a result, several flits (e.g., four flits) may need to be buffered until the MAC is received by the CXL endpoint and the integrity check has been performed (e.g., by comparing the locally generated MAC to the received MAC). This may affect the latency of operations associated with far memory. However, Figure 1 and Figure 2 The system described in can mitigate this effect by ensuring that the hit rate of near memory is high, so that fewer memory accesses require exchanging data between near memory and far memory.
[0038] Another way to mitigate latency may be to use another mode - glide mode. In one example, in glide mode, received data may be released without waiting for a MAC to be received. When a MAC is received (e.g., by a CXL endpoint), the locally generated MAC may be compared to the received MAC. While this mode reduces latency, damaged or otherwise corrupted data may be transmitted before integrity checks have been completed. However, as discussed in relation to Figure 3A and Figure 3BAs explained, as part of a direct exchange cache with encryption / decryption, data from far memory is not sent directly to the requester (e.g., a local agent). Instead, the data is first sent to the internal memory controller, which needs to decrypt the data before sending it to the requester. There is a certain amount of latency associated with the decryption operation. In some instances, the decryption latency may be sufficient to complete the integrity check in the glide mode, and thereby allow the internal memory controller to be notified of any integrity violations before the internal memory controller provides the data to the requester. In other words, in almost all cases, the internal memory controller can be made aware of any integrity check-related problems because the internal memory controller will require a certain amount of time to decrypt the data, which may be almost the same amount of time required for the integrity check. In short, integrity checking and decryption operations can be parallelized. Therefore, instead of using a containment mode to ensure integrity and suffer higher latency, a glide mode with lower latency can be used because the possibility of damaged data being provided to the requester is very small.
[0039] Figure 4 4 is a diagram showing an example transaction flow 400 associated with a read operation and a write operation when there is a hit, where the data targeted by the read operation and the write operation is located in near memory. During a read operation, the CPU (e.g., Figure 1 Any of the CPUs 112, 142, or 172) may issue a command that is communicated with an internal memory controller (e.g., Figure 1 The master agent associated with any of the internal memory controllers 118, 148, and 178 of the master agent processes to read data. In this example, there is a read request from the master agent to read cache line CL$A. The read request includes not only the address of the cache line, but also the key associated with the VM making the request. The internal memory controller (e.g., the one described above with respect to Figure 1 10. The internal memory controller (described in any internal memory controller) examines the contents of near memory. The meta tag portion in this example indicates that near memory contains cache line CL$A, resulting in a hit. Therefore, the internal memory controller retrieves the data of cache line CL$A from near memory. In this example, the far memory system is assumed to be a CXL-compliant system, so if there has been a miss, the request for cache line CL$A will go to the CXL root port. This example also assumes that any transaction across each CXL link (from the CXL root port to the CXL endpoint) is encrypted. The internal memory controller decrypts the data using a per-VM key (Key A) and provides the data to the host agent.
[0040] Continue to refer Figure 4, in this example, regarding the Write A operation, when writing a cache line to memory, each write needs to be preceded by a read to ensure that the near memory location contains the address being written. Therefore, the internal memory controller first issues a read command to read the data from the near memory, and the data happens to be the data being written, so there is a hit. Next, the internal memory controller encrypts the data using a per-VM key (e.g., Key A) and writes the data to the near memory. Finally, the internal memory controller sends a completion (CMP) message to the master agent.
[0041] In addition, the direct exchange cache can also be used with a trusted domain identifier (TDI) in a trusted execution environment access control (TEE-AC) architecture. In one example, the TDI bit can be assigned by a trusted agent running on a computing platform. The trusted agent may be trusted by the VM because each VM reviews and signs the code associated with the trusted agent. TDI can be used to address threats such as ciphertext leakage, memory corruption, aliasing, and remapping. As an example, each VM with a separate trusted domain can be isolated from other VMs and any hypervisor (or host OS) software. TDI is maintained in memory as cache line granularity metadata. However, when the memory contents are exchangeable as part of a direct exchange cache between near memory and far memory, the metadata must be transported across the CXL physical link when performing the exchange operation. In order to avoid transporting TDI across the CXL physical link, two techniques are disclosed. The first technique adds TDI to the metadata maintained by the internal memory controller. The second technique uses page mapping to the same page, which will be explained later.
[0042] As part of the first technique, the TDI bit for each cache line (regardless of whether it is located in near or far memory) can be set by an internal memory controller (e.g., Figure 1 The TDI bits are managed by any internal controller shown in , are kept in near memory, and are never transferred to far memory. Table 1 below shows the additional bits used to track TDI when TDI is one bit. The bits shown in Table 1 below can be stored in near memory on a per cache line basis.
[0043]
[0044] The second technique exploits the fact that in some systems, trusted domain assignment is performed on a page granularity basis. As part of this technique, addresses in the system address map can be assigned in such a way that a given near memory / far memory cache line pair always maps to the same page. This advantageously eliminates the need to pass TDI information over the CXL physical link because the TDI information has the same value for both near memory and far memory contents associated with a particular VM.
[0045] As an example, the system address map can be set to divide the swappable address range into regions of smaller granularity page size. As an example, assuming that a memory range of 2 terabytes (TB) is available for use with the system address map (page size of 1GB), 1TB is configured as a non-swappable range and 1TB is configured as a swappable range. The memory range (swappable range) can be divided into half-page sized granularity regions using the lower address bits, each region having a size of 512MB. In this arrangement, as long as the tenant (e.g., any virtual machine hosted by the computing node) is assigned an address range equal to 1GB (twice the smaller granularity page size region), the cache line pairs associated with the virtual machine are mapped to the same page. The address range assigned to each tenant can be considered to have a conflict set size (e.g., 1GB), which in this example is selected to be the same size as the page size associated with the system. The host OS (e.g., hypervisor) can allocate memory to tenants in increments of 1GB. Each 1GB increment does not need to be continuous. Each conflict set (512MB swappable regions with two conflicts) corresponds to a single 512MB region in physical memory (e.g., DRAM) accessible to the tenant. Therefore, a single 1GB page corresponds to a single 512MB region in physical memory. In this example, the lower address bit (e.g., address bit 29) can have a logical value of "0" or "1" to distinguish between the two 512MB conflicting regions. When the logical value of address bit 29 is "0", the address of the cache line corresponds to one of the 512MB conflicting regions, and when the logical value of address bit 29 is "1", the address of the cache line corresponds to the other 512MB conflicting region. Other types of encodings can also be used as part of the addressing to distinguish between the two conflicting regions.
[0046] Figure 5A block diagram of an example system 500 for implementing at least some of the methods for integrating a memory pool and a direct exchange cache is shown. The system 500 may include processor(s) 502, I / O component(s) 504, memory 506, presentation component(s) 508, sensor(s) 510, database(s) 512, networked interface(s) 514, and I / O port(s) 516, which may be interconnected via a bus 520. The processor(s) 502 may execute instructions stored in the memory 506. The I / O component(s) 504 may include components such as a keyboard, a mouse, a speech recognition processor, or a touch screen. The memory 506 may be any combination of non-volatile memory or volatile memory (e.g., flash memory, DRAM, SRAM, or other types of memory). The presentation component 508 may include a display, a holographic device, or other presentation device. The display may be any type of display, such as an LCD, LED, or other type of display. The sensor(s) 510 may include a telemetry or other type of sensor configured to detect and / or receive information (e.g., collected data). The sensor(s) 510 may include telemetry or other types of sensors configured to detect and / or receive information (e.g., memory usage of various virtual machines being executed by various computing nodes in a data center). The sensor(s) 510 may include sensors configured to sense conditions associated with a CPU, memory or other storage component, FPGA, motherboard, baseboard management controller, etc. The sensor(s) 510 may also include sensors configured to sense conditions associated with a rack, chassis, fans, power supply units (PSUs), etc. The sensor(s) 510 may also include sensors configured to sense conditions associated with a network interface controller (NIC), a top of rack (TOR) switch, a middle of rack (MOR) switch, a router, a power distribution unit (PDU), a rack-level uninterruptible power supply (UPS) system, etc.
[0047] Still refer to Figure 5 , (multiple) databases 512 can be used to store any collected or recorded data and to perform the methods described herein as needed. (Multiple) databases 512 can be implemented as a collection of distributed databases or as a single database. (Multiple) networked interfaces 514 may include communication interfaces such as Ethernet, cellular radio, Bluetooth radio, UWB radio, or other types of wireless or wired communication interfaces. (Multiple) I / O ports 516 may include Ethernet ports, fiber optic ports, wireless ports, or other communication or diagnostic ports. Although Figure 5 System 500 is shown as including a certain number of components arranged and coupled in a certain manner, but it may include fewer or additional components arranged and coupled differently. Furthermore, the functionality associated with system 500 may be distributed as desired.
[0048] Figure 6 A data center 600 for implementing a system for integrated memory pooling and direct exchange caching according to one example is shown. As an example, the data center 600 may include several clusters of racks, including platform hardware, such as computing resources, storage resources, networked resources, or other types of resources. The computing resources may be provided via computing nodes, which are configured via servers that may be connected to switches to form a network. The network may enable connections between each possible combination of switches. The data center 600 may include server 1 610 and server N 630. The data center 600 may also include data center-related functions 660, including deployment / monitoring 670, directory / identity services 672, load balancing 674, data center controllers 676 (e.g., software defined network (SDN) controllers and other controllers), and routers / switches 678. Server 1 610 may include (multiple) CPUs 611, a host hypervisor 612, near memory 613, (multiple) storage interface controllers (SIC) 614, far memory 615, (multiple) network interface controllers (NIC) 616, and storage disks 617 and 618. Far memory 615 may be implemented as pooled memory, as described above. Server N 630 may include CPU 631, a host hypervisor 632, near memory 633, (multiple) storage interface controllers (SIC) 634, far memory 635, (multiple) network interface controllers (NIC) 636, and storage disks 637 and 638. Far memory 635 may be implemented as pooled memory, as described above. Server 1 610 may be configured to support virtual machines, including VM1 619, VM2 620, and VMN 621. The virtual machines may also be configured to support applications, such as APP1 622, APP2 623, and APPN 624. Server N 630 may be configured to support virtual machines, including VM1 639 , VM2 640 , and VMN 641 . The virtual machines may also be configured to support applications, such as APP1 642 , APP2 643 , and APPN 644 .
[0049] Continue to refer Figure 6 In one example, data center 600 can be enabled for multiple tenants using a virtual extensible local area network (VXLAN) framework. Each virtual machine (VM) can be allowed to communicate with VMs in the same VXLAN segment. Each VXLAN segment can be identified by a VXLAN network identifier (VNI). Figure 6Data center 600 is shown as including a certain number of components arranged and coupled in a certain manner, but it may include fewer or additional components arranged and coupled differently. Furthermore, the functions associated with data center 600 may be distributed or combined as desired.
[0050] Figure 7 A flowchart 700 of an example method for managing memory having near memory and far memory is shown. In one example, the steps associated with the method can be performed by the system described above (e.g., Figure 1 System 100 and Figure 2 Step 710 may include receiving a request from a requester to read a first data block stored in a near memory or a far memory, wherein the read request includes a first key associated with a first virtual machine corresponding to the system, wherein the first key is dedicated to the first virtual machine. As an example, the read request may be similar to the above description regarding Figure 3A Transaction flow 300 depicts an Rd A request. As previously described, during a read operation, the CPU (e.g., Figure 1 Any of the CPUs 112, 142, or 172) may issue a command that is communicated with an internal memory controller (e.g., Figure 1 In the example, the host agent associated with any of the internal memory controllers 118, 148 and 178 of the present invention reads the data. Figure 3A As shown in , there is a read request from a master agent to read a block of data (e.g., cache line CL$A). The read request includes not only the address of the cache line, but also a key associated with the VM making the request.
[0051] Step 720 may include, in response to determining that the far memory contains an encrypted version of the first data block, (1) retrieving the encrypted version of the first data block from the far memory, decrypting the first data block using a first key, and providing the decrypted version of the first data block to the requestor, and (2) swapping out a second data block having an address that conflicts with the first data block from the near memory to the far memory, wherein the second data block is encrypted using a second key associated with a second virtual machine corresponding to the system, and wherein the second key is dedicated to the second virtual machine. The memory controller (e.g., as described above with respect to Figure 1 Any near memory controller described herein) can analyze the metadata portion associated with the data block to determine that the far memory contains an encrypted version of the data block. Figure 3AAs described in the transaction flow 300 of FIG. 3 , data can be swapped out from near memory to far memory when there is a miss on a read request. In addition, as previously described, the near memory controller can decrypt the data using a key specific to the virtual machine on whose behalf the read operation is initiated. Advantageously, the use of per-VM keys (a first key for a first VM and a second key for a second VM) can allow for confidential computing and isolation among virtual machines.
[0052] Figure 8 A flowchart 800 of an example method for managing a memory having near memory and far memory, wherein the far memory is associated with a far memory system having root ports and endpoints separated by at least one physical link is shown. In one example, the steps associated with the method may be performed by the system described above (e.g., Figure 1 System 100 and Figure 2 Step 810 may include performing an integrity check on a set of transactions between a root port and an endpoint over at least one physical link, wherein before the integrity check is completed, data associated with the set of transactions is released for further processing by the system. For example, as previously described with reference to Figure 3A As described, the CXL root port generates a message authentication code (MAC) to ensure the integrity of data across the physical link. The data across the physical link can be transmitted in the form of a flit (e.g., 512 bits) including a MAC header. In one example, multiple flits can be processed simultaneously to generate MACs for multiple flits so that a MAC is not generated for each flit. For example, four flits can be processed to generate a MAC. The MAC can be generated using a cryptographic hash function (e.g., HMAC) or using a block cipher algorithm. The CXL endpoints that are counterparts to these transactions can perform an integrity check by comparing the locally generated MAC with the received MAC. A match can indicate an integrity check pass condition, while a lack of a match between the locally generated MAC and the received MAC can indicate an integrity check fail condition. As previously described, the integrity check can be performed in containment mode or glide mode.
[0053] Step 820 may include receiving a request from a requester to read a first data block stored in a near memory or a far memory, wherein the read request includes a first key associated with a first virtual machine corresponding to the system, and wherein the first key is dedicated to the first virtual machine. As an example, the read request may be similar to the above description of Figure 3A Transaction flow 300 depicts an Rd A request. As previously described, during a read operation, the CPU (e.g., Figure 1 Any of the CPUs 112, 142, or 172) may issue a command that is communicated with an internal memory controller (e.g., Figure 1In the example, the host agent associated with any of the internal memory controllers 118, 148 and 178 of the present invention reads the data. Figure 3A As shown in , there is a read request from a master agent to read a block of data (eg, cache line CL$A). The read request includes not only the address of the cache line, but also a key associated with the virtual machine making the request.
[0054] Step 830 may include, in response to determining that the far memory contains an encrypted version of the first data block: (1) retrieving the encrypted version of the first data block from the far memory, decrypting the first data block using a first key, and providing the decrypted version of the first data block to the requestor, wherein a delay associated with the decryption is sufficient to allow the integrity check to complete, and (2) swapping out a second data block having an address that conflicts with the first data block from the near memory to the far memory, wherein the second data block is encrypted using a second key associated with a second virtual machine corresponding to the system, and wherein the second key is dedicated to the second virtual machine. The memory controller (e.g., as described above with respect to Figure 1 Any near memory controller described herein) can analyze the metadata portion associated with the data block to determine that the far memory contains an encrypted version of the data block. Figure 3A As described in transaction flow 300 of FIG. 3 , data may be swapped out of near memory to far memory when there is a miss on a read request. Additionally, as previously described, the near memory controller may decrypt the data using a key specific to the virtual machine on whose behalf the read operation is initiated. Advantageously, the use of per-VM keys (a first key for a first VM and a second key for a second VM) may allow for confidential computing and isolation among virtual machines. Although Figure 8 The steps associated with the method are shown in flowchart 800 as being performed in a particular order, but the steps need not be performed in the order shown. As an example, the steps associated with integrity checking can be performed in such a way that data corresponding to multiple transactions associated with different read or write operations can be processed together.
[0055] In summary, the present disclosure relates to a method for managing a system having near memory and far memory. The method may include receiving a request from a requestor to read a first data block stored in the near memory or in the far memory, wherein the read request includes a first key associated with a first virtual machine corresponding to the system, wherein the first key is dedicated to the first virtual machine. The method may also include: in response to determining that the far memory contains an encrypted version of the first data block, (1) retrieving the encrypted version of the first data block from the far memory, decrypting the first data block using the first key, and providing the decrypted version of the first data block to the requestor, and (2) swapping out a second data block having an address that conflicts with the first data block from the near memory to the far memory, wherein the second data block is encrypted using a second key associated with a second virtual machine corresponding to the system, and wherein the second key is dedicated to the second virtual machine.
[0056] As part of the method, the step of determining that the far memory contains an encrypted version of the first data block may include analyzing a metadata portion associated with the first data block, the metadata portion having information related to whether the near memory contains the first data block or whether the far memory contains the first data block. The far memory may be associated with a far memory system having a root port and an endpoint separated by at least one physical link, and wherein a transaction corresponding to the read request over the at least one physical link may be encrypted, thereby resulting in double encryption of the first data block during transit over the at least one physical link.
[0057] The far memory may be associated with a far memory system having a root port and an endpoint separated by at least one physical link, and the method may further include performing an integrity check on a set of transactions between the root port and the endpoint over the at least one physical link.
[0058] The method may also include analyzing a metadata portion associated with the first data block, the metadata portion having: (1) first information related to whether the near memory contains the first data block or whether the far memory contains the first data block, (2) second information including a first trusted domain identifier value associated with the second data block stored in the near memory, and (3) third information including a second trusted domain identifier value associated with the first data block stored in the far memory, wherein each of the first trusted domain identifier value and the second trusted domain identifier value is managed by a near memory controller associated with the near memory, and neither the first trusted domain identifier value nor the second trusted domain identifier value is transmitted to the far memory.
[0059] The method may also include analyzing a metadata portion associated with the first data block, the metadata portion having: (1) first information related to whether the near memory contains the first data block or whether the far memory contains the first data block, and (2) second information including a same trusted domain identifier value associated with the second data block regardless of whether the second data block is stored in the near memory or the far memory. Each of the first data block and the second data block may include a cache line for a central processing unit (CPU) associated with the system.
[0060] In another aspect, the present disclosure relates to a system having near memory and far memory. The system may include a near memory controller configured to receive a request from a requestor to read a first data block stored in the near memory or in the far memory, wherein the read request includes a first key associated with a first virtual machine corresponding to the system, wherein the first key is dedicated to the first virtual machine. The near memory controller may also be configured to, in response to determining that the far memory contains an encrypted version of the first data block: (1) retrieve the encrypted version of the first data block from the far memory, decrypt the first data block using the first key, and provide the decrypted version of the first data block to the requestor, and (2) swap out a second data block having an address that conflicts with the first data block from the near memory to the far memory, wherein the second data block is encrypted using a second key associated with a second virtual machine corresponding to the system, and wherein the second key is dedicated to the second virtual machine.
[0061] The near memory controller may also be configured to analyze a metadata portion associated with the first data block, the metadata portion having information related to whether the near memory contains the first data block or whether the far memory contains the first data block. The far memory may be associated with a far memory system having a root port and an endpoint separated by at least one physical link, and wherein a transaction corresponding to the read request over the at least one physical link may be encrypted by the far memory system, thereby resulting in double encryption of the first data block during transit over the at least one physical link.
[0062] The far memory may be associated with a far memory system having a root port and an endpoint separated by at least one physical link, and wherein, using a message authentication code, an integrity check may be performed on any transaction over the at least one physical link. The near memory controller may also be configured to analyze a metadata portion associated with a first data block, the metadata portion having: (1) first information related to whether the near memory contains the first data block or whether the far memory contains the first data block, (2) second information including a first trusted domain identifier value associated with a second data block stored in the near memory, and (3) third information including a second trusted domain identifier value associated with the first data block stored in the far memory, and wherein each of the first trusted domain identifier value and the second trusted domain identifier value is managed by the near memory controller, and neither the first trusted domain identifier value nor the second trusted domain identifier value is transmitted to the far memory.
[0063] The near memory controller may also be configured to analyze a metadata portion associated with the first data block, the metadata portion having: (1) first information related to whether the near memory contains the first data block or whether the far memory contains the first data block, and (2) second information including a same trusted domain identifier value associated with the second data block regardless of whether the second data block is stored in the near memory or the far memory. The system may also include a central processing unit (CPU), wherein each of the first data block and the second data block may include a cache line for the CPU.
[0064] In another aspect, the present disclosure relates to a method for managing a system having near memory and far memory, wherein the far memory is associated with a far memory system having a root port and an endpoint separated by at least one physical link. The method may include performing an integrity check on a set of transactions between the root port and the endpoint over the at least one physical link, wherein before the integrity check is completed, data associated with the set of transactions is released for further processing by the system. The method may also include receiving a request from a requestor to read a first data block stored in the near memory or in the far memory, wherein the read request includes a first key associated with a first virtual machine corresponding to the system, and wherein the first key is dedicated to the first virtual machine.
[0065] The method may also include, in response to determining that the far memory contains an encrypted version of the first data block, (1) retrieving the encrypted version of the first data block from the far memory, decrypting the first data block using the first key, and providing the decrypted version of the first data block to the requestor, wherein a delay associated with the decryption is sufficient to allow the integrity check to complete, and (2) swapping out a second data block having an address that conflicts with the first data block from the near memory to the far memory, wherein the second data block is encrypted using a second key associated with a second virtual machine corresponding to the system, and wherein the second key is dedicated to the second virtual machine.
[0066] As part of the method, the step of determining that the far memory contains an encrypted version of the first data block may include analyzing a metadata portion associated with the first data block, the metadata portion having information related to whether the near memory contains the first data block or whether the far memory contains the first data block. The far memory may be associated with a far memory system having a root port and an endpoint separated by at least one physical link, and a transaction corresponding to the read request over the at least one physical link may be encrypted, thereby resulting in double encryption of the first data block during transit over the at least one physical link.
[0067] The method may also include analyzing a metadata portion associated with the first data block, the metadata portion having: (1) first information related to whether the near memory contains the first data block or whether the far memory contains the first data block, (2) second information including a first trusted domain identifier value associated with the second data block stored in the near memory, and (3) third information including a second trusted domain identifier value associated with the first data block stored in the far memory, and wherein each of the first trusted domain identifier value and the second trusted domain identifier value is managed by a near memory controller associated with the near memory, and neither the first trusted domain identifier value nor the second trusted domain identifier value is transmitted to the far memory.
[0068] The method may also include analyzing a metadata portion associated with the first data block, the metadata portion having: (1) first information related to whether the near memory contains the first data block or whether the far memory contains the first data block, and (2) second information including a same trusted domain identifier value associated with the second data block regardless of whether the second data block is stored in the near memory or the far memory. Each of the first data block and the second data block may include a cache line for a central processing unit (CPU) associated with the system.
[0069] It should be understood that the methods, modules and components described herein are merely exemplary. Alternatively, or in addition, the functions described herein may be performed at least in part by one or more hardware logic components. For example, but not limited to, illustrative types of hardware logic components that may be used include field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), etc. In an abstract but still clear sense, any arrangement of components that implement the same function is effectively "associated" so that the desired function is achieved. Therefore, any two components that are combined to achieve a specific function herein can be regarded as "associated" with each other so that the desired function is achieved, regardless of the architecture or intermediate components. Similarly, any two components so associated can also be regarded as "operably connected" or "coupled" to each other to achieve the desired function. Just because a component (which may be any other implementation of a device, structure, system or function) is described herein as being coupled to another component does not mean that these components are necessarily separate components. As an example, a component A described as being coupled to another component B may be a subcomponent of component B, component B may be a subcomponent of component A, or components A and B may be subcomponents of a combination of another component C.
[0070] Functions associated with some of the examples described in this disclosure may also include instructions stored in non-transitory media. As used herein, the term "non-transitory media" refers to any medium that stores data and / or instructions that cause a machine to operate in a particular manner. Exemplary non-transitory media include non-volatile media and / or volatile media. Non-volatile media include, for example, hard disks, solid-state drives, disks or tapes, optical disks or tapes, flash memory, EPROM, NVRAM, PRAM or other such media, or networked versions of such media. Volatile media include, for example, dynamic memories such as DRAM, SRAM, cache or other such media. Non-transitory media are different from transmission media, but can be used in conjunction with transmission media. Transmission media are used to transfer data and / or instructions to or from a machine. Exemplary transmission media include coaxial cables, fiber optic cables, copper wires, and wireless media, such as radio waves.
[0071] In addition, those skilled in the art will appreciate that the boundaries between the functions of the above-mentioned operations are merely illustrative. The functions of multiple operations can be combined into a single operation, and / or the functions of a single operation can be distributed in additional operations. In addition, alternative embodiments can include multiple instances of specific operations, and the order of operations can be changed in various other embodiments.
[0072] Although the present disclosure provides specific examples, various modifications and changes may be made without departing from the scope of the present disclosure as set forth in the appended claims. Therefore, the specification and drawings are to be regarded as illustrative rather than restrictive, and all such modifications are intended to be included within the scope of the present disclosure. Any benefits, advantages or technical solutions to problems described herein with respect to specific examples are not intended to be interpreted as key, essential or basic features or elements of any or all claims.
[0073] In addition, the terms "a" or "an" as used herein are defined as one or more than one. Moreover, the use of introductory phrases such as "at least one" and "one or more" in the claims should not be interpreted as implying that the introduction of another claim element by the word "a" or "an" limits a particular claim containing any claim element so introduced to an invention containing only one such element, even when the same claim includes the introductory phrases "one or more" or "at least one" and a word such as "a" or "an". The same is true for the use of definite articles.
[0074] Unless otherwise stated, terms such as "first" and "second" are used to arbitrarily distinguish between the elements such terms describe. Therefore, these terms are not necessarily intended to indicate temporal or other prioritization of such elements.
Claims
1. A method for managing a system having near memory and far memory, the method include: receiving a request from a requester to read a first data block stored in the near memory or in the far memory, wherein the read request includes a first key associated with a first virtual machine corresponding to the system, wherein the first key is specific to the first virtual machine; as well as In response to determining that the far memory contains an encrypted version of the first data block: (1) retrieving the encrypted version of the first data block from the far memory, decrypting the first data block using the first key, and providing the decrypted version of the first data block to the requestor, and (2) swapping out a second data block having an address that conflicts with the first data block from the near memory to the far memory, wherein the second data block is encrypted using a second key associated with a second virtual machine corresponding to the system, and wherein the second key is dedicated to the second virtual machine.
2. The method of claim 1 , wherein determining that the far memory contains an encrypted version of the first data block include: A metadata portion associated with the first data block is analyzed, the metadata portion having information related to whether the near memory contains the first data block or whether the far memory contains the first data block.
3. The method of claim 1 , wherein the far memory is associated with a far memory system having a root port and endpoints separated by at least one physical link, and wherein transactions corresponding to the read request over the at least one physical link are encrypted, thereby causing double encryption of the first data block during transportation over the at least one physical link.
4. The method of claim 1, wherein the far memory is associated with a far memory system having a root port and an endpoint separated by at least one physical link, and wherein the method further include: An integrity check is performed on a set of transactions between the root port and the endpoint over the at least one physical link.
5. The method of claim 1 , further comprising analyzing a metadata portion associated with the first data block, the metadata portion having: (1) first information related to whether the near memory contains the first data block or whether the far memory contains the first data block, (2) second information including a first trusted domain identifier value associated with the second data block stored in the near memory, and (3) third information including a second trusted domain identifier value associated with the first data block stored in the far memory, and wherein each of the first trusted domain identifier value and the second trusted domain identifier value is managed by a near memory controller associated with the near memory, and neither the first trusted domain identifier value nor the second trusted domain identifier value is transmitted to the far memory.
6. The method of claim 1 , further comprising analyzing a metadata portion associated with the first data block, the metadata portion having: (1) first information related to whether the near memory contains the first data block or whether the far memory contains the first data block, and (2) second information including the same trusted domain identifier value associated with the second data block regardless of whether the second data block is stored in the near memory or the far memory.
7. The method of claim 1, wherein each of the first data block and the second data block comprises a cache line for a central processing unit (CPU) associated with the system.
8. A system having a near memory and a far memory, the system include: a near memory controller configured to receive a request from a requester to read a first data block stored in the near memory or in the far memory, wherein the read request includes a first key associated with a first virtual machine corresponding to the system, wherein the first key is dedicated to the first virtual machine; as well as The near memory controller is also configured to, in response to determining that the far memory contains an encrypted version of the first data block: (1) retrieve the encrypted version of the first data block from the far memory, decrypt the first data block using the first key, and provide the decrypted version of the first data block to the requester, and (2) swap out a second data block having an address that conflicts with the first data block from the near memory to the far memory, wherein the second data block is encrypted using a second key associated with a second virtual machine corresponding to the system, and wherein the second key is dedicated to the second virtual machine.
9. The system of claim 8, wherein the near memory controller is further configured to analyze a metadata portion associated with the first data block, the metadata portion having information related to whether the near memory contains the first data block or whether the far memory contains the first data block.
10. The system of claim 8, wherein the far memory is associated with a far memory system having a root port and endpoints separated by at least one physical link, and wherein transactions corresponding to the read request over the at least one physical link are encrypted by the far memory system, thereby causing double encryption of the first data block during transit over the at least one physical link.
11. The system of claim 8, wherein the far memory is associated with a far memory system having a root port and endpoints separated by at least one physical link, and in, Using a message authentication code, an integrity check is performed on any transaction passing through the at least one physical link.
12. The system of claim 8 , wherein the near memory controller is further configured to analyze a metadata portion associated with the first data block, the metadata portion having: (1) first information related to whether the near memory contains the first data block or whether the far memory contains the first data block, (2) second information including a first trusted domain identifier value associated with the second data block stored in the near memory, and (3) third information including a second trusted domain identifier value associated with the first data block stored in the far memory, and wherein each of the first trusted domain identifier value and the second trusted domain identifier value is managed by the near memory controller, and neither the first trusted domain identifier value nor the second trusted domain identifier value is transmitted to the far memory.
13. The system of claim 8, wherein the near memory controller is further configured to analyze a metadata portion associated with the first data block, the metadata portion having: (1) first information related to whether the near memory contains the first data block or whether the far memory contains the first data block, and (2) second information including a same trusted domain identifier value associated with the second data block regardless of whether the second data block is stored in the near memory or the far memory.
14. The system of claim 8, wherein the system further comprises a central processing unit (CPU), and wherein each of the first data block and the second data block comprises a cache line for the CPU.
15. A method for managing a system having near memory and far memory, wherein the far memory is associated with a far memory system, the far memory system having root ports and endpoints separated by at least one physical link, the method include: performing an integrity check on a set of transactions between the root port and the endpoint over the at least one physical link, wherein prior to completing the integrity check, data associated with the set of transactions is released for further processing by the system; receiving a request from a requestor to read a first data block stored in the near memory or in the far memory, wherein the read request includes a first key associated with a first virtual machine corresponding to the system, and wherein the first key is specific to the first virtual machine; as well as In response to determining that the far memory contains an encrypted version of the first data block: (1) retrieving the encrypted version of the first data block from the far memory, decrypting the first data block using the first key, and providing the decrypted version of the first data block to the requestor, wherein a delay associated with the decryption is sufficient to allow the integrity check to complete, and (2) swapping out a second data block having an address that conflicts with the first data block from the near memory to the far memory, wherein the second data block is encrypted using a second key associated with a second virtual machine corresponding to the system, and wherein the second key is dedicated to the second virtual machine.
