Confidential compute architecture integrated with direct swap caching
Abstract
Systems and methods for a confidential compute architecture integrated with direct swap caching are described. An example method for managing a near memory and a far memory includes, in response to determining that the far memory contains an encrypted version of a first block of data, retrieving from the far memory the encrypted version of the first block of data, decrypting the first block of data using a first key for exclusive use by a first virtual machine associated with the system, and providing a decrypted version of the first block of data to the requestor. The method further includes swapping out a second block of data having an address conflict with the first block of data from the near memory to the far memory, where the second block of data is encrypted using a second key for exclusive use by a second virtual machine associated with the system.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 11 · Forward citations: 0.
Claims (20 — 3 Independent, 17 Dependent)
- Claim 1Independent Claim
A method for managing a system having a near memory and a far memory, the method comprising: receiving a read request from a requestor to read a first block of data that is either 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 for exclusive use by the first virtual machine; in response to determining that the far memory contains an encrypted version of the first block of data: (1) retrieving from the far memory the encrypted version of the first block of data, decrypting the first block of data using the first key, and providing a decrypted version of the first block of data to the requestor, and (2) swapping out a second block of data having an address conflict with the first block of data from the near memory to the far memory, wherein the second block of data is encrypted using a second key associated with a second virtual machine corresponding to the system, and wherein the second key is for exclusive use by the second virtual machine; and analyzing a metadata portion associated with the first block of data, the metadata portion including: (1) first information related to whether the near memory contains the first block of data or whether the far memory contains the first block of data, (2) second information comprising a first trusted domain identifier value associated with the second block of data stored in the near memory, and (3) third information comprising a second trusted domain identifier value associated with the first block of data 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 regardless of whether the first block of data is stored in the near memory or the far memory.
- Claim 2Depends on #1
The method of claim 1, wherein determining that the far memory contains an encrypted version of the first block of data comprises analyzing the first information included in the metadata portion associated with the first block of data.
- Claim 3Depends on #1
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 a transaction over the at least one physical link corresponding to the read request is encrypted resulting in a double encryption of the first block of data during transit over the at least one physical link.
- Claim 4Depends on #1
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 comprises performing an integrity check for a set of transactions between the root port and the endpoint over the at least one physical link.
- Claim 5Depends on #1
The method of claim 1, wherein neither the first trusted domain identifier value nor the second trusted domain identifier value is transmitted to the far memory.
- Claim 6Depends on #1
The method of claim 1, wherein the second information comprises a same trusted domain identifier value associated with the second block of data regardless of whether the second block of data is stored in the near memory or the far memory.
- Claim 7Depends on #1
The method of claim 1, wherein each of the first block of data and the second block of data comprises a cache line for a central processing unit (CPU) associated with the system.
- Claim 8Independent Claim
A system having a near memory and a far memory, the system comprising: a near memory controller configured to receive a read request from a requestor to read a first block of data that is either 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 for exclusive use by the first virtual machine; the near memory controller further configured to in response to determining that the far memory contains an encrypted version of the first block of data: (1) retrieve from the far memory the encrypted version of the first block of data, decrypting the first block of data using the first key, and provide a decrypted version of the first block of data to the requestor, and (2) swap out a second block of data having an address conflict with the first block of data from the near memory to the far memory, wherein the second block of data is encrypted using a second key associated with a second virtual machine corresponding to the system, and wherein the second key is for exclusive use by the second virtual machine; and wherein the near memory controller is further configured to analyze a metadata portion associated with the first block of data, the metadata portion having: (1) first information related to whether the near memory contains the first block of data or whether the far memory contains the first block of data, (2) second information comprising a first trusted domain identifier value associated with the second block of data stored in the near memory and (3) third information comprising a second trusted domain identifier value associated with the first block of data 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 regardless of whether the first block of data is stored in the near memory or the far memory.
- Claim 9Depends on #8
The system of claim 8, wherein as part of determining that the far memory contains an encrypted version of the first block of data, the near memory controller is further configured to analyze the first information included in the metadata portion associated with the first block of data.
- Claim 10Depends on #8
The system of claim 8, 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 a transaction over the at least one physical link corresponding to the read request is encrypted by the far memory system, resulting in a double encryption of the first block of data during transit over the at least one physical link.
- Claim 11Depends on #8
The system of claim 8, 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, using a message authentication code, an integrity check is performed for any transactions over the at least one physical link.
- Claim 12Depends on #8
The system of claim 8, wherein neither the first trusted domain identifier value nor the second trusted domain identifier value is transmitted to the far memory.
- Claim 13Depends on #8
The system of claim 8, wherein the second information comprises a same trusted domain identifier value associated with the second block of data regardless of whether the second block of data is stored in the near memory or the far memory.
- Claim 14Depends on #8
The system of claim 8, wherein the system further comprises a central processing unit (CPU), and wherein each of the first block of data and the second block of data comprises a cache line for the CPU.
- Claim 15Independent Claim
A method for managing a system having a near memory and a 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 comprising: performing an integrity check for a set of transactions between the root port and the endpoint over the at least one physical link; receiving a read request from a requestor to read a first block of data that is either 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 for exclusive use by the first virtual machine; and in response to determining that the far memory contains an encrypted version of the first block of data: (1) retrieving from the far memory the encrypted version of the first block of data, decrypting the first block of data using the first key, and providing a decrypted version of the first block of data to the requestor, wherein a latency associated with the decrypting is sufficient to allow for a completion of the integrity check and (2) swapping out a second block of data having an address conflict with the first block of data from the near memory to the far memory, wherein the second block of data is encrypted using a second key associated with a second virtual machine corresponding to the system, and wherein the second key is for exclusive use by the second virtual machine; and analyzing a metadata portion associated with the first block of data, the metadata portion having: (1) first information related to whether the near memory contains the first block of data or whether the far memory contains the first block of data, (2) second information comprising a first trusted domain identifier value associated with the second block of data stored in the near memory, and (3) third information comprising a second trusted domain identifier value associated with the first block of data 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 regardless of whether the first block of data is stored in the near memory or the far memory.
- Claim 16Depends on #15
The method of claim 15, wherein determining that the far memory contains an encrypted version of the first block of data comprises analyzing the first information included in the metadata portion associated with the first block of data.
- Claim 17Depends on #15
The method of claim 15, 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 a transaction over the at least one physical link corresponding to the read request is encrypted by the far memory system, resulting in a double encryption of the first block of data during transit over the at least one physical link.
- Claim 18Depends on #15
The method of claim 15, wherein neither the first trusted domain identifier value nor the second trusted domain identifier value is transmitted to the far memory.
- Claim 19Depends on #15
The method of claim 15, wherein the second information comprises a same trusted domain identifier value associated with the second block of data regardless of whether the second block of data is stored in the near memory or the far memory.
- Claim 20Depends on #15
The method of claim 15, wherein each of the first block of data and the second block of data comprises a cache line for a central processing unit (CPU) associated with the system.
Technical Overview & Description
BACKGROUND Multiple users or tenants may share systems, including computing systems and communications systems. Computing systems may include the public cloud, the private cloud, or a hybrid cloud having both public and private portions. The public cloud includes a global network of servers that perform a variety of functions, including storing and managing data, running applications, and delivering content or services, such as streaming videos, provisioning electronic mail, providing office productivity software, or handling social media. The servers and other components may be located in data centers across the world. While the public cloud offers services to the public over the Internet, businesses may use private clouds or hybrid clouds. Both private and hybrid clouds also include a network of servers housed in data centers. Multiple tenants may use compute, storage, and networking resources associated with the servers in the cloud. The compute, storage, and networking resources may be provisioned using a host operating system (OS) installed on a compute node (e.g., a server) in a data center. Each host OS may allow multiple virtual machines to access the compute and memory resources associated with a respective compute node. Because of the uneven usage 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 be unutilized by the host servers. Provisioning of shared memory may alleviate some of these issues. However, the shared memory, when separated by an additional physical link (and a controller) from a CPU, may create additional security challenges for the tenants. SUMMARY In one aspect, the present disclosure relates to a method for managing a system having a near memory and a far memory. The method may include receiving a request from a requestor to read a first block of data that is either stored in the near memory or in the far memory
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (11)
Non-Patent Literature (10)
- “
- International Search Report and Written Opinion Issued in PCT Application No. PCT/US23/011567
- ”
- , Mailed Date: May 4, 2023, 13 Pages.
- “
- Compute Express Link Specification
- ”
- , In the White Paper of Compute Express Link, Revision 2.0, Oct. 26, 2020, 628 Pages.
- “
- Trusted Execution Environment (TEE) 101: A Primer