Secure shared memory buffer for communication between trusted execution environment virtual machines
By introducing a secure shared memory buffer (SSMB) into the computing system to manage communication between virtual machines in a trusted execution environment, the communication efficiency and security problems in the existing technology are solved, and efficient and secure communication between virtual machines is achieved.
Patent Information
- Application Number
- CN202280092602.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-03-28
- Filing Date
- 2022-09-28
- Publication Date
- 2024-10-08
AI Technical Summary
In computing systems, existing technologies are difficult to achieve efficient and secure communication between trusted execution environment virtual machines, resulting in dense cryptographic software stacks and increased transport layer service connection settings, affecting communication time and possibly unnecessary and Potentially unsafe virtual machine manager interaction.
The Secure Shared Memory Buffer (SSMB) is used to implement secure communication between virtual machines in a trusted execution environment. Access permissions are managed by the SSMB owner to ensure private memory sharing between multiple virtual machines and ensure the confidentiality and integrity of communication. sex.
Improves communication performance between trusted execution environment virtual machines, reduces the use of cryptographic software stacks and the need for transport layer services, enhances communication security and efficiency, and avoids unnecessary virtual machine manager interactions.
Smart Images

Figure CN118749097A_ABST
Abstract
Description
Related Applications
[0001] This application claims the benefit of PCT Provisional Application No. PCT / CN2022 / 083264 filed on March 28, 2022. Technical Field
[0002] The present disclosure relates generally to communication between processes in a computing system, and more particularly to implementing a secure shared memory buffer for communication between trusted execution environment virtual machines. Background Art
[0003] Some computing systems provide a confidential computing architecture that includes architectural elements that facilitate the deployment of a hardware-isolated, trusted execution environment (TEE) virtual machine (VM) (TEE VM, TVM). In some implementations, the TVM is referred to as a trusted domain (TD). An example of such a confidential computing architecture is Trust Domain Extension TDX is designed to isolate TD from the virtual machine manager (VMM) / hypervisor and any other non-TD software on the computing system to protect TD from a wide range of potential software attacks.
[0004] Achieving efficient communication between TVMs that maintains confidentiality and integrity is problematic. Some approaches result in the use of dense cryptographic software stacks, increased transport layer service (TLS) connection setup and communication time, and unnecessary and potentially insecure VMM interactions. BRIEF DESCRIPTION OF THE DRAWINGS
[0005] Figure 1 is a block diagram illustrating an example computing system that provides isolation in a virtualized system using TVM according to one implementation.
[0006] Figure 2 The diagram illustrates a computing system with a secured shared memory buffer (SSMB) for enabling efficient and secure communication between TVMs, according to an example.
[0007] Figure 3 The diagram illustrates a secure shared memory buffer (SSMB) state machine according to an example.
[0008] Figure 4is a flow chart of a process for SSMB according to an example.
[0009] Figure 5 is constructed to execute and / or instantiate Figure 1-Figure 4 Machine readable instructions and / or operations to implement reference Figure 1-Figure 4 Block diagram of an example processor platform for the apparatus discussed.
[0010] Figure 6 yes Figure 5 A block diagram of an example implementation of a processor circuit system.
[0011] Figure 7 yes Figure 5 A block diagram of another example implementation of a processor circuit system.
[0012] Figure 8 is a block diagram illustrating an example software distribution platform for distributing software such as Figure 5 The example machine-readable instructions of the software are distributed to a hardware device owned and / or operated by a third party.
[0013] The drawings are not drawn to scale.In general, the same reference numbers will be used to refer to the same or like parts throughout the drawings(s) and the accompanying written description. DETAILED DESCRIPTION
[0014] The technology described herein provides methods, systems, and apparatus for improving the performance of secure communications between trusted execution environment virtual machines (TVMs) in a computing system. The present invention is described with reference to the confidential computing architecture of TDX, although other implementations may also be used in other confidential computing architectures including TVM, such as, for example, Secure Encrypted Virtualization (SEV) or Realm Management Extension (RME).
[0015] In the following specific embodiments, reference is made to the accompanying drawings that form a part of this specification, and specific examples that can be put into practice are illustrated therein. These examples are described in sufficient detail to enable those skilled in the art to practice the subject matter, and it should be understood that other examples can be utilized, and logical, mechanical, electrical and / or other changes can be made without departing from the scope of the subject matter of the present disclosure. Therefore, the following specific embodiments are provided to describe example implementations, and should not be considered as limiting the scope of the subject matter described in the present disclosure. Certain features from the different aspects described below can be combined to form new aspects of the subject matter discussed below.
[0016] As used herein, unless otherwise indicated, connection references (e.g., attached, coupled, connected, and joined) may include intermediate members between elements referenced by the connection reference and / or relative movement between those elements. Thus, connection references do not necessarily imply that two elements are directly connected and / or are in a fixed relationship to each other. As used herein, stating that any component is "in contact" with another component is defined to mean that there are no intermediate components between the two components.
[0017] Unless otherwise specifically stated, descriptors such as "first", "second", "third", etc. are used herein without imposing or otherwise indicating any meaning of priority, physical order, arrangement in a list, and / or ordering in any manner, but are used only as labels and / or arbitrary names to distinguish elements for ease of understanding the disclosed examples. In some examples, the descriptor "first" may be used to refer to an element in a specific embodiment, while a different descriptor such as "second" or "third" may be used in the claims to refer to the same element. In such instances, it should be understood that such descriptors are only used to clearly identify elements that may, for example, otherwise share the same name. As used herein, "approximately" and "approximately" refer to dimensions that may not be exact due to manufacturing tolerances and / or other real-world imperfections.
[0018] As used herein, a "processor" or "processing device" or "processor circuitry" or "hardware resource" is defined as including (i) one or more dedicated electrical circuits that are configured to perform (one or more) specific operations and include one or more semiconductor-based logic devices (e.g., electrical hardware implemented by one or more transistors), and / or (ii) one or more semiconductor-based general-purpose electrical circuits that are programmed with instructions to perform specific operations and include one or more semiconductor-based logic devices (e.g., electrical hardware implemented by one or more transistors). Examples of processor circuitry include programmed microprocessors, field programmable gate arrays (FPGAs) that can instantiate instructions, central processor units (CPUs), graphics processor units (GPUs), digital signal processors (DSPs), XPUs or microcontrollers, and integrated circuits such as application-specific integrated circuits (ASICs). For example, the XPU may be implemented by a heterogeneous computing system including multiple types of processor circuit systems (e.g., one or more FPGAs, one or more CPUs, one or more GPUs, one or more DSPs, etc., and / or combinations thereof) and (one or more) application programming interfaces (APIs) that can dispatch (one or more) computing tasks to whichever (or which) of the multiple types of processing circuit systems is most suitable for performing the (one or more) computing tasks. As used herein, a device may include a processor circuit system or a hardware resource.
[0019] As used herein, a computing system may be, for example, a server, a disaggregated server, a personal computer, a workstation, a self-learning machine (e.g., a neural network), a mobile device (e.g., a cellular phone, a smart phone, a tablet (such as an iPad), or a computer program product. TM)), personal digital assistant (PDA), Internet appliance, DVD player, CD player, digital video recorder, Blu-ray player, game console, personal video recorder, set-top box, head-mounted device (e.g., augmented reality (AR) head-mounted device, virtual reality (VR) head-mounted device, etc.) or other wearable device, electronic voting machine, or any other type of computing device.
[0020] In the following description, numerous specific details are set forth, such as specific application binary interface (ABI) primitives, specific operations and sequences of operations, specific Trust Domain Extension (TDX) implementation details, etc. However, embodiments may be practiced without these specific details. In other instances, well-known circuits, structures, and techniques are not shown in detail to avoid obscuring the understanding of this specification. In other implementations, TDX may be referred to as a Trusted Execution Environment (TEE) security manager (TSM).
[0021] Cloud security providers (CSPs), driven by their customers' requirements, desire cryptographic isolation for customer workloads running on their computing platforms. In some implementations, cryptographic isolation can be provided by Secure Memory Encryption (SME) and Secure Encrypted Virtualization (SEV) from Advanced Micro Devices (AMD) to meet these cloud provider requirements. In other implementations, cryptographic isolation can be provided by Secure Memory Encryption (SME) and Secure Encrypted Virtualization (SEV) from Advanced Micro Devices (AMD). The company's TDX provides for providing such isolation on the server and removing CSP software (e.g., virtual machine manager (VMM)) from the trust boundary. TDX uses a multi-key (MK) total memory encryption (TME) engine (MK-TME) to provide cryptographic isolation for customer workloads in cloud computing environments, which provides both confidentiality and integrity. Although the cryptographic mechanisms implemented in the MKTME engine circuit system are used to provide confidentiality and integrity to trust domain data, they impose additional performance overhead.
[0022] In some implementations, the protected TVM can be a TD in TDX. TDX extends the virtual machine extension (Virtual Machines Extension, VMX) and MKTME through a virtual machine guest machine called a trust domain (TD). TD runs in central processing unit (CPU) mode, which protects the confidentiality of the memory contents of TD and the CPU state of TD from any other software (including VMM) unless these are explicitly shared by TD itself. TDX is built on the secure arbitration mode (Secure Arbitration Mode, SEAM), which is a CPU mode and an extension of the VMX instruction set architecture (instruction set architecture, ISA). The TDX module running in SEAM mode acts as an intermediary between the VMM and the guest TD. VMM is expected to have TDX awareness. VMM can start and manage both guest TD and traditional guest VM. VMM can maintain traditional functions from the perspective of traditional VM. VMM may be limited in terms of TD managed by VMM.
[0023] In general, a Trusted Execution Environment Security Manager (TSM), such as a TDX module in a TDX architecture, can help provide confidentiality (and integrity) for customer (tenant) software executing in an untrusted CSP infrastructure. The TVM architecture, which can be a System-on-Chip (SoC) capability, provides isolation between TVM workloads and CSP software, such as a VMM of a computing system 101 managed by a CSP. Components of the TVM architecture may include 1) memory encryption (e.g., via an MKTME engine), 2) resource management capabilities such as a VMM, and 3) execution state and memory isolation capabilities in processors of platform hardware provided via a TSM-managed Physical Address Metadata Table (PAMT) 116 and confidential TVM control structures enforced by the TSM. The TVM architecture provides the processor's capability to deploy a TVM that utilizes a memory encryption engine (such as the MKTME engine), PAMT, secure (integrity protected) extended page tables (SEPT), and access-controlled confidential TVM control structures for secure operation of TVM workloads.
[0024] In one implementation, the tenant's software is executed in a TVM (e.g., TD). The TVM (also referred to as a tenant TVM) refers to a tenant workload (which may include, for example, a separate OS and other ring 3 applications running on top of the OS, or a VM running on top of a VMM and other ring 3 applications). Each TVM can operate independently of other TVMs in the system and can use (one or more) logical processors, memory, and I / O assigned by the VMM on the platform. Each TVM can be cryptographically isolated in memory using at least one exclusive encryption key of a memory encryption engine (e.g., MKTME engine) to encrypt the memory associated with the TVM (keeping code and / or data).
[0025] In some implementations, the VMM in the TVM architecture may act as a host for the TVM and may have full control over the cores and other components of the computing system 101 hardware. The VMM may assign (one or more) logical processors to software in the TVM. However, the VMM may be restricted from accessing the execution state of the TVM on the assigned (one or more) logical processors. Similarly, the VMM assigns physical memory and I / O resources to the TVM, but has no access to the memory state of the TVM due to the use of separate encryption keys enforced by the CPU for each TVM, as well as other integrity and playback controls on the memory. Software executed in the TVM operates with reduced privileges so that the VMM can retain control of platform resources. However, in the defined case, the VMM cannot affect the confidentiality or integrity of the TVM state in memory or in the CPU structure.
[0026] Figure 1 1 is a schematic block diagram of a computing system 101 according to an implementation of the present disclosure, the computing system 101 using TVM to provide isolation in a virtualized system. The computing system 101 supports client devices 118A-118C. The computing system 101 includes at least one processor 109 (also referred to as a processing device) executing a root VMM 102 (which may be an implementation of a VMM). The root VMM 102 may include a VMM (which may also be referred to as a hypervisor), which may instantiate one or more TVMs 105A-105C, which may be accessed by client devices 118A-118C via a network interface 117. The client device may include, but is not limited to, one or more of the following: a desktop computer, a tablet computer, a laptop computer, a netbook, a notebook computer, a personal digital assistant (PDA), a server, a workstation, a cellular phone, a mobile computing device, a smart phone, an Internet device, or any other type of computing device.
[0027] TVM can refer to tenant (e.g., customer) workloads. Tenant workloads may include, for example, a separate OS and other Ring 3 applications running on top of the OS, or may include VMs and other Ring 3 applications running on top of a VMM.
[0028] The processor 109 may include one or more cores 110, range registers 111, a memory management unit (MMU) 112 and (one or more) output ports 119, one or more TVM control structures (TVMCS) 114, and (one or more) TVM virtual-processor control structures (TVMVPS) 115. The processor 109 may be used in a system including, but not limited to, a desktop computer, a tablet computer, a laptop computer, a netbook, a notebook computer, a personal digital assistant (PDA), a server, a workstation, a cellular phone, a mobile computing device, a smart phone, an Internet device, or any other type of computing device. In another implementation, the processor 109 may be used in a SoC system.
[0029] Computing system 101 may be a server or other computer system having one or more processors available from Intel Corporation, AMD, Inc., or other processor developers, although the scope of the techniques described herein is not so limited. In one implementation, sample computing system 101 executes WINDOWS 1080p, available from Microsoft Corporation in Redmond, Washington. TM A version of an operating system, although other operating systems (e.g., UNIX and Linux), embedded software, and / or graphical user interfaces may also be used. Thus, implementations of the present disclosure are not limited to any specific combination of hardware circuitry and software.
[0030] One or more processing cores 110 execute instructions of the system. Processing core 110 includes, but is not limited to, pre-fetch circuitry for fetching instructions, decode circuitry for decoding instructions, execution circuitry for executing instructions, etc. In an implementation, computing system 101 includes components such as processor 109 to employ execution units including circuitry to execute processes for processing data.
[0031] The computing system 101 includes a main memory 120 and a secondary storage 121 for storing program binaries and OS driver events. Data in the secondary storage 121 may be stored in blocks called pages, and each page may correspond to a set of physical memory addresses. The computing system 110 may employ virtual memory management in which applications such as TVMs 105A-105C run by (one or more) cores 110 use virtual memory addresses that are mapped to guest physical memory addresses, and the guest physical memory addresses are mapped to host / system physical addresses by the MMU 112.
[0032] The core 110 may use the MMU 112 to load pages from the secondary storage 121 into the main memory 120 (which may include volatile memory and / or non-volatile memory) for faster access by software running on the processor 109 (e.g., on the core). When one of the TVMs 105A-105C attempts to access a virtual memory address corresponding to the physical memory address of the page loaded into the main memory, the MMU returns the requested data. The core 110 may execute the VMM portion of the root VMM 102 to translate the guest physical addresses into the host physical addresses of the main memory and provide parameters for the protocol that allows the core to read, walk, and interpret these mappings.
[0033] In one implementation, the processor 109 implements the TVM architecture and an ISA extension (SEAM) for the TVM architecture. The SEAM architecture and a trusted execution environment security manager (TSM) running in SEAM mode are used to provide isolation between TVM workloads 105A-105C and isolation from CSP software (e.g., CSP VMM (e.g., root VMM 102)) executing on the processor 109. Components of the TVM architecture may include: 1) memory encryption, integrity, and replay protection via a memory encryption engine 113; 2) resource management capabilities referred to herein as the root VMM 102; and 3) execution state and memory isolation capabilities in the processor 109 provided via PAMT 116 and via access-controlled confidential TVM control structures (e.g., TVMCS 114 and TVMVPS 115). The TDX architecture provides the processor 109 with the capability to deploy TVMs 105A-105C that utilize a memory encryption (mem encr) engine 113, a PAMT 116, and access-controlled TVM control structures (eg, TVMCS 114 and TVMVPS 115) for secure operation of TVM workloads 105A-105C.
[0034] In an implementation of the present disclosure, the root VMM 102 acts as the host and has control over the core 110 and other platform hardware. The VMM assigns (one or more) logical processors to the software in the TVM 105A-105C. However, the VMM cannot access the execution state of the TVM on the assigned (one or more) logical processors. Similarly, the VMM assigns physical memory and I / O resources to the TVM, but does not have access to the memory state of the TVM due to multiple separate encryption keys and other integrity and playback controls on the memory.
[0035] Regarding separate encryption keys, the processor can utilize a memory encryption engine 113 to encrypt (and decrypt) memory used during execution. With full memory encryption (TME), any memory access performed by software executed on the core 110 can be encrypted in memory using an encryption key. In an implementation, MKTME is an enhancement of TME that allows the use of multiple encryption keys that can be implemented in the memory encryption engine 113. The processor 109 can utilize a memory encryption engine so that different pages are encrypted using different keys. The memory encryption engine 113 can be used in the TVM architecture described herein to support one or more encryption keys for each TVM 105A-105C, thereby helping to achieve cryptographic isolation between different CSP customer workloads. For example, when the memory encryption engine is used in the TVM architecture, the CPU defaults to a mandatory requirement: TVM (all pages) will be encrypted using a TVM-specific key. In addition, the TVM can further select a specific TVM page as plaintext, or select a specific TVM page as encrypted using a different ephemeral key that is opaque to the CSP software.
[0036] Each TVM 105A-105C is a software environment that supports a software stack (e.g., using virtual machine extensions (VMX)), an OS, and / or application software (hosted by the OS). Each TVM can operate largely independently of other TVMs and use the logical processor(s), memory, and I / O assigned by the VMM 102 on the platform. Software executed in a TVM operates with reduced privileges so that the VMM can retain control of platform resources; however, under defined circumstances, the VMM cannot affect the confidentiality or integrity of the TVM.
[0037] The computing system 101 includes a main memory 120. The main memory includes a DRAM device, a static random-access memory (SRAM) device, a flash memory device, or other memory devices. The main memory stores instructions and / or data represented by data signals for execution by the processor 109. The processor can be coupled to the main memory via a processing device bus. A system logic chip such as a memory controller hub (MCH) can be coupled to the processing device bus and the main memory. The MCH can provide a high-bandwidth memory path to the main memory for instruction and data storage and for storage of graphics commands, data, and textures. For example, the MCH can be used to guide data signals between the processor, the main memory, and other components in the system, and to bridge data signals between the processing device bus, the memory, and the system I / O. The MCH can be coupled to the memory through a memory interface. In some implementations, the system logic chip can provide a graphics port for coupling to a graphics controller through an Accelerated Graphics Port (AGP) interconnect.
[0038] The computing system 101 may also include an I / O controller hub (ICH). The ICH may provide direct connections to some I / O devices via a local I / O bus. The local I / O bus is a high-speed I / O bus used to connect peripheral devices to the memory 120, the chipset, and the processor 109. Some examples are audio controllers, firmware hubs (flash BIOS), wireless transceivers, data storage devices, traditional I / O controllers including user input and keyboard interfaces, serial expansion ports such as Universal Serial Bus (USB), and network controllers. Data storage devices may include hard disk drives, floppy disk drives, CD-ROM devices, flash memory devices, or other mass storage devices.
[0039] The implementations described herein improve secure communications between TVMs (such as TDs in one implementation) (such as two or more of TVM 105A, TVM 105B, and TVM 105C) by providing a secure shared memory buffer (SSMB). An SSMB is a shared private and secure memory that can be accessed by more than one TVM. Figure 2 The diagram illustrates a computing system 200 having a secure SSMB 204 for facilitating communication between TVMs according to an example. In the example, the computing system 200 is Figure 1101, wherein some components are omitted for clarity. In an implementation, SSMB 204 is a processor (such as Figure 1 In another implementation, SSMB 204 is embodied in software in TD. In another implementation, SSMB 204 is embodied in one or more of main memory 120 and secondary storage 121 of computing system 200. In another implementation, SSMB 204 is a resource that resides in an external device and is mapped to TVM using memory mapped input output (MMIO) operations.
[0040] In the example, SSMB 204 is instantiated in a trusted computing base (TCB) manager TVM called SSMB owner 202 running on computing system 200. Computing system 200 also runs a trusted execution environment security manager (TSM) 212 (e.g., a collection of TVM capabilities and data structures such as Figure 1 TVMCS 114 and TVMVPS 115) and VMM 214 (e.g., Figure 1 102).
[0041] In one implementation, SSMB 2204 has the following properties: (1) SSMB is part of the VM (eg, TVM private memory) of SSMB owner 202; (2) SSMB can be shared among multiple TVMs (eg, TDs). (3) SSMB 204 includes access permissions (e.g., for group IDs, read, write, execute, or any other mapping attributes that the SSMB owner wants to enforce, such as, but not limited to, memory type (write-back (WB), write-combining (WC), uncached memory (UC), etc.); (4) an entity, SSMB owner 202, has ownership of SSMB 204, which controls creation, deletion, attributes, access authorization, and access revocation; (5) SSMB 204 has multiple users, including two or more SSMB users, such as SSMB user 1 206, SSMB user 2 208, ..., SSMB user N 210, where N is a natural number, which can use SSMB 204 based on the authorized attributes; and (6) SSMB has a page order measurement capability to ensure that the order of SSMB pages configured by SSMB owner 202 is maintained by the untrusted VMM that maps SSBM pages to SSMB users. 214 Reserved. To ensure that the mapping of SSMBs in the user TVM cannot be reordered, SSMB techniques may involve ordering enforcement, such as reporting and measurement of page order or other mechanisms. In general, a SSMB user may be a TVM (eg, a TD in a TDX implementation).
[0042] SSMB owner 202 is a special TVM. SSMB owner 202 creates SSMB 204 and manages and enforces access permissions with the assistance of TSM 212. SSMB users 206, 208, ..., 210 can request access to SSMB 204 from SSMB owner 202 and obtain the access after SSMB owner 202 uses attestation, certificates, or any other cryptographically secure mechanism for authenticated SSMB TVM users. SSMB 204 can be used for secure memory sharing in confidential computing environments. SSMB can solve existing problems for many applications and use cases, and can also be used in other scenarios where communication between TVMs is required.
[0043] Although described in this article with respect to TDX, SSMB can also be implemented in other confidential computing architectures, such as AMD Secure Encrypted Virtualization (SEV), ARM Domain Management Extensions (RME), and the ARM Confidential Computing Architecture (CCA).
[0044] The implementations described herein provide technical advantages, including but not limited to addressing shortcomings with respect to existing TVM to TVM (e.g., TD to TD) communication methods. The implementations herein provide a general software pattern on how to allow two confidential computing environments to communicate with each other using special TCB support via SSMB owner 202.
[0045] SSMB owner 202 requests VMM 214 to create SSMB 204 and manage access permissions with the assistance of TSM 212. SSMB owner 202 indicates to other TVMs that the SSMB owner is a SSMB provider (SSMBs are allocated from the SSMB owner's private memory) and a controller (the SSMB owner decides which TVM users can have access to the SSMB).
[0046] SSMB users (e.g., SSMB user 1 206, SSMB user 2 208, ..., SSMB user N 210) may use SSMB 204. SSMB users request access to SSMB 204 from SSMB owner 202 and obtain access after the SSMB owner authenticates the requesting SSMB user using credentials, certificates, or any other cryptographically secure mechanism.
[0047] VMM 214 manages SSMB 204 along with other memory in computing system 200. For example, VMM can add SSMB pages to TVM (e.g., one of SSMB users). In the techniques described herein, the threat model is unchanged even if VMM is outside of the trusted computing base (TCB) of SSMB owner 202. The confidentiality and integrity of SSMB 204 will be maintained. VMM 214 can cause a denial of service (DOS) to SSMB 204 (in a manner similar to conventional private memory).
[0048] TSM 212 enforces security policies and provides an application programming interface (API) for accessing SSMB 204. After SSMB owner 202 configures SSMB 204, access permissions to the SSMB can be managed by TSM 212. TSM 212 also maintains the order of SSMB pages, and the order can be verified by SSMB users.
[0049] SSMB owner 202 is the owner of SSMB 204. A binding process is utilized to enable SSMB owner 202 to set up SSMB user permission groups and assume a trust relationship between SSMB users and SSMB owner. As part of the binding process, SSMB owner 202 also has the ability to determine the identities of SSMB users that can run in the SSMB owner's key domain. VMM 214 establishes SSMB owner 202 to allow the SSMB owner to identify SSMB users (read / set their group IDs and activate them, giving them final measures that will be enforced by TSM later). VMM 214 establishes SSMB user with SSMB owner binding and obtains SSMB user handle. VMM 214 sends SSMB user handle to SSMB owner 202. Using the handle, SSMB owner approves SSMB user, and group identifier (ID) for permission group (used to express memory sharing permissions per group rather than per instance).
[0050] The goal of SSMB 204 is to enable private memory sharing between TVMs to achieve secure and fast mixing. In one implementation, SSMB 204 is an ordered set of selected host physical address (HPA) pages allocated from the private guest physical address (GPA) space of the SSMB owner. SSMB 204 is explicitly shared by SSMB owner 202 and SSMB users 206, 208, ..., 210 who specify predefined access permissions.
[0051] In an implementation, security requirements for SSMB 204 may include: (1) structural integrity - all views of the SSMB should be consistent (exact HPA order and size); (2) the SSMB owner controls SSMB access permissions; (3) SSMB pages cannot be reclaimed from the SSMB owner while other SSMB users may be accessing the SSMB; and (4) two SSMBs cannot share the same HPA pages (that is, an ordered set of selected host physical address pages can be allocated to only one SSMB at a time).
[0052] In an implementation, the SSMB owner 202 manages the SSMB 204 using a SSMB control structure (SSMBCS) 205. The SSMBCS 205 fields may include: 1) Owner - SSMB owner HPA; 2) Group Permission Table (GPT) of group ID to permission (RWX) entries (e.g., 16 entries); 3) Measurement (MR) of the SSMB 204 HPA when an entry is added by the SSMB owner (e.g., using a secure hash algorithm (SAHA)); algorithm, SHA) SHA-384 process) and size; 4) OWNER_REF_CNT (owner_reference_count) – total SSMB pages mapped to the security extended page table (SEPT) of the SSMB user, decremented at each SSMB owner page removal, and only when this counter == 0, the SSMB can be reclaimed; 5) USER_REF_CNT (user_reference_count) – total SSMB pages mapped to (one or more) users (e.g., SSMB users) (one or more) SEPTs, decremented at each SSMB user alias page removal, and only when this counter == 0, the SSMB page mapping can be blocked / changed in the SEPT of the SSMB owner; and 6) status (NULL / INIT / READY / BLOCKED).
[0053] Figure 3 The diagram illustrates an SSMB state machine 300 according to an example. SSMB states may include Empty 302, Initialization (Init) 306, Ready 310, and Blocked 316. The SSMB state machine 300 represents the SSMB context, not the memory pages themselves (e.g., in the main memory 129 and / or the secondary storage 121). The SSMB 204 contains pages, and once the SSMB is in the Ready 310 state, the TSM 212 enforces relaxed security properties, allowing the same physical page to be mapped to more than a single TVM at a time. In an implementation, this is reflected in the operations named "*_PAGE_*" below, for example, which are aligned with conventional TDX private memory management APIs.
[0054] The Empty 302 state means that the SSMB 204 does not exist. In an implementation, the VMM 214 calls the SSMB Create 304 operation to create an instance of the SSMB, including the SSMBCS 205 assigning the SSMB 204 to the SSMB Owner 202. In an implementation, the SSMB Create operation may be a new TDX application programming interface (API) called TDH.SSMB.CREATE. The SSMB 204 then transitions to the Initialized 306 state.
[0055] The Initialize 306 state means that a new instance of the SSMB has been created, but has not yet been configured and cannot be shared with SSMB users. The SSMB Owner 202 calls the SSMB Configure 308 operation to configure access permissions (e.g., including the TVM User Group ID). In an implementation, the SSMB Configure 308 operation can be a new TDX API called TDG.SSMB.CONFIG for configuring access properties. The SSMB Owner 202 also calls the SSMB Allocate operation ( Figure 3 204 SSMBs 204 are mapped to SSMB users in the same HPA order. In an implementation, the SSMB allocation operation may be a new TDX API for allocating memory called TDG.SSMB.AUG. In an implementation, the SSMB owner 202 may use a reference counter to track the number of SSMB mappings for all SSMB users. The SSMB 204 then transitions to the Ready 310 state. The SSMB 204 is configured and may be shared by the SSMB owner 202 and SSMB users.
[0056] Once the untrusted VMM 214 maps the SSMB page to the SSMB user, the SSMB user cannot access the page until the SSMB user explicitly calls the SSMB Accept 312 operation to allow the user to verify the SSMB mapping order. During the mapping of the SSMB page to the SSMB user TVM (e.g., TD) by the VMM, the access permissions are enforced by the TSM 212 (e.g., TDX module). The SSMB Accept 312 operation can accept the measurement hash from the SSMB user. As part of the SSMB Accept operation, the SSMB user provides the measurement reflecting the SSMB mapping order and optionally provides the content of at least a portion of the SSMB.
[0057] The expected measurement hash can be checked by the TEE security manager 212 as a prerequisite for the SSMB page to exist, and thereby provide a mechanism for the SSMB user to ensure that the SSMB mapping properties, order, and even content match the expected values. In an implementation, how the SSMB user obtains the expected measurement can be done by exposing the SSMB information stored by the SSMB owner or implicitly (e.g., comparing the measurement to the last page accepted by the SSMB user). In an implementation, the SSMB acceptance 312 can be implemented by a new API called SSMB_Accept. In an implementation, the SSMBAccept 312 operation can be implemented by new TDX APIs called TDG.SSMB.PAGE.ACCEPT and TDG.SSMB.PAGE.VERIFY to accept the SSMB page, and can be implemented by a new TDX API called TDG.SSMB.PAGE.VERIFY to verify that the VMM 214 correctly added the SSMB page.
[0058] The Ready 310 state means that the SSMB 204 can be used by the assigned SSMB user. For example, if the SSMB owner 202 has copied the downloaded disk image to the SSMB 204, the SSMB user can copy the downloaded disk image from the SSMB to the SSMB user to use the downloaded disk image directly. This can be done by all SSMB users who need to access the SSMB.
[0059] When the SSMB is no longer needed, the SSMB owner 202 can remove access to the SSMB 204. The SSMB owner 202 can instruct the VMM 214 to reclaim the SSMB. The VMM calls the SSMB blocking operation 314 to ensure that the SSMB that is still operational can no longer be shared with new SSMB users, nor can the SSMB be used to create new mappings of SSMB buffer pages to the private memory space of the SSMB user. The SSMB now transitions to the blocking 316 state.
[0060] In the blocked 316 state, the VMM 214 is prohibited from creating new mappings to SSMB pages in any SSMB user TVM, and all SSMB mapping references must be deleted from all SSMB users in order to complete the reclamation process by calling the SSMB remove operation 318. The TSM 212 checks that all SSMB references (e.g., mappings) have been removed from all SSMB users as a prerequisite for SSMB removal.
[0061] The SSMB 204 then transitions back to the empty 302 state. To remove the SSMB, the VMM calls the new SSMB_REMOVE API, and the TSM checks if there are no reference mappings to the SSMB pages in the SSMB user TVM.
[0062] Figure 4 4 is a flow chart of a process 400 for a SSMB 204 according to an example. At block 402, the VMM 214 creates the SSMB 204 in a memory circuit system (e.g., the main memory 120 or the secondary storage device 121) and assigns ownership of the SSMB to the SSMB owner 202, which is a TVM running on the computing system 101. At block 404, the SSMB owner 202 configures access permissions for the SSMB to allow one or more SSMB users 206, 208, ..., 210, which are TVMs running on the computing system, to access the SSMB. At block 406, the SSMB owner 202 allocates memory for the SSMB from the SSMB owner's private memory space in the memory circuit system. At block 408, in response to successfully verifying the authorization of the one or more SSMB users based at least in part on the access permissions, one or more of SSMB owner 202, VMM 214, and TSM 212, individually or in combination, allows secure access to SSMB 204 by the one or more SSMB users.
[0063] Although Figure 1-Figure 4 An example method of implementing the techniques described herein is illustrated in Figure 1-Figure 4One or more of the elements, processes and / or devices illustrated in the example may be combined, split, rearranged, omitted, eliminated and / or implemented in any other manner. Further, the example improved computing system 101 may be implemented by hardware, software, firmware and / or any combination of hardware, software and / or firmware. Thus, for example, any portion or all of the improved computing system 101 may be implemented by processor circuitry, analog circuit(s), digital circuit(s), logic circuit(s), programmable processor(s), programmable microcontroller(s), graphics processing unit(s) (GPU(s), digital signal processor(s) (DSP(s), application specific integrated circuit(s) (ASIC(s), programmable logic device(s) (PLD(s), and / or field programmable logic device(s) (FPLD(s)) such as field programmable gate array(s) (FPGA(s)). When any of the apparatus or system claims of this patent is read to cover pure software and / or firmware implementation, at least one of the example hardware resources is hereby expressly defined to include a non-transitory computer-readable storage device or storage disk (such as a memory, digital versatile disk (DVD), compact disk (CD), Blu-ray disk, etc.) containing the software and / or firmware. In addition, Figure 1-Figure 4 Example embodiments may include except Figure 1-Figure 4 In addition to those shown in the figure or as Figure 1-Figure 4 The invention may include one or more elements, processes, and / or devices that are alternatives to those illustrated in the drawings, and / or may include more than one of any or all of the illustrated elements, processes, and devices.
[0064] exist Figure 4 Flowcharts representing example hardware logic circuitry, machine readable instructions, hardware implemented state machines, and / or any combination thereof are shown in FIG. The machine readable instructions may be one or more executable programs or portions of executable programs for execution by a processor circuitry, such as described below in conjunction with Figure 5 The processor circuitry 1012 shown in the example processor platform 1000 discussed below and / or in conjunction with Figure 6 and / or Figure 7The example processor circuit system discussed. The program may be embodied in software stored on one or more non-transitory computer-readable storage media (such as CDs, floppy disks, hard disk drives (HDD), DVDs, Blu-ray discs, volatile memory (e.g., any type of random access memory (Random Access Memory, RAM), etc.) or non-volatile memory (e.g., flash memory, HDD, etc.)) associated with the processor circuit system located in one or more hardware devices, but the complete program and / or parts thereof may alternatively be executed by one or more hardware devices other than the processor circuit system, and / or be embodied in firmware or dedicated hardware. Tangible machine-readable instructions may be distributed across multiple hardware devices and / or executed by two or more hardware devices (e.g., a server and a client hardware device). For example, a client hardware device may be implemented by an endpoint client hardware device (e.g., a hardware device associated with a user) or an intermediate client hardware device (e.g., a radio access network (RAN) gateway that facilitates communication between a server and an endpoint client hardware device). Similarly, a non-transitory computer-readable storage medium may include one or more media located in one or more hardware devices. Furthermore, although reference Figure 4 The illustrated flowchart describes an example program, but many other methods of implementing the example computing system may be used alternatively. For example, the execution order of the boxes may be changed, and / or some of the boxes in the described boxes may be changed, eliminated, or combined. Additionally or alternatively, any or all of the boxes in the boxes may be implemented by one or more hardware circuits (e.g., processor circuitry, discrete and / or integrated analog and / or digital circuitry, FPGA, ASIC, comparator, operational amplifier (operational-amplifier, op-amp), logic circuit, etc.) configured to perform corresponding operations without executing software or firmware. The processor circuitry may be distributed in different network locations and / or in one or more hardware devices (e.g., single-core processors (e.g., single-core central processor units (CPUs)), multi-core processors in a single machine (e.g., multi-core CPUs, etc.), multiple processors distributed across multiple servers of a server rack, multiple processors distributed across one or more server racks, CPUs and / or FPGAs in the same package (e.g., in the same integrated circuit (IC) package or in two or more separate housings, etc.)).
[0065] The machine-readable instructions described herein may be stored in one or more of the following: compressed format, encrypted format, segmented format, compiled format, executable format, encapsulated format, etc. The machine-readable instructions as described herein may be stored as data or data structures (e.g., as portions of instructions, codes, code representations, etc.) that can be used to create, manufacture, and / or generate machine-executable instructions. For example, the machine-readable instructions may be segmented and stored on one or more storage devices and / or computing devices (e.g., servers) located in the same or different locations in a network or collection of networks (e.g., in the cloud, in edge devices, etc.). The machine-readable instructions may require one or more of installation, modification, adaptation, updating, combination, supplementation, configuration, decryption, decompression, unpacking, distribution, redistribution, compilation, etc., so that they are directly readable, interpretable, and / or executable by a computing device and / or other machine. For example, machine-readable instructions may be stored in multiple portions that are individually compressed, encrypted, and / or stored on separate computing devices, where the portions, when decrypted, decompressed, and / or combined, form a set of machine-executable instructions that implement one or more operations that may together form a program such as the program described herein.
[0066] In another example, the machine-readable instructions may be stored in a state in which they are readable by the processor circuitry, but require the addition of a library (e.g., a dynamic link library (DLL)), a software development kit (SDK), an application programming interface (API), etc., in order to execute the machine-readable instructions on a particular computing device or other device. In another example, the machine-readable instructions may need to be configured (e.g., stored settings, entered data, recorded network addresses, etc.) before the machine-readable instructions and / or corresponding program(s) can be executed in whole or in part. Thus, as used herein, a machine-readable medium may include machine-readable instructions and / or program(s) regardless of the particular format or state of the machine-readable instructions and / or program(s) when stored or otherwise at rest or in transit.
[0067] The machine-readable instructions described herein may be represented by any past, present, or future instruction language, scripting language, programming language, etc. For example, the machine-readable instructions may be represented by any of the following languages: C, C++, Java, C#, Perl, Python, JavaScript, HyperText Markup Language (HTML), Structured Query Language (SQL), Swift, etc.
[0068] As mentioned above, the present invention may be implemented using executable instructions (e.g., computer and / or machine readable instructions) stored on one or more non-transitory computer and / or machine readable media. Figure 4 In some embodiments, the non-transitory computer and / or machine readable medium such as an optical storage device, a magnetic storage device, an HDD, a flash memory, a read-only memory (ROM), a CD, a DVD, a cache, any type of RAM, a register, and / or any other storage device or storage disk in which information is stored for any length of time (e.g., for an extended period of time, permanently, for a brief instance, for temporary buffering, and / or for caching of information). As used herein, the terms non-transitory computer readable medium and non-transitory computer readable storage medium are expressly defined to include any type of computer readable storage device and / or storage disk, and are defined to exclude propagating signals and to exclude transmission media.
[0069] "Include" and "comprising" (and all forms and tenses thereof) are used herein as open-ended terms. Thus, whenever a claim uses any form of "include" and "comprising" (e.g., includes, comprises, includes, contains, has, etc.) as a preamble or in any type of claim recitation, it should be understood that additional elements, items, etc. may be present without falling outside the scope of the corresponding claim or recitation. As used herein, when the phrase "at least" is used as a transitional term, such as in the preamble of a claim, it is open-ended in the same manner as the terms "include" and "comprising" are open-ended. The term "and / or" when used, for example, in a form such as A, B, and / or C, refers to any combination or subset of A, B, C, such as (1) A alone, (2) B alone, (3) C alone, (4) A and B, (5) A and C, (6) B and C, or (7) A and B and C. As used herein in the context of describing structures, components, items, objects, and / or things, the phrase “at least one of A and B” is intended to refer to implementations that include any of the following: (1) at least one A, (2) at least one B, or (3) at least one A and at least one B. Similarly, as used herein in the context of describing structures, components, items, objects, and / or things, the phrase “at least one of A or B” is intended to refer to implementations that include any of the following: (1) at least one A, (2) at least one B, or (3) at least one A and at least one B. As used herein in the context of describing the performance or execution of processes, instructions, actions, activities, and / or steps, the phrase “at least one of A and B” is intended to refer to implementations that include any of the following: (1) at least one A, (2) at least one B, or (3) at least one A and at least one B. Similarly, as used herein in the context of describing the implementation or execution of a process, instruction, action, activity, and / or step, the phrase "at least one of A or B" is intended to refer to an implementation that includes any of the following: (1) at least one A, (2) at least one B, or (3) at least one A and at least one B.
[0070] As used herein, singular references (e.g., "a," "an," "first," "second," etc.) do not exclude plural reference. As used herein, the terms "a," "an" and "an" refer to one or more of the objects. The terms "a" (or "an"), "one or more," and "at least one" are used interchangeably herein. Furthermore, although listed separately, multiple devices, elements or method actions may be implemented by, for example, the same entity or object. Additionally, although individual features may be included in different examples or claims, these features may potentially be combined, and the inclusion in different examples or claims does not imply that a combination of features is not feasible and / or not advantageous.
[0071] Figure 5 is constructed to execute and / or instantiate Figure 1-Figure 4 The processor platform 1000 may be, for example, a server, a personal computer, a workstation, a self-learning machine (e.g., a neural network), a mobile device (e.g., a cellular phone, a smart phone, an iPad, etc.). TM , a tablet such as a iPod, a personal digital assistant (PDA), an Internet appliance, a DVD player, a CD player, a digital video recorder, a Blu-ray player, a game console, a personal video recorder, a set-top box, a head-mounted device (e.g., an augmented reality (AR) head-mounted device, a virtual reality (VR) head-mounted device, etc.) or other wearable device, or any other type of computing device.
[0072] The processor platform 1000 of the illustrated example includes a processor circuit system 1012. The processor circuit system 1012 of the illustrated example is hardware. For example, the processor circuit system 1012 can be implemented by one or more integrated circuits, logic circuits, FPGAs, microprocessors, CPUs, GPUs, DSPs, and / or microcontrollers from any desired series or manufacturer. The processor circuit system 1012 can be implemented by one or more semiconductor-based (e.g., silicon-based) devices. In this example, the processor circuit system 1012 implements Figure 1 Example processor circuit system 109.
[0073] The processor circuit system 1012 of the illustrated example includes a local memory 1013 (e.g., cache, registers, etc.). The processor circuit system 1012 of the illustrated example communicates with a main memory including a volatile memory 1014 and a non-volatile memory 1016 via a bus 1018. The volatile memory 1014 may be a synchronous dynamic random access memory (SDRAM), a dynamic random access memory (DRAM), Dynamic Random Access Memory DynamicRandom Access Memory, The non-volatile memory 1016 may be implemented by flash memory and / or any other desired type of memory device. Access to the main memory 1014, 1016 of the illustrated example is controlled by a memory controller 1017.
[0074] The processor platform 1000 of the illustrated example also includes an interface circuit system 1020. The interface circuit system 1020 can be implemented by hardware according to any type of interface standard, such as an Ethernet interface, a universal serial bus (USB) interface, interface, near field communication (NFC) interface, PCI interface and / or PCIe interface.
[0075] In the illustrated example, one or more input devices 1022 are connected to the interface circuitry 1020. The input device(s) 1022 permit a user to enter data and / or commands into the processor circuitry 1012. The input device(s) 1022 may be implemented by, for example, an audio sensor, a microphone, a camera (still or video), a keyboard, buttons, a mouse, a touch screen, a trackpad, a trackball, an iso-mouse device, and / or a speech recognition system.
[0076] One or more output devices 1024 are also connected to the interface circuit system 1020 of the illustrated example. The output device 1024 can be implemented, for example, by a display device (e.g., a light emitting diode (LED), an organic light emitting diode (OLED), a liquid crystal display (LCD), a cathode ray tube (CRT) display, an in-place switching (IPS) display, a touch screen, etc.), a tactile output device, a printer, and / or a speaker. Thus, the interface circuit system 1020 of the illustrated example typically includes a graphics driver card, a graphics driver chip, and / or a graphics processor circuit system such as a GPU.
[0077] The interface circuitry 1020 of the illustrated example also includes communication devices such as transmitters, receivers, transceivers, modems, residential gateways, wireless access points, and / or network interfaces to facilitate data exchange with external machines (e.g., any kind of computing device) over the network 1026. Communications may be through, for example, an Ethernet connection, a digital subscriber line (DSL) connection, a telephone line connection, a coaxial cable system, a satellite system, a line-of-sight wireless system, a cellular telephone system, an optical connection, etc.
[0078] The processor platform 1000 of the illustrated example also includes one or more mass storage devices 1028 for storing software and / or data. Examples of such mass storage devices 1028 include magnetic storage devices, optical storage devices, floppy disk drives, HDDs, CDs, Blu-ray disk drives, redundant array of independent disks (RAID) systems, solid-state storage devices (such as flash memory devices), and DVD drives.
[0079] Can be Figure 1-Figure 4 The machine-executable instructions 1032 implemented by the machine-readable instructions may be stored in the mass storage device 1028, in the volatile memory 1014, in the non-volatile memory 1016, and / or on a removable non-transitory computer-readable storage medium such as a CD or DVD.
[0080] Figure 6 yes Figure 5 1012 is a block diagram of an example implementation of a processor circuit system 1012. In this example, Figure 5The processor circuit system 1012 is implemented by the microprocessor 1100. For example, the microprocessor 1100 can implement a multi-core hardware circuit system, such as a CPU, DSP, GPU, XPU, etc. Although it may include any number of example cores 1102 (for example, 1 core), the microprocessor 1100 of this example is a multi-core semiconductor device including N cores. The cores 1102 of the microprocessor 1100 can operate independently, or can cooperate to execute machine-readable instructions. For example, the machine code corresponding to a firmware program, an embedded software program, or a software program can be executed by one of the cores in the core 1102, or can be executed by multiple cores in the core 1102 at the same or different times. In some examples, the machine code corresponding to the firmware program, the embedded software program, or the software program is divided into threads and executed in parallel by two or more cores in the core 1102. The software program can be executed in parallel by Figure 4 The flowcharts may correspond to part or all of the machine-readable instructions and / or operations.
[0081] The core 1102 can communicate via an example bus 1104. In some examples, the bus 1104 can implement a communication bus to implement communications associated with (one or more) cores 1102 in the core 1102. For example, the bus 1104 can implement at least one of an Inter-Integrated Circuit (IC) bus, a Serial Peripheral Interface (SPI) bus, a PCI bus, or a PCIe bus. Additionally or alternatively, the bus 1104 can implement any other type of computing or electrical bus. The core 1102 can obtain data, instructions, and / or signals from one or more external devices via an example interface circuit system 1106. The core 1102 can output data, instructions, and / or signals to one or more external devices via the interface circuit system 1106. Although the core 1102 of the example includes an example local memory 1120 (e.g., a first level (Level 1, L1) cache, which can be split into an L1 data cache and an L1 instruction cache), the microprocessor 1100 also includes an example shared memory 1110 (e.g., a second level (Level 2, L2_cache)) that can be shared by the cores for high-speed access to data and / or instructions. Data and / or instructions can be transferred (e.g., shared) by writing to and / or reading from the shared memory 1110. The local memory 1120 of each core 1102 in the core 1102 and the shared memory 1110 can be a plurality of levels of cache memory and main memory (e.g., Figure 5Typically, memory at higher levels in the hierarchy exhibits lower access times and has smaller storage capacity than memory at lower levels. Changes to each level of the cache hierarchy are managed (e.g., coordinated) by a cache coherence policy.
[0082] Each core 1102 may be referred to as a CPU, DSP, GPU, etc., or any other type of hardware circuit system. Each core 1102 includes a control unit circuit system 1114, an arithmetic and logic (AL) circuit system (sometimes referred to as an ALU) 1116, a plurality of registers 1118, an L1 cache in a local memory 1120, and an example bus 1122. Other structures may exist. For example, each core 1102 may include a vector unit circuit system, a single instruction multiple data (SIMD) unit circuit system, a load / store unit (LSU) circuit system, a branch / jump unit circuit system, a floating-point unit (FPU) circuit system, etc. The control unit circuit system 1114 includes a semiconductor-based circuit configured to control (e.g., coordinate) data movement within the corresponding core 1102. The AL circuit system 1116 includes a semiconductor-based circuit configured to perform one or more mathematical and / or logical operations on data within the corresponding core 1102. The AL circuit system 1116 of some examples performs integer-based operations. In other examples, the AL circuit system 1116 also performs floating-point operations. In still other examples, the AL circuit system 1116 may include a first AL circuit system that performs integer-based operations and a second AL circuit system that performs floating-point operations. In some examples, the AL circuit system 1116 may be referred to as an arithmetic logic unit (ALU). The register 1118 is a semiconductor-based structure for storing data and / or instructions (such as the results of one or more of the operations performed by the AL circuit system 1116 of the corresponding core 1102). For example, the register 1118 may include (one or more) vector registers, (one or more) SIMD registers, (one or more) general registers, (one or more) flag registers, (one or more) segment registers, (one or more) machine-specific registers, (one or more) instruction pointer registers, (one or more) control registers, (one or more) debug registers, (one or more) memory management registers, (one or more) machine check registers, etc. The register 1118 may be as follows Figure 6Alternatively, registers 1118 may be organized in any other arrangement, format, or structure (including being distributed throughout core 1102) to reduce access time. Bus 1104 may implement at least one of an I2C bus, an SPI bus, a PCI bus, or a PCIe bus.
[0083] Each core 1102 (and / or (more generally) microprocessor 1100) may include additional and / or alternative structures to those shown and described above. For example, there may be one or more clock circuits, one or more power supplies, one or more power gates, one or more cache home agents (CHA), one or more converged / common mesh stops (CMS), one or more shifters (e.g., (one or more) barrel shifters) and / or other circuit systems. Microprocessor 1100 is a semiconductor device that is manufactured to include many transistors that are interconnected to implement the structure described above in one or more integrated circuits (ICs) contained in one or more packages. The processor circuit system may include one or more accelerators, and / or collaborate with one or more accelerators. In some examples, the accelerator is implemented by a logic circuit system, so that certain tasks can be performed faster and / or more efficiently than can be performed by a general-purpose processor. Examples of accelerators include ASICs and FPGAs, such as those discussed herein. GPUs or other programmable devices may also be accelerators. The accelerator may be onboard the processor circuitry, in the same chip package as the processor circuitry, and / or in one or more packages separate from the processor circuitry.
[0084] Figure 7 yes Figure 5 FIG. 1 is a block diagram of another example implementation of a processor circuit system 1012 of FIG. 1012. In this example, the processor circuit system 1012 is implemented by an FPGA circuit system 1200. For example, the FPGA circuit system 1200 can be used to perform operations that can be performed in other ways. Figure 6 The example microprocessor 1100 executes the corresponding machine-readable instructions to perform operations. However, once configured, the FPGA circuit system 1200 instantiates the machine-readable instructions in hardware and is thereby generally able to perform these operations faster than if these operations could be performed by a general-purpose microprocessor executing corresponding software.
[0085] More specifically, Figure 6 The microprocessor 1100 (the microprocessor 1100 is a general-purpose device that can be programmed to perform the Figure 4In contrast, a general purpose device may be a flowchart representation of some or all of the machine-readable instructions, but the interconnections and logic circuitry of the general purpose device may be fixed once it is manufactured. Figure 7 The example FPGA circuit system 1200 includes such interconnections and logic circuit systems: these interconnections and logic circuit systems can be configured and / or interconnected in different ways after manufacturing to instantiate, for example, Figure 4 1200. Specifically, FPGA 1200 can be thought of as an array of logic gates, interconnects, and switches. The switches can be programmed to change how the logic gates are interconnected by the interconnects, effectively forming one or more dedicated logic circuits (unless and until FPGA circuitry 1200 is reprogrammed). The configured logic circuits enable the logic gates to work together in different ways to perform different operations on data received by the input circuitry. Those operations can be performed by Figure 4 Thus, FPGA circuit system 1200 can be configured to effectively instantiate Figure 4 As a dedicated logic circuit, some or all of the machine-readable instructions of the flowchart of FIG. 1200 are used to perform operations corresponding to those software instructions in a dedicated manner similar to an ASIC. Thus, the FPGA circuit system 1200 can perform operations corresponding to those software instructions. Figure 4 Some or all of the machine-readable instructions correspond to operations faster than a general-purpose microprocessor can perform the same operations.
[0086] exist Figure 7 In the example of , FPGA circuit system 1200 is configured to be programmed (and / or reprogrammed one or more times) by an end user via a hardware description language (HDL) such as Verilog. Figure 7The FPGA circuit system 1200 includes an example input / output (I / O) circuit system 1202, which is used to obtain data from and / or output data to the example configuration circuit system 1204 and / or external hardware (e.g., external hardware circuit system) 1206. For example, the configuration circuit system 1204 can implement an interface circuit system that can obtain machine-readable instructions for configuring the FPGA circuit system 1200 or (one or more) parts thereof. In some such examples, the configuration circuit system 1204 can obtain machine-readable instructions from a user, a machine (e.g., a hardware circuit system (e.g., a programmed or dedicated circuit system) that can implement an Artificial Intelligence / Machine Learning (AI / ML) model to generate instructions), etc. In some examples, the external hardware 1206 can implement Figure 6 1100. FPGA circuit system 1200 also includes an array of example logic gate circuit system 1208, a plurality of example configurable interconnects 1210, and example storage circuit system 1212. Logic gate circuit system 1208 and interconnects 1210 can be configured to instantiate Figure 4 One or more operations corresponding to at least some of the machine-readable instructions and / or other desired operations. Figure 7 The logic gate circuit system 1208 shown in is manufactured in groups or blocks. Each block includes a semiconductor-based electrical structure that can be configured into a logic circuit. In some examples, the electrical structure includes a logic gate (e.g., an AND gate, an OR gate, a NOR gate, etc.) that provides a basic building block for a logic circuit. An electrically controllable switch (e.g., a transistor) is present within each logic gate circuit system 1208 in the logic gate circuit system 1208 to enable the electrical structure and / or logic gate to be configured to form a circuit to perform the desired operation. The logic gate circuit system 1208 may include other electrical structures (such as a look-up table (LUT), a register (e.g., a flip-flop or latch), a multiplexer, etc.).
[0087] The interconnect 1210 of the illustrated example is a conductive path, trace, via, etc., which may include an electrically controllable switch (e.g., a transistor), the state of which may be changed by programming (e.g., using an HDL instruction language) to activate or deactivate one or more connections between one or more logic gate circuit systems 1208 in the logic gate circuit system 1208, thereby programming the desired logic circuit.
[0088] The storage circuit system 1212 of the illustrated example is configured to store (one or more) results of one or more operations performed by the corresponding logic gates. The storage circuit system 1212 can be implemented by registers, etc. In the illustrated example, the storage circuit system 1212 is distributed between the logic gate circuit system 1208 to facilitate access and increase execution speed.
[0089] Figure 7 The example FPGA circuit system 1200 also includes an example dedicated operation circuit system 1214. In this example, the dedicated operation circuit system 1214 includes a dedicated circuit system 1216, which can be called to implement common functions, thereby avoiding the need to program those functions in the field. Examples of such dedicated circuit systems 1216 include memory (e.g., DRAM) controller circuit systems, PCIe controller circuit systems, clock circuit systems, transceiver circuit systems, memory, and multiplier-accumulator circuit systems. There may be other types of dedicated circuit systems. In some examples, the FPGA circuit system 1200 may also include an example general-purpose programmable circuit system 1218, such as an example CPU 1220 and / or an example DSP 1222. There may be additionally or alternatively other general-purpose programmable circuit systems 1218 that can be programmed to perform other operations, such as GPUs, XPUs, etc.
[0090] although Figure 6 and Figure 7 The diagram shows Figure 5 Two example implementations of the processor circuit system 1012 are shown, but many other implementations are contemplated. For example, as mentioned above, modern FPGA circuit systems may include an onboard CPU (such as Figure 7 1220). Therefore, Figure 5 The processor circuit system 1012 may additionally be combined with Figure 6 An example microprocessor 1100 and Figure 7 In some such hybrid examples, the Figure 4 The first portion of the machine-readable instructions represented by the flowchart may be represented by Figure 61102 and is executed by one or more cores of the core 1102 and is executed by Figure 4 The second portion of the machine-readable instructions represented by the flowchart may be represented by Figure 7 FPGA circuit system 1200 executes.
[0091] In some examples, Figure 5 The processor circuit system 1012 may be in one or more packages. For example, Figure 6 The microprocessor 1100 and / or Figure 7 The FPGA circuit system 1200 can be in one or more packages. In some examples, the XPU can be composed of Figure 5 The XPU may be implemented by a processor circuit system 1012, which may be in one or more packages. For example, the XPU may include a CPU in one package, a DSP in another package, a GPU in yet another package, and an FPGA in yet another package.
[0092] exist Figure 8 A block diagram illustrating an example software distribution platform 1305 is illustrated in Figure 5 The example software distribution platform 1305 may be implemented by any computer server, data facility, cloud service, etc. that is capable of storing software and delivering it to other computing devices. The third party may be a customer of the entity that owns and / or operates the software distribution platform 1305. For example, the entity that owns and / or operates the software distribution platform 1305 may be a software (such as, Figure 5The example machine-readable instructions 1032 of the example software distribution platform 1305) are provided to the developer, seller and / or licensor of the software. The third party may be a consumer, user, retailer, OEM, etc. who purchases and / or licenses the software for use and / or resale and / or sublicense. In the illustrated example, the software distribution platform 1305 includes one or more servers and one or more storage devices. The storage device stores machine-readable instructions 1032, which may correspond to the example machine-readable instructions as described above. One or more servers of the example software distribution platform 1305 communicate with a network 1310, which may correspond to any one or more of the Internet and / or any network in the example networks described above, etc. In some examples, as part of a business transaction, one or more servers transmit the software to the requester in response to a request. The payment for the delivery, sale, and / or license of the software may be handled by one or more servers of the software distribution platform and / or by a third-party payment entity. The server enables the purchaser and / or licensor to download the machine-readable instructions 1032 from the software distribution platform 1305. For example, software (which may correspond to the example machine-readable instructions described above) may be downloaded to the example processor platform 1300 for executing the machine-readable instructions 1032 to implement the methods and associated computing system 100 described above. In some examples, one or more servers of the software distribution platform 1305 periodically provide, transmit, and / or enforce the software (e.g., Figure 5 Example machine readable instructions 1032) update to ensure that improvements, patches, updates, etc. are distributed and applied to software at end-user devices.
[0093] In some examples, a device includes a Figure 1-Figure 4 For example, the means for processing may be implemented by a processor circuit system, a processing circuit system, a firmware circuit system, etc. In some examples, the processor circuit system may be implemented by executing machine executable instructions by the processor circuit system, which may be implemented by Figure 5 The example processor circuit system 1012 of Figure 6 The microprocessor 1100, and / or Figure 7The example field programmable gate array (FPGA) circuit system 1200 of the present invention is implemented. In other examples, the processor circuit system is implemented by other hardware logic circuit systems, hardware-implemented state machines, and / or any other combination of hardware, software and / or firmware. For example, the processor circuit system can be implemented by at least one or more hardware circuits (e.g., processor circuit systems, discrete and / or integrated analog and / or digital circuit systems, FPGAs, application-specific integrated circuits (ASICs), comparators, operational amplifiers (op-amps), logic circuits, etc.) configured to perform corresponding operations without executing software or firmware, but other structures are also applicable.
[0094] From the foregoing, it will be appreciated that example systems, methods, apparatus, and articles of manufacture have been disclosed that provide improved performance for security in computing systems. The disclosed systems, methods, apparatus, and articles of manufacture improve the performance of implementing SSMB 204 in computing systems. The disclosed systems, methods, apparatus, and articles of manufacture are accordingly directed to one or more improvements in the operation of a machine such as a computer or other electronic and / or mechanical device.
[0095] The following examples relate to further embodiments. Details in the examples may be used anywhere in one or more embodiments. Example 1 is a computing system comprising: a memory circuit system for storing a secure shared memory buffer (SSMB) and instructions; and a processor coupled to the memory circuit system to execute instructions to perform the following operations: creating an SSMB in the memory circuit system and assigning ownership of the SSMB to an SSMB owner, the SSMB owner comprising a trusted execution environment virtual machine running on the computing system; configuring access permissions for the SSMB by the SSMB owner to allow one or more SSMB users to access the SSMB, the one or more SSMB users comprising a trusted execution environment virtual machine running on the computing system; allocating memory for the SSMB from the SSMB owner's private memory space in the memory by the SSMB owner; and allowing secure access to the SSMB by one or more SSMB users in response to successfully verifying the authorization of the one or more SSMB users based at least in part on the access permissions.
[0096] In Example 2, the subject matter of Example 1 optionally includes, wherein the SSMB is securely shared between multiple SSMB users. In Example 3, the subject matter of Example 1 optionally includes an SSMB owner, which is used to control the following: creation of the SSMB, deletion of the SSMB, and setting and revoking access permissions for one or more SSMB users to the SSMB. In Example 4, the subject matter of Example 1 optionally includes, wherein the SSMB owner and one or more SSMB users are a trusted domain (TD) in a trusted domain extension (TDX) computing architecture. In Example 5, the subject matter of Example 1 optionally includes a trusted execution environment security manager running on a computing system, the trusted execution environment security manager is used to verify the authorization of one or more SSMB users. In Example 6, the subject matter of Example 1 optionally includes an untrusted virtual machine manager, which is used to create the SSMB. In Example 7, the subject matter of Example 1 optionally includes, wherein the SSMB includes an ordered set of selected host physical address pages allocated from the private guest physical address space of the SSMB owner. In Example 8, the subject matter of Example 1 optionally includes, wherein the selected ordered set of host physical address pages can be assigned to only one SSMB. In Example 9, the subject matter of Example 1 optionally includes, wherein one or more SSMB users share a key domain with the SSMB owner.
[0097] Example 10 is a method comprising: creating a secure shared memory buffer (SSMB) in a memory of a computing system and assigning ownership of the SSMB to a SSMB owner, the SSMB owner comprising a trusted execution environment virtual machine (TVM) running on the computing system; configuring, by the SSMB owner, access permissions for the SSMB to allow one or more SSMB users to access the SSMB, the one or more SSMB users comprising the TVM running on the computing system; allocating, by the SSMB owner, memory for the SSMB from a private memory space of the SSMB owner in the memory; and allowing secure access to the SSMB by the one or more SSMB users in response to successfully verifying the authorization of the one or more SSMB users based at least in part on the access permissions.
[0098] In Example 11, the subject matter of Example 10 optionally includes securely sharing access to the SSMB between multiple SSMB users. In Example 12, the subject matter of Example 10 optionally includes, by the SSMB owner, controlling the creation of the SSMB, the deletion of the SSMB, and setting and revoking access permissions for the SSMB for one or more SSMB users. In Example 13, the subject matter of Example 10 optionally includes, by a trusted execution environment security manager (TSM) running on a computing system, verifying the authorization of one or more SSMB users. In Example 14, the subject matter of Example 10 optionally includes, by an untrusted virtual machine manager, creating the SSMB. In Example 15, the subject matter of Example 10 optionally includes, wherein the SSMB includes an ordered set of selected host physical address pages allocated from a private guest physical address space of the SSMB owner. In Example 16, the subject matter of Example 15 optionally includes, wherein the ordered set of selected host physical address pages can be allocated to only one SSMB. In Example 17, the subject matter of Example 10 optionally includes, wherein, one or more SSMB users share a key domain with the SSMB owner.
[0099] Example 18 is at least one machine-readable storage medium comprising instructions that, when executed by at least one processor, cause the at least one processor to: create a secure shared memory buffer (SSMB) in a memory of a computing system and assign ownership of the SSMB to an SSMB owner, the SSMB owner comprising a trusted execution environment virtual machine (TVM) running on the computing system; configure access permissions for the SSMB by the SSMB owner to allow one or more SSMB users to access the SSMB, the one or more SSMB users comprising the TVM running on the computing system; allocate memory for the SSMB from a private memory space of the SSMB owner in memory by the SSMB owner; and allow secure access to the SSMB by one or more SSMB users in response to successfully verifying the authorization of the one or more SSMB users based at least in part on the access permissions.
[0100] In Example 19, the subject matter of Example 18 optionally includes instructions that, when executed by at least one processor, cause the at least one processor to securely share access to the SSMB among multiple SSMB users. In Example 19, the subject matter of Example 18 optionally includes instructions that, when executed by at least one processor, cause the at least one processor to control, by the SSMB owner, the creation of the SSMB, the deletion of the SSMB, and setting and revoking access permissions for the SSMB for one or more SSMB users.
[0101] Example 21 is a device operable to perform a method as in any of Examples 10 to 17. Example 22 is a device comprising a device for performing a method as in any of Examples 10 to 17. Example 23 is a device comprising any combination of modules and / or units and / or logic and / or circuit systems and / or devices operable to perform a method as in any of Examples 10 to 17. Example 24 is an optionally non-transitory and / or tangible machine-readable medium that optionally stores or otherwise provides instructions that, when executed by a computer system or other machine and / or when executed by a computer system or other machine, are operable to cause the machine to perform a method as in any of Examples 10 to 17.
[0102] Although certain example systems, methods, devices, and articles have been disclosed herein, the scope of coverage of this patent is not limited thereto. On the contrary, this patent covers all systems, methods, devices, and articles that fully fall within the scope of the examples of this patent.
Claims
1. A computing system, include: memory circuitry for storing a secure shared memory buffer (SSMB) and instructions; as well as a processor coupled to the memory circuitry to execute the instructions to: creating the SSMB in the memory circuitry and assigning ownership of the SSMB to an SSMB owner, the SSMB owner comprising a trusted execution environment virtual machine running on the computing system; configuring, by the SSMB owner, access permissions for the SSMB to allow one or more SSMB users to access the SSMB, the one or more SSMB users comprising a trusted execution environment virtual machine running on the computing system; allocating, by the SSMB owner, memory for the SSMB from the SSMB owner's private memory space in the memory circuitry; as well as Responsive to successfully verifying the authorization of the one or more SSMB users based at least in part on the access permissions, secure access to the SSMB by the one or more SSMB users is permitted.
2. The computing system of claim 1, in, The SSMB is securely shared among multiple SSMB users.
3. The computing system of claim 1, include: The SSMB owner is used to control the following items: creation of the SSMB, deletion of the SSMB, and setting and revoking access permissions of the one or more SSMB users to the SSMB.
4. The computing system of claim 1, in, The SSMB owner and the one or more SSMB users are a trusted domain (TD) in a trusted domain extension (TDX) computing architecture.
5. The computing system of claim 1, include: A trusted execution environment security manager running on the computing system, the trusted execution environment security manager being configured to verify the authorization of the one or more SSMB users.
6. The computing system of claim 1, include: An untrusted virtual machine manager, wherein the untrusted virtual machine manager is used to create the SSMB.
7. The computing system of claim 1, in, The SSMB includes an ordered set of selected host physical address pages allocated from the private guest physical address space of the SSMB owner.
8. The computing system of claim 7, in, The selected ordered set of host physical address pages can be assigned to only one SSMB.
9. The computing system of claim 1, in, The one or more SSMB users share a key domain with the SSMB owner.
10. A method, include: creating a secure shared memory buffer (SSMB) in a memory of a computing system and assigning ownership of the SSMB to an SSMB owner, the SSMB owner comprising a trusted execution environment virtual machine (TVM) running on the computing system; configuring, by the SSMB owner, access permissions for the SSMB to allow one or more SSMB users to access the SSMB, the one or more SSMB users including a TVM running on the computing system; Allocating memory for the SSMB by the SSMB owner from the SSMB owner's private memory space in the memory; as well as Responsive to successfully verifying the authorization of the one or more SSMB users based at least in part on the access permissions, secure access to the SSMB by the one or more SSMB users is permitted.
11. The method according to claim 10, include: Access to the SSMB is securely shared among multiple SSMB users.
12. The method according to claim 10, include: The SSMB owner controls the creation of the SSMB, the deletion of the SSMB, and setting and revoking access permissions of the one or more SSMB users to the SSMB.
13. The method according to claim 10, include: The authorization of the one or more SSMB users is verified by a trusted execution environment security manager (TSM) executing on the computing system.
14. The method according to claim 10, include: The SSMB is created by an untrusted virtual machine manager.
15. The method according to claim 10, in, The SSMB includes an ordered set of selected host physical address pages allocated from the private guest physical address space of the SSMB owner.
16. The method of claim 15, in, The selected ordered set of host physical address pages can be assigned to only one SSMB.
17. The method of claim 10, in, The one or more SSMB users share a key domain with the SSMB owner.
18. At least one machine-readable storage medium comprising instructions that, when executed by at least one processor, cause the at least one processor to: creating a secure shared memory buffer (SSMB) in a memory of a computing system and assigning ownership of the SSMB to an SSMB owner, the SSMB owner comprising a trusted execution environment virtual machine (TVM) running on the computing system; configuring, by the SSMB owner, access permissions for the SSMB to allow one or more SSMB users to access the SSMB, the one or more SSMB users including a TVM running on the computing system; Allocating memory for the SSMB by the SSMB owner from the SSMB owner's private memory space in the memory; as well as Responsive to successfully verifying the authorization of the one or more SSMB users based at least in part on the access permissions, secure access to the SSMB by the one or more SSMB users is permitted.
19. The at least one machine-readable storage medium of claim 18, comprising instructions that, when executed by at least one processor, cause the at least one processor to securely share access to the SSMB among a plurality of SSMB users.
20. At least one machine-readable storage medium as described in claim 18, comprising instructions, which, when executed by at least one processor, cause the at least one processor to control the following items by the SSMB owner: creation of the SSMB, deletion of the SSMB, and setting and revoking access permissions of the one or more SSMB users to the SSMB.
