A process-based virtualization system for running secure application processes

The process-based virtualization system isolates secure applications from the operating system using firmware and dual-memory architecture, addressing vulnerabilities in container-based systems by ensuring secure execution and system integrity.

JP7573621B2Active Publication Date: 2024-10-25INTERNATIONAL BUSINESS MACHINE CORPORATION
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2022542092
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-01-24
Filing Date
2020-12-10
Publication Date
2024-10-25
Estimated Expiration
2040-12-10

AI Technical Summary

Technical Problem

Container-based systems are vulnerable to security threats due to their dependence on the operating system, lacking robust isolation mechanisms for secure applications.

Method used

A process-based virtualization system that segregates secure and non-secure applications using firmware, employing a dual-memory architecture and hardware-assisted address translation to isolate secure applications from the operating system, ensuring secure execution without modifying existing systems.

Benefits of technology

Provides secure execution of applications by isolating them from the operating system, preventing unauthorized access and maintaining system integrity while seamlessly integrating with existing systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007573621000001
    Figure 0007573621000001
  • Figure 0007573621000002
    Figure 0007573621000002
  • Figure 0007573621000003
    Figure 0007573621000003
Patent Text Reader

Abstract

The present disclosure relates to a process-based virtualization system including a data processing unit. The system includes a computer-readable storage medium, a first memory component of the computer-readable storage medium configured for access by an OS, secure and non-secure applications, and firmware, and a second memory component of the computer-readable storage medium configured for access by the firmware but not by the OS or non-secure applications. The data processing unit is configured to operate in a first operating mode to execute non-secure application processes using the OS and in a second operating mode to execute secure applications using the firmware, thereby executing application code using the second memory component.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to the field of digital computer systems, and more particularly to process-based virtualization systems. [Background technology]

[0002] Container managers such as Docker are a set of combined software-as-a-service and platform-as-a-service products that use operating system-level virtualization to develop and deliver software in packages called containers. However, running containers can be vulnerable due to their dependency on the operating system on which the containers are deployed. Summary of the Invention

[0003] Various embodiments provide a method for executing a secure application, a process-based virtualization system, and a computer program product as described by the subject matter of the independent claims. Advantageous embodiments are described in the dependent claims. The embodiments of the invention may be freely combined with one another if they are not mutually exclusive.

[0004] In one aspect, the invention relates to a process-based virtualization system including a computer-readable storage medium (or machine-readable medium), a first memory component of the computer-readable storage medium configured for access by an operating system (OS), secure and non-secure applications, and firmware of the process-based virtualization system, a second memory component of the computer-readable storage medium configured for access by the firmware and the secure applications, and not by the OS and the non-secure applications, a data processing unit configured to operate in a first operational mode to execute the non-secure applications using the OS, and the data processing unit configured to operate in a second operational mode to execute the secure applications using the firmware, thereby executing application code of the secure applications using the second memory component.

[0005] In one aspect, the invention relates to a method comprising providing a computer-readable storage medium, a first memory component of the computer-readable storage medium configured for access by an OS, secure and non-secure applications, and firmware, and a second memory component of the computer-readable storage medium configured for access by the firmware and the secure applications, and not by the OS and the non-secure applications; providing a data processing unit configured to operate in a first operational mode to execute non-secure applications using the OS; and configuring the data processing unit to operate in a second operational mode to execute secure applications using the firmware, thereby executing application code of the secure application using the second memory component.

[0006] In another aspect, the present invention relates to a computer program product including a computer readable storage medium having computer readable program code embodied therein, the computer readable program code being configured to perform all the steps of the method according to the above-mentioned embodiments.

[0007] Additionally, any of the components of the present invention may be deployed, managed, serviced, etc. by a service provider offering to implement process-based virtualization in computer systems. Embodiments of the present invention also provide and encompass related systems, methods, and / or program products.

[0008] These and other features of the present invention will be more readily understood from the following detailed description of the various aspects of the invention taken in conjunction with the accompanying drawings.

[0009] In the following, embodiments of the invention are explained in more detail, purely by way of example, with reference to the drawings, in which: FIG. [Brief description of the drawings]

[0010] [Figure 1A] FIG. 1 is a block diagram of a process-based virtualization system, according to an embodiment of the present subject matter. [Figure 1B] FIG. 1 is a block diagram of a process-based virtualization system, according to an embodiment of the present subject matter. [Diagram 2] 1 is a table of machine states, according to an embodiment of the present subject matter. [Figure 3A] 1 is a flowchart of a method for executing a secure application, according to an embodiment of the present subject matter. [Figure 3B] A diagram illustrating a first memory component and a second memory component of a process-based virtualization system according to an embodiment of the present subject matter. [Figure 3C] A diagram illustrating a first memory component and a second memory component of a process-based virtualization system according to an embodiment of the present subject matter. [Figure 4] 1 is a flowchart of a method for executing a secure application, according to an embodiment of the present subject matter. [Diagram 5] 1 is a flowchart of a method for executing a secure application, according to an embodiment of the present subject matter. [Figure 6A] FIG. 2 illustrates a data structure representing an address translation tree used in a process-based virtualization system, according to an embodiment of the present subject matter. [Figure 6B] FIG. 2 illustrates a data structure representing an address translation tree used in a process-based virtualization system, according to an embodiment of the present subject matter. [Figure 6C] FIG. 2 illustrates a data processing unit according to an embodiment of the present subject matter. [Figure 6D] FIG. 2 is a flow diagram illustrating an address translation process, according to an embodiment of the present subject matter. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] Detailed embodiments of the present invention are disclosed herein with reference to the accompanying drawings. In the drawings, like numbers represent like elements. It should be understood that the disclosed embodiments are merely exemplary of potential embodiments of the present invention, which may take various forms. In addition, each of the examples given in connection with the various embodiments is intended to be illustrative, not limiting. Moreover, the drawings are not necessarily to scale, and some features may be emphasized to show details of particular components. Therefore, specific structural and functional details disclosed herein should not be interpreted as limiting, but merely as a representative basis for teaching those skilled in the art to employ the present invention in various ways.

[0012] References in the specification to "one embodiment," "embodiment," "exemplary embodiment," and the like indicate that the embodiment being described may include a particular feature, structure, or characteristic, but not every embodiment may necessarily include the particular feature, structure, or characteristic. Moreover, such phrases do not necessarily refer to the same embodiment. Furthermore, when a particular feature, structure, or characteristic is described in connection with an embodiment, it is believed to be within the knowledge of one of ordinary skill in the art to affect such feature, structure, or characteristic in connection with other embodiments, whether or not explicitly described.

[0013] The description of various embodiments of the present invention is presented for illustrative purposes, but is not intended to be exhaustive or limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used in this specification has been selected to best explain the principles of the embodiments, practical applications, or technical improvements to the technology found in the market, or to enable others skilled in the art to understand the embodiments disclosed herein.

[0014] The code underlying an open source operating system is freely available for anyone to view and modify. However, this can expose computer systems running such OSes, which typically have millions of lines of code, to potential security vulnerabilities. In particular, processes that rely on the OS, such as container instances, may be exposed to security vulnerabilities because they are isolated only through software concepts such as namespaces and control groups (a.k.a. cgroups). The present subject matter may enable computer systems / firmware to run secure application processes in a secure manner independent of the OS and using hardware to isolate secure applications from other applications. Secure application processes are treated differently than non-secure application processes. For example, the address space is set up for secure applications by the firmware instead of the OS. In addition, the firmware controls the execution of secure applications instead of the OS. Meanwhile, untrusted applications may run under the control of the OS. This may be particularly advantageous because the number of secure applications is usually much smaller than the number of non-secure applications due to the effort required to implement secure applications. Thus, adapting the system for secure applications may secure access to data while still seamlessly integrating with existing systems. For example, the firmware may have many fewer lines of code compared to the OS because it only needs to perform tasks that the OS cannot perform with the secure application's encrypted data.

[0015] The present subject matter may provide a transparent execution of processes to a user of a process-based virtualization system. That is, the user may not be aware of any difference between the execution of the user's secure applications and non-secure applications. A process may be an instance of a computer program being executed. A secure application process may be an instance of a secure application being executed. A non-secure application process may be an instance of a non-secure application being executed. Secure and non-secure applications may be user-defined, e.g., a user may define an application as a secure application or a non-secure application.

[0016] The process-based virtualization system may be, for example, a container-based virtualization system. The process-based virtualization system may be a computer system. The process-based virtualization system may enable operating system level virtualization. The OS level virtualization may be enabled by a kernel of the process-based virtualization system that enables the existence of multiple isolated namespaces. A container may be one of such namespaces. A container may include an application with all the parts it requires, such as libraries and other dependencies. A container manager may be installed in the process-based virtualization system to manage (e.g., create, remove, start, etc.) the containers. The container manager may be, for example, Docker or LXC. The OS level virtualization may be guest OS level virtualization when the container is running in a virtual machine (VM). The virtual machine includes a guest OS of the process-based virtualization system. In another embodiment, the OS level virtualization may be host OS level virtualization when the process-based virtualization system does not include a virtual machine.

[0017] According to one embodiment, the firmware is configured to receive a system call (e.g., named "scall" for clarity of exposition) from a process, the system call indicating that the secure application is stored in an encrypted format in a first memory component (the first memory component stores the encrypted secure application), and upon receiving the system call, configure the data processing unit to operate in a second operating mode, copy or move the encrypted secure application to the second memory component, decrypt the copied or moved secure application in the second memory component, set up an address translation structure to enable access by the decrypted secure application to data in the second memory component and the first memory component, execute the decrypted secure application, and the executing includes accessing the second memory component using the address translation structure.

[0018] The process sending the scall may be a non-secure application process of a non-secure application. The system call scall of the non-secure application process may point to a secure application in the first memory component. For example, the system call scall of the non-secure application process may point to the integrity-protected and cryptographically-protected code portions of the secure application in the first memory component. The system call scall may be made from the non-secure portion because the loaded secure application code is cryptographically-protected and integrity-protected. The firmware may copy the integrity-protected and cryptographically-protected code portions to the second memory component. Decryption and integrity checks may be performed in the second memory component. If those checks pass (i.e., are successful), the secure application code may be executed as a secure process. In another embodiment, the secure application may be part of a secure container and the process sending the scall may be part of the secure container. For example, the system call scall may be sent by a library OS of the secure container. In a further embodiment, the process sending the scall may be part of a secure virtual machine (SVM). The secure application process may point directly to the decrypted and integrity checked code in the second memory component.

[0019] According to one embodiment, the firmware is configured to receive a process initialization system call from a process, the call indicating that a secure application is to be stored in the first memory component in an encrypted format, and upon receiving the process initialization system call, configure the data processing unit to operate in a second operating mode, move or copy the encrypted secure application to the second memory component, thereafter decrypt the moved or copied secure application in the second memory component, and set up an address translation structure to enable access by the decrypted secure application to data in the second memory component and the first memory component. The address translation structure may be set up such that the decrypted secure application may be enabled to use library OS calls. The process sending the initialization system call may be a non-secure application process of the non-secure application.

[0020] The execution of a secure application process may be enabled by an initialization phase and a secure application execution phase. This embodiment may enable an initialization phase. During the initialization phase, the firmware may set up memory and / or interfaces that may be used by the secure application at runtime. By separating the initialization phase from the secure application execution phase, it may be possible to execute the secure application without code modification of the secure application. During the secure application execution phase, decryption of the secure application's input data and encryption of the secure application's output data may be performed by library OS calls such that the input data or output data may be read or stored in the first memory component. The data processing unit may be in a first secure state (described herein) during the initialization phase and in a second secure state during the secure application execution phase.

[0021] According to one embodiment, the address translation structure includes a partition table and a secure process table for the secure process, the partition table and the secure process table being stored in the second memory component, and setting up the address translation structure includes adding a partition entry to the partition table, where the added partition entry points to the secure process table, and adding a process entry to the secure process table associated with a secure application process of the secure application, where the added process entry points to a secure application address translation tree, where the secure application address translation tree is configured to enable translation of effective addresses to physical addresses of the second memory component.

[0022] The secure application translation tree may be a single-level partition-scoped radix translation tree, an example of which is numbered 624 in FIG. 6D. The added process entry may enable locating the page directory and page tables of the secure application address translation tree.

[0023] According to one embodiment, the firmware is further configured to receive an address indicating a storage location of the encrypted secure application in the first memory component with the address to perform the decryption and copying.

[0024] By moving instructions of a secure application from a first memory component to a second memory component, access to the instructions in the second memory component, for example by the OS and non-secure applications, may be prevented. This may also be advantageous because it may enable seamless integration of the present subject matter with existing systems, for example because the secure application starts in the first memory component as any other application.

[0025] The received address may, for example, be part of a received process initialization system call or a received system call (scall).

[0026] According to one embodiment, the unencrypted secure application is associated with a hash value indicative of the contents of the secure application, and the firmware is further configured to perform an integrity check of the unencrypted contents of the secure application using the hash value. If the integrity check is successful, decryption and copying are performed. The integrity check may include determining whether the hash value still represents the current contents of the secure application. If the hash value represents the current contents of the secure application, decryption and copying may be performed. In an alternative embodiment, the integrity check is performed simultaneously with the decryption. The decryption is successful if the integrity check passes, and fails otherwise.

[0027] This embodiment may further enhance the secure aspects of the present subject matter since it may prevent access to the code of a secure application even before the secure application begins execution, which may prevent, for example, malicious modification of the secure application before it is executed by the firmware.

[0028] According to one embodiment, the data processing unit includes a partition table, the partition table being indexed by a logical process identifier, the partition table including entries pointing to a secure process table, said entries being indexed by a fixed value, the secure process table being indexed by a secure process identifier (SPID), the data processing unit including a secure register including a value of the SPID of a secure application process, the secure application process being configured to identify the secure process table using the fixed value and to use / read a value stored in the secure register to perform an address translation using an entry of the secure process table associated with a read value of the secure register, the read value being the SPID value stored in the secure register.

[0029] A fixed value may be a reserved valid LPID, effLPID="FFF"x.

[0030] The secure process table is a table maintained by the firmware that describes the processes in memory. The secure aspect of the present subject matter may be further enhanced by indexing the secure process table with the SPID of the secure process, since the secure process may be assigned an ID that may only be accessed by the firmware and the secure application process itself. For example, the SPID is used to find a memory table associated with the secure application process. This memory table is in secure memory (the second memory component) and is only accessible by the firmware (and address translation hardware). Locations in the memory table are accessible by the secure application process and by the firmware. When the secure application process is running in secure mode (the second mode of operation), the hardware is enabled to utilize this memory table.

[0031] According to one embodiment, after setting up the translation structure, the firmware is further configured to receive an application start system call from the process, the application start system call including an address, and upon receiving the application start system call, execute the decrypted secure application, the execution including accessing the second memory component using the address translation structure. This embodiment may enable a secure application execution phase. The process sending the application start system call may be a non-secure application.

[0032] According to one embodiment, the data processing unit has at least two secure states of the second operating mode, a first of the two secure states being a firmware state in which the data processing unit enables execution of firmware, and a second of the two secure states being a secure application process state in which the data processing unit enables execution of a secure application process.

[0033] According to one embodiment, the data processing unit is configured to switch to a first secure state upon receiving a process initialization system call or an interrupt request, and to switch to a second secure state upon receiving an application start system call.

[0034] In case of a received (single) system call scall, the data processing unit is configured to move or copy the secure application to a secure memory (second memory component) upon receiving the system call (scall) or to receive an interrupt request and to set up a translation structure to allow the process to start or resume execution in the second secure state. If the cryptographic or integrity check of the secure application fails, the secure process may not be started for execution.

[0035] According to one embodiment, the data processing unit includes a machine state register (MSR), the MSR including a secure bit, the secure bit set to a first value to indicate to the data processing unit to operate in a first mode of operation, and the secure bit set to a second value to indicate to the data processing unit to operate in a second mode of operation. For example, when the data processing unit operates in the first mode of operation, data written to the computer readable storage medium is written to a first memory component, and when the data processing unit operates in the second mode of operation, the computer readable storage medium is configured to enable access to the data in the first memory component and the second memory component.

[0036] According to one embodiment, a secure application process is an executable instance of a container that includes a secure application.

[0037] According to one embodiment, the container is running in a virtual machine of a process-based virtualization system.

[0038] FIG. 1A is a block diagram of a process-based virtualization system 100 according to an embodiment of the present subject matter. The process-based virtualization system 100 includes a host operating system (hypervisor) 110, firmware 120, hardware 130, a secure virtual machine (SVM) 140, and a VM 150. The hardware 130 may include, for example, a data processing unit (e.g., a processor core) according to an embodiment of the present subject matter. The components of the process-based virtualization system 100 may be interconnected via a network (not shown), for example, a local area network (LAN), a wide area network (WAN) such as the Internet, or a combination of the two, which may include wired, wireless, or fiber optic connections. The process-based virtualization system 100 may be a desktop computer, a laptop computer, a dedicated computer server, or any other computer system known in the art. In one embodiment, the process-based virtualization system 100 may represent a computer system that utilizes clustered computers and components to function as a single pool of seamless resources when accessed over a network. For example, such embodiments may be used in data center, cloud computing, storage area network (SAN), wide area network (WAN), and network attached storage (NAS) applications. Generally, a computing system as described herein represents an electronic device, or combination of electronic devices, capable of executing machine-readable program instructions according to embodiments of the present subject matter.

[0039] Hypervisor 110 represents system software, such as a virtual machine monitor (VMM), configured to manage, create, and execute SVMs 140 and VMs 150. Hypervisor 110 may be an untrusted system software component. Hypervisor 110 may be configured to access and manage a first memory component of a computer-readable storage medium of system 100.

[0040] Firmware 120 represents a trusted system software component configured to provide, control, monitor, and manipulate data executed by trusted hardware 130. In this embodiment, firmware 120 manages a second memory component of a computer-readable storage medium of system 100. Additionally, each of SVM 140 and secure container (or secure application) may be assigned to the second memory component. Firmware 120 operates in ultravisor mode, which is a privilege level above hypervisor 110 mode. Ultravisor may refer to firmware. In ultravisor mode, firmware 120 is configured to control regular partition-scoped address translation mechanisms in conjunction with hardware 130 to maintain isolation between the first memory component and the second memory component. Additionally, firmware 120 is configured to maintain isolation between SVM 140 and secure container, respectively, within the second memory component (FIGS. 3B and 3C show example contents of the first memory component and the second memory component). For example, the second memory component may be configured for access by the firmware and the secure application. The second memory component may be configured such that the second memory component is not accessible by the OS and the non-secure application.

[0041] A mechanism in hardware 130 may be used to invoke firmware 120 whenever a transition between two memory components occurs, thus allowing firmware 120 to ensure that the state of processes in one memory component is properly isolated from the state of processes in the other memory component.

[0042] Subsystems (not shown) of the process-based virtualization system 100 may interact with the memory of the process-based virtualization system 100 independently of components of the hardware 130, such as the processor. These subsystems may be modified to prevent all untrusted devices (e.g., input / output (I / O) devices) from accessing the second memory component. Subsystem data that is secure and used by the secure application may be stored in an encrypted format in the first memory component. Additionally, firmware 120 operating in ultravisor mode may move or copy the encrypted data to the second memory component and decrypt it. In another embodiment, the hardware may perform the encryption / decryption under the direction of firmware 120. The secure data in the second memory component may be encrypted and have a secure hash added to it before being stored in the memory area of ​​the hypervisor 110 / VM 150, i.e., the first memory component. The encrypted data may then be paged out to disk storage by the hypervisor 110. Thus, data and state information associated with the SVM 140 and the secure container do not need to be in clear text format outside of the second memory component and are integrity protected by the secure hash.

[0043] Hardware 130 represents a hardware component for system 100. In this embodiment, an SMF-enabled processor (e.g., a data processing unit may be an SMF-enabled processor) is included in hardware 130 and may have a set of asymmetric keys and associated symmetric keys used to protect secure data processed by SVM 140 and / or secure applications.

[0044] SVM 140 is similar to VM 150. In addition, SVM 140 and secure applications may be packaged with SMF along with secure data encrypted with the target processor's public SMF key. The private SMF key may be protected by a Trusted Platform Module (TPM) and may be available only when the correct firmware 120 is loaded during boot. In this embodiment, trusted entities that manufacture and supply SMF-enabled processors may issue certificates for their public keys.

[0045] The SVM may enable secure execution of applications running inside the SVM. To do so, the SVM trusts a given OS (e.g., guest OS 160) and not the hypervisor. However, applications running inside a normal VM may need to be secured if the OS is not trusted. That is, a secure application cannot trust both the OS and, if present, hypervisor 110. The present subject matter may enable such applications to be secured. Each of the VMs and SVMs of process-based virtualization system 100 may, for example, enable containers, which may be secure containers or non-secure containers or both. A secure container represents a secure application, such as a banking operation. For example, VM 150 includes container manager 170 executed at least in part by guest operating system 160 to develop, deliver, install, and execute containers 180A-N, which herein refer to a combination of container 180A and secure container 180N. It should be noted that there is also another set of containers, denoted herein as container 180B, which includes a copy of the application and library operating system included in container 180A. In contrast, secure container 180N includes a secure version of the application and secure library operating system. As used herein, the secure version of the application and secure library operating system of secure container 180N has a higher level of security when compared to the version of the application and library operating system found in container 180A and container 180B. Container manager 170 may be, for example, Docker or LXC. Containers 180A-N may be created using container manager 170. The containers may include, for example, applications and required libraries.The secure container 180N may include a secure application that may execute secure library calls to access data in the first memory component and the second memory component.

[0046] Container manager 170 may be configured to receive a container image for instantiation, installation, and / or execution in guest operating system 160, for example. For example, the container image may be a Docker image obtained from a container repository, such as a Docker registry. For example, the container image may be a read-only template with instructions for generating a container. Using the container image, containers 180A-N may be instantiated by container manager 170 for execution as one or more processes in guest operating system 160.

[0047] The process-based virtualization system 100 enables virtualization using containers running within VMs.

[0048] FIG. 1B is a block diagram of a process-based virtualization system 190, in accordance with an embodiment of the present subject matter.

[0049] Process-based virtualization system 190 includes a host operating system (OS) 195, firmware 196, and hardware 197, as described with reference to FIGURE 1A. Hardware 197 may include, for example, a data processing unit (e.g., a processor core) according to an embodiment of the present subject matter.

[0050] The process-based virtualization system 190 provides virtualization using only containers, for example, without the use of VMs (ie, without the use of a hypervisor).

[0051] Process-based virtualization system 190 may enable containers. Containers may be secure containers or non-secure containers or both. For example, process-based virtualization system 190 includes container manager 191 executed at least in part by host operating system (OS) 195 to develop, distribute, install, and run containers 192A-N. Similar to containers 180A and 180B, containers 192A and 192B are understood to include copies of application and library operating systems. Additionally, similar to secure container 180N, secure container 192N includes a more secure version of the application and library operating system. Container manager 191 may be, for example, Docker or LXC. Containers 192A-N may be created using container manager 191.

[0052] 2 is a table of bits from the MSR indicating machine states of a data processing unit according to an embodiment of the present subject matter. Different machine states are provided for a first mode of operation and a second mode of operation. In this embodiment, an exemplary first mode of operation 210 is extended with a second mode of operation using an MSR(S) bit 220. The MSR(S) bit 220 is, for example, a secure bit.

[0053] In the first operating mode 210, the data processing unit may have four different machine states 251-254. Each of the four machine states 251-254 allows access to the data and resources of the data processing unit for a corresponding component, such as the hypervisor 110, and for non-secure applications. For example, untrusted applications and the hypervisor 110 may be operated when the MSR(S) bit 220 is set to 0. The state 252 is associated with the hypervisor 110 when the data processing unit is part of the process-based virtualization system 100, and is associated with the host OS 195 when the data processing unit is part of the process-based virtualization system 190. The state 252 is referred to herein as the hypervisor state for ease of explanation.

[0054] The second operating mode 210 may be active when the MSR(S) bit 220 is set to 1. For example, the MSR(S) bit 220 is set to 1 for a secure application. In the second operating mode, the data processing unit may have machine states 241-244. At least two states 241-242 may be used to enable execution of a secure application. Two states are supported with the MSR(S) bit 220 equal to 1 to enable a secure application executed (e.g., in the VM 150) to be operated without modification.

[0055] Each of the machine states 241-244 and 251-254 may be defined by a respective combination of values ​​of a set of bits in the MSR. The set of bits may be maintained / set by, for example, the firmware. The set of bits includes a secure bit. The set of bits may further include an MSR(HV) and an MSR(PR) bit. In a second mode of operation, a firmware state (or ultravisor state) is defined by setting the MSR(S) bit 220, the MSR(HV) bit 230, and the MSR(PR) bit 240 to 1, 1, and 0, respectively. To execute a secure application, the MSR(PR) bit may be inverted such that the data processing unit is in state 0b111. Thus, without code modification of the code of the secure application, the firmware may maintain control on behalf of the hypervisor 110 (or host OS 195) when the hypervisor state 252 would otherwise be entered. This allows the firmware to save and clear secure data and state information before granting control to the hypervisor 110 (or host OS 195). The transition of state from the firmware state to the hypervisor state may be performed by the firmware returning from the interrupt double word instruction resetting the MSR(S) bit 220 to 0. This provides an example implementation and alternative equivalent mechanisms may be implemented by one of ordinary skill in the art.

[0056] The data processing unit may be configured to switch or transition between states 241-244 and states 251-254 to allow access to data by components associated with the state to which it is switched. For example, in state 241 (MSR(S, HV, PR)=0b111), secure applications may be executed and may be allowed to access data stored in the secure memory. The hardware 130 may be configured such that only the firmware can set the MSR(S) bit. In order for the firmware 120 to control the transition between secure and non-secure states and to ensure the security of the SVM or secure process / container, the firmware 120 controls the MSR(S) bit or is controlled whenever the state is changed automatically by the hardware.

[0057] 3A is a flow chart of a method for enabling execution of a secure application. The secure application may be part of a secure container 180N, for example. The execution of the secure application process may be implemented in the system of FIG. 1A or FIG. 1B, but is not limited to that embodiment.

[0058] The data processing unit may be configured to operate in the second operating mode in step 301, for example by setting a secure bit to 1. Step 301 may be performed, for example, by firmware 120 upon receiving a process initialization system call or another system call (e.g., scall) from a given process. The given process may be a process of a non-secure application. Firmware 120 may, for example, set the secure bit MSR(S) such that the data processing unit may operate in the second operating mode.

[0059] The received process initialization system call (or received scall) may point to an encrypted file containing the secure application of the secure container 180N in an encrypted format in the first memory component. Figures 3B and 3C show example contents of the first and second memory components for the process-based virtualization systems 100 and 190, respectively. The first memory component of the process-based virtualization system 100 (generally referred to herein as memory 310A) contains the encrypted secure application and secure library operating system 302, the VM 150, which may include a docker engine, the guest OS 160, and the secure container in an encrypted format. The first memory component 310B of the process-based virtualization system 190 contains the container manager 191, the host OS 195, and the secure container using an encrypted format, including the encrypted secure application and library operating system 302.

[0060] In step 303, firmware 120 moves the encrypted secure application to the second memory component. In step 304, firmware 120 may decrypt the secure application. In one embodiment, firmware may perform an integrity check of the decrypted secure application. The integrity check may be performed using a hash associated with the unencrypted contents of the secure application to verify that no code has been modified (e.g., bits have been flipped). If the integrity check fails, the transition to the secure process / container fails and the second memory component is cleared before returning. In this case, steps 305-307 are not performed. As shown in FIG. 3B, the second memory component 312A is a secure memory of the process-based virtualization system 100 and includes a translation:radix tree 309, firmware 120 with effLPID=FFF, and a secure container 308 that includes the secure application and the secure library OS in an unencrypted format. The second memory component 312A may further include the SVM 140 in unencrypted format. As shown in FIGURE 3B, the second memory component of the process-based virtualization system 190 is referred to herein as the secure memory 312B and includes the transform:radix tree 309, the firmware 196, and a secure container 308 that includes the secure container in unencrypted format.

[0061] In step 305, firmware 120 sets up a translation structure in the second memory component to enable the secure application to access data in the second memory component. The translation structure may include a partition table and a process table, as shown in FIG. 6D. The setup may be performed by creating a new entry in the partition table that points to the secure process table. An entry may also be added to the secure process table that associates the secure application with a translation tree, e.g., a secure process-scoped radix tree, such as the translation:radix tree 309 of FIG. 3B and FIG. 3C. That is, firmware 120 has a partition table and sets up for address translation using the translation tree. For example, second memory components 312A and 312B of process-based virtualization systems 100 and 190 may store a secure application address translation tree.

[0062] In one embodiment, the method of FIG. 3A may further include step 307 of starting the secure application. In one embodiment, starting the secure application may be performed in response to receiving an application start system call after receiving a process initialization system call. That is, steps 301-305 may be performed in response to a received process initialization system call and step 307 may be performed in response to a received application start system call. In another embodiment, steps 301-307 may be performed in response to a received other system call (scall).

[0063] 4 is a flow chart of a method for executing a secure application. The secure application may be part of a container, such as a container contained in a container, such as secure container 180N.

[0064] In step 401, firmware 120 may receive an application initiation system call, for example, from a non-secure application process. The application initiation system call includes an address that points to a secure application address translation tree.

[0065] Upon receiving the application start system call, firmware 120 may execute the secure application in step 403. Executing the secure application includes accessing the second memory component using the secure application address translation tree.

[0066] FIG. 5 is a flow chart of a method for executing a container contained in a secure container, such as secure container 180N.

[0067] In step 501, a system call (e.g., ucall) having a level lev=2 may be received. The system call is received to start a secure application in a secure container. The system call may be received while the data processing unit is in firmware state 0b110.

[0068] In step 503, a secure application may start (eg, using the urfid or hrifd instruction). Execution of the secure application may be performed in state MSR(S, HV, PR)=0b111.

[0069] An interrupt caused or triggered by the secure application may be processed as described with reference to steps 505-509. For example, if the secure application requires an OS-aware operation, for example to read data from a disk, the data processing unit may switch to state 242 (MSR(S, HV, PR)=0b110) in step 505. In state 242, the firmware may manage the OS operation on behalf of the secure application. To keep the number of lines of code in the firmware limited, the firmware may use the OS to perform the requested operation of the secure application. The firmware may switch the data processing unit to a given state that allows the OS to perform the operation in steps 507-509. The given state is state 254 if the secure application is part of the process-based virtualization system 100 of FIG. 1A and is state 252 if the secure application is part of the process-based virtualization system 190 of FIG. 1B. The requested data of the operation may be encrypted before being stored in the first memory component, for example, the data may be provided or (pre)stored on disk in an encrypted format as may be requested by the secure application. After the operation is performed, the data processing unit switches again to firmware state 242. When the OS completes the operation, it returns to firmware 120, which, if it chooses to resume the secure application, restores secure state 0b111 (241) and passes control to the secure application. Before switching to state 241, the firmware may, for example, pre-process the requested data or the results of the operation, so that the secure application continues to execute using the pre-processed data. Pre-processing may, for example, include encryption of output data of the secure application or decryption of input data of the secure application. Interrupts not related to the secure application and received while the secure application is executing may be reliably reflected to the OS.

[0070] In one embodiment, the data processing unit may switch from state 241_0b111 to state 242_0b110 in step 505. The data processing unit may switch from state 242_0b110 to the hypervisor state in steps 507 and 509 to allow the host OS to handle the interrupt.

[0071] 6A-6D illustrate a data component that enables access to data stored in a second memory component according to an embodiment of the present subject matter. Figures 6A and 6B illustrate data structures 601 and 610 that indicate different states of a data processing unit for different received effective addresses. Data structures 601 and 610 indicate which translation tree may be used for a given received effective address (EA) for process-based virtualization systems 100 and 190, respectively.

[0072] Data structures 601 and 610 may be described as tables having cells, each cell defined by a pair of distinct values ​​of two variables V1 and V2. Variable V1 refers to the value of the first two bits of an effective address indicated by the first column of the data structure, and variable V2 refers to the value of the MSR (S, HV, PR) bits. The present subject matter utilizes the first two bits of the effective address to define the state of the data processing unit associated with each distinct value of V1.

[0073] Each cell of the data structure points to two registers containing the values ​​of two identifiers: a process identifier and a logical partition identifier (or VM identifier). For example, if the received address is in quadrant 0 (i.e., EA(0:1)=00) and MSR(S,HV,PR)=0b111, the corresponding cell points to a register (e.g., SPIDR) named after the identifier of the process (sending the given address) and the identifier of the logical partition in which the process is running. The address translation mechanism translates the given address using the contents of the indicated registers and the partition table shown in Figure 6D (if the process is running in the correct mode).

[0074] The values ​​of the MSR (S, HV, PR) bits may be read from the MSR register, which is part of the data processing unit 615 shown in FIG. 6C. The MSR register may be, for example, part of an instruction sequencing unit (ISU) 616 of the data processing unit 615. In addition, the registers shown in the cells of a data structure such as SPIDR may be, for example, part of a load store unit (LSU) / memory management unit (MMU) 617 of the data processing unit as shown in FIG. 6C.

[0075] As shown in Figure 6D, the values ​​of two registers in each cell of data structure 601 of Figure 6A and data structure 610 of Figure 6B may be used as indexes into a partition table controlled by firmware so that translations may be performed. For example, for a secure container, the two indexes may be capable of translating a given address using a partition scoping tree as shown in Figure 6D.

[0076] As shown in FIG. 6D, partition table 620 includes an entry for each logical partition ID. Each entry in partition table 620 references a corresponding process table. For example, an entry indexed by a logical partition ID equal to FFF may point to secure process table 621, as shown in FIG. 6D. An entry indexed by a logical partition ID equal to 0 may point to normal process table 622, as shown in FIG. 6D. Secure process table 621 includes an entry for each secure process and is indexed by a secure process ID. Each entry in secure process table 621 points to the location of a page directory and a page table in translation tree 623. Translation tree 623 may be a partition-scoped translation tree as shown in FIG. 6D. Translation tree 623 may be used to translate received effective addresses as shown in FIG. 6D. For example, the origin of the highest order translation table of the hierarchical translation tables of translation tree 623 may be provided by, for example, an entry in a secure process table associated with a secure application process. The effective address may be used to index each table in the hierarchical translation tables to determine the origin address of the next table, for example, to locate a page table entry (PTE) having the address of a page of physical memory.

[0077] Some embodiments provide one or more of a method, computer system, and computer program product for process-based virtualization. At least one such embodiment includes granting access to a first memory component of a computer-readable storage medium to an operating system, a secure application, a non-secure application, and firmware of a process-based virtualization system, where the firmware and the secure application are permitted to access a second memory component of the computer-readable storage medium, and the operating system and the non-secure application are prohibited from accessing the second memory component. An embodiment includes modifying a data processing unit to operate in a first operating mode such that the data processing unit executes the non-secure application with the operating system. An embodiment includes modifying a data processing unit to operate in a second operating mode such that the data processing unit executes the secure application with the firmware, and application code of the secure application is executed with the second memory component.

[0078] At least one such embodiment includes receiving a system call from the process, the system call indicating that the secure application is stored in an encrypted format in the first memory component. At least one such embodiment includes responding to receiving the system call by modifying the data processing unit to operate in a second mode of operation. At least one such embodiment includes copying the encrypted secure application to the second memory component. At least one such embodiment includes decrypting the secure application in the second memory component. At least one such embodiment includes generating an address translation structure that provides access by the decrypted secure application to the second memory component and data in the first memory component. At least one such embodiment includes executing the decrypted secure application such that the second memory component is accessed using the address translation structure.

[0079] At least one such embodiment includes firmware including program instructions for performing a method. The method includes receiving a process initialization system call from a process indicating that a secure application is stored in a first memory component in an encrypted format. The method includes responding to receiving the process initialization system call. The method includes configuring the data processing unit to operate in a second operating mode. The method includes copying the encrypted secure application to the second memory component. The method includes decrypting the secure application in the second memory component. The method includes generating an address translation structure that grants the decrypted secure application access to data in the second memory component and the first memory component.

[0080] In at least one embodiment, the address translation structure includes a partition table and a secure process table. In at least one embodiment, the partition table and the secure process table are stored in a second memory component. In at least one embodiment, generating the address translation structure includes adding to the partition table (i) a partition entry that points to the secure process table and (ii) a process entry associated with a secure application process of the secure application, the process entry pointing to a secure application address translation tree that enables translation of effective addresses to physical addresses.

[0081] At least one embodiment includes firmware including program instructions for performing a method, the method including receiving an address indicating a storage location of a secure application in a first memory component, the method including copying an encrypted secure application using the address, and decrypting the secure application.

[0082] In at least one embodiment, the encrypted secure application is associated with a hash value associated with the contents of the encrypted secure application. In at least one embodiment, a method that may be performed via firmware includes performing an integrity check of the encrypted secure application using the hash value.

[0083] In at least one embodiment, the address translation structure includes a partition table and a secure process table, the partition table being indexed by a logical process identifier. In at least one embodiment, the partition table includes an entry that points to the secure process table, the entry that points to the secure process table being indexed by a fixed value. In at least one embodiment, the secure process table is indexed by the secure process identifier. In at least one embodiment, the data processing unit includes a secure register that includes a secure process identifier value of a secure application process of the secure application. In at least one embodiment, the secure application process uses a value stored in the secure register to identify the secure process table using the fixed value and to perform address translation using an entry of the secure process table associated with the value of the secure register.

[0084] At least one embodiment includes firmware including program instructions for performing a method, the method including determining that a translation structure has been generated, the method including receiving an application start system call from a process, and the method including, upon receiving the application start system call, executing the decrypted secure application by accessing a second memory component using the address translation structure.

[0085] In at least one embodiment, the data processing unit includes at least a first secure state and a second secure state in the second mode of operation, In at least one embodiment, the first secure state includes a firmware state that enables the data processing unit to execute firmware, and the second secure state includes a secure application process state that enables the data processing unit to execute a secure application.

[0086] In at least one embodiment, the method includes switching to a first secure state in response to receiving a process initialization system call or an interrupt request. In at least one embodiment, the method includes switching to a second secure state in response to receiving an application start system call.

[0087] In at least one embodiment, the data processing unit includes a set of bits whose values ​​indicate a first secure state and a second secure state.

[0088] In at least one embodiment, the data processing unit includes a machine state register, the set of bits including machine state register bits indicating an operating mode for the data processing unit, machine state register bits indicating a hypervisor state, and machine state register bits indicating a privileged state or a problem state of the machine state register.

[0089] In at least one embodiment, the data processing unit includes a machine state register including a secure bit, the secure bit being set to a first value causing the data processing unit to operate in a first mode of operation and the secure bit being set to a second value causing the data processing unit to operate in a second mode of operation. In at least one embodiment, in the first mode of operation, the data processing unit writes data to be written to the computer-readable storage medium to a first memory component. In at least one embodiment, in the second mode of operation, the computer-readable storage medium is modified to access data contained in the first memory component and the second memory component.

[0090] In at least one embodiment, a secure application process of a secure application is an executable instance of a container that includes the secure application. In at least one embodiment, the container is running within a virtual machine of a process-based virtualization system.

[0091] The invention may be a system, method, or computer program product, or combination thereof, at any possible level of technical detail of integration. The computer program product may include a computer-readable storage medium (or media) having computer-readable program instructions thereon for causing a processor to perform aspects of the invention.

[0092] A computer readable storage medium may be a tangible device that can hold and store instructions for use by an instruction execution device. A computer readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of computer readable storage media includes portable computer diskettes, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disk read only memory (CD-ROM), digital versatile disk (DVD), memory sticks, floppy disks, mechanically encoded devices such as punch cards or ridge structures in grooves that allow instructions to be recorded thereon, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium should not be construed as a transitory signal per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., light pulses passing through a fiber optic cable), or electrical signals transmitted through electrical wires.

[0093] The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to the respective computing / processing device or to an external computer or storage device via a network, such as the Internet, a local area network, a wide area network, or a wireless network, or a combination thereof. The network may include copper transmission cables, optical transmission fiber, wireless transmission, routers, firewalls, switches, gateway computers, or edge servers, or a combination thereof. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and transfers the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing / processing device.

[0094] The computer readable program instructions for carrying out the operations of the present invention may be either source code or object code written in any combination of one or more programming languages, including assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state setting data, configuration data for integrated circuits, or object oriented programming languages ​​such as Smalltalk®, C++, and procedural programming languages ​​such as the "C" programming language or similar programming languages. The computer readable program instructions may execute completely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or completely on a remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (e.g., through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may execute computer readable program instructions by individualizing the electronic circuitry with state information of the computer readable program instructions to perform aspects of the invention.

[0095] Aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer readable program instructions.

[0096] These computer readable program instructions may be provided to a processor of a computer or other programmable data processing apparatus to produce a machine, such that the instructions, executed by a processor of the computer or other programmable data processing apparatus, produce means for performing the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams. These computer readable program instructions may be stored on a computer readable storage medium and may direct a computer, programmable data processing apparatus, or other device, or combination thereof, to function in a particular manner, such that a computer readable storage medium having instructions stored thereon comprises an article of manufacture including instructions for performing aspects of the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams.

[0097] Computer readable program instructions may be loaded onto a computer, other programmable data processing apparatus, or other device and cause the computer, other programmable apparatus, or other device to perform a series of operational steps to produce a computer-implemented process, such that the instructions executing on the computer, other programmable apparatus, or other device perform the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams.

[0098] The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowcharts or block diagrams may represent a module, segment, or part of an instruction, including one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions described in the blocks may occur out of the order described in the figures. For example, two blocks shown in succession may in fact be implemented as one step, executed simultaneously, substantially simultaneously, partially or fully overlapping in time, or the blocks may be executed in the reverse order depending on the functionality involved. It should also be noted that each block in the block diagrams and / or flowchart illustrations, and combinations of blocks in the block diagrams and / or flowchart illustrations, may be implemented by a dedicated hardware-based system that performs the specified functions or operations or executes a combination of dedicated hardware and computer instructions.

Claims

1. A computer system for process-based virtualization, comprising: one or more computer processors; At least one computer readable storage medium that is not the ephemeral signal itself; program instructions stored on the at least one computer readable storage medium, the program instructions being configured to cause at least one computer processor of the one or more computer processors to: authorizing an operating system, a secure application, a non-secure application, and a firmware of a process-based virtualization system to access a first memory component of a computer-readable storage medium, wherein the firmware and the secure application are permitted to access a second memory component of the computer-readable storage medium, and the operating system and the non-secure application are prohibited from accessing the second memory component; modifying the data processing unit to operate in a first operating mode such that the data processing unit executes the non-secure application using the operating system; and modifying the data processing unit to operate in a second mode of operation such that the data processing unit executes the secure application using the firmware and application code of the secure application executes using the second memory component; the program instructions being executable to cause a method including: Equipped with The firmware, program instructions for receiving a system call from a process, the system call indicating that the secure application is stored in the first memory component in an encrypted format; program instructions responsive to receiving said system call by modifying said data processing unit to operate in said second mode of operation; program instructions for copying the encrypted secure application to the second memory component; program instructions for decrypting the secure application in the second memory component; program instructions for generating an address translation structure that provides access by the decrypted secure application to data in the second memory component and the first memory component; program instructions for executing the decrypted secure application such that the second memory component is accessed using the address translation structure; 1. A computer system comprising:

2. 2. The system of claim 1, wherein the address translation structure includes a partition table and a secure process table, the partition table and the secure process table being stored in the second memory component, and generating the address translation structure includes adding to the partition table (i) a partition entry that points to the secure process table and (ii) a process entry associated with a secure application process of the secure application, the process entry pointing to a secure application address translation tree that enables translation of effective addresses to physical addresses.

3. The firmware, program instructions for receiving an address indicating a storage location of the secure application within the first memory component; program instructions for copying the encrypted secure application using the address and decrypting the secure application; The system of claim 1 , comprising:

4. 2. The system of claim 1, wherein the encrypted secure application is associated with a hash value associated with the contents of the encrypted secure application, and the firmware includes program instructions for performing an integrity check of the encrypted secure application using the hash value.

5. 2. The system of claim 1, wherein the address translation structure includes a partition table and a secure process table, the partition table being indexed by a logical process identifier, the partition table including entries pointing to the secure process table, the entries pointing to the secure process table being indexed by a fixed value, the secure process table being indexed by a secure process identifier, the data processing unit including a secure register including a value of a secure process identifier of a secure application process of the secure application, the secure application process identifying the secure process table using the fixed value and using a value stored in the secure register to perform address translation using an entry of the secure process table associated with the value of the secure register.

6. The system of claim 1 , wherein a secure application process of the secure application is an executable instance of a container that contains the secure application.

7. The system of claim 6 , wherein the container is executing in a virtual machine of the process-based virtualization system.

8. A computer system for process-based virtualization, comprising: one or more computer processors; At least one computer readable storage medium that is not the ephemeral signal itself; program instructions stored on the at least one computer readable storage medium, the program instructions being configured to cause at least one computer processor of the one or more computer processors to: authorizing an operating system, a secure application, a non-secure application, and a firmware of a process-based virtualization system to access a first memory component of a computer-readable storage medium, wherein the firmware and the secure application are permitted to access a second memory component of the computer-readable storage medium, and the operating system and the non-secure application are prohibited from accessing the second memory component; modifying the data processing unit to operate in a first operating mode such that the data processing unit executes the non-secure application using the operating system; and modifying the data processing unit to operate in a second mode of operation such that the data processing unit executes the secure application using the firmware and application code of the secure application executes using the second memory component; the program instructions being executable to cause a method including: Equipped with The firmware, program instructions for receiving a process initialization system call from a process indicating that the secure application is stored in the first memory component in an encrypted format; program instructions responsive to receipt of the process initialization system call, configuring the data processing unit to operate in the second mode of operation; program instructions for copying the encrypted secure application to the second memory component and decrypting the secure application in the second memory component; program instructions for generating an address translation structure that grants the decrypted secure application access to data in the second memory component and the first memory component; 1. A computer system comprising:

9. The firmware, program instructions for determining that the transformation structure has been generated; program instructions for receiving an application initiation system call from the process; program instructions for executing the decrypted secure application upon receiving the application initiation system call by accessing the second memory component using the address translation structure; The system of claim 8 , comprising:

10. A computer system for process-based virtualization, comprising: one or more computer processors; At least one computer readable storage medium that is not the ephemeral signal itself; program instructions stored on the at least one computer readable storage medium, the program instructions being configured to cause at least one computer processor of the one or more computer processors to: authorizing an operating system, a secure application, a non-secure application, and a firmware of a process-based virtualization system to access a first memory component of a computer-readable storage medium, wherein the firmware and the secure application are permitted to access a second memory component of the computer-readable storage medium, and the operating system and the non-secure application are prohibited from accessing the second memory component; modifying the data processing unit to operate in a first operating mode such that the data processing unit executes the non-secure application using the operating system; and modifying the data processing unit to operate in a second mode of operation such that the data processing unit executes the secure application using the firmware and application code of the secure application executes using the second memory component; the program instructions being executable to cause a method including: Equipped with (i) the data processing unit includes a machine state register including a secure bit, the secure bit being set to a first value causing the data processing unit to operate in the first mode of operation and the secure bit being set to a second value causing the data processing unit to operate in the second mode of operation; (ii) in the first operating mode, the data processing unit writes data to be written to the computer-readable storage medium to the first memory component; (iii) in the second mode of operation, the computer-readable storage medium is modified to access data contained in the first memory component and the second memory component; Computer system.

11. A method for process-based virtualization, comprising: authorizing, by at least one computer processor, an operating system, a secure application, a non-secure application, and a firmware of a process-based virtualization system to access a first memory component of a computer-readable storage medium, wherein the firmware and the secure application are permitted to access a second memory component of the computer-readable storage medium, and the operating system and the non-secure application are prohibited from accessing the second memory component; modifying, by the at least one computer processor, the data processing unit to operate in a first operating mode such that the data processing unit executes the non-secure application using the operating system; modifying, by the at least one computer processor, the data processing unit to operate in a second operating mode such that the data processing unit executes the secure application using the firmware and application code of the secure application is executed using the second memory component; Including, receiving, by the at least one computer processor, a system call from a process, the system call indicating that the secure application is stored in the first memory component in an encrypted format; responding to receipt of said system call by modifying, by said at least one computer processor, said data processing unit to operate in said second mode of operation; copying, by the at least one computer processor, the encrypted secure application to the second memory component; decrypting, by the at least one computer processor, the secure application in the second memory component; and generating, by the at least one computer processor, an address translation structure that provides access by the decrypted secure application to data in the second memory component and the first memory component; executing, by the at least one computer processor, the decrypted secure application such that the second memory component is accessed using the address translation structure; and A method comprising:

12. The method of claim 11, wherein the address translation structure includes a partition table and a secure process table, the partition table and the secure process table being stored in the second memory component, and generating the address translation structure includes adding to the partition table (i) a partition entry that points to the secure process table and (ii) a process entry associated with a secure application process of the secure application, the process entry pointing to a secure application address translation tree that enables translation of effective addresses to physical addresses.

13. A method for process-based virtualization, comprising: authorizing, by at least one computer processor, an operating system, a secure application, a non-secure application, and a firmware of a process-based virtualization system to access a first memory component of a computer-readable storage medium, wherein the firmware and the secure application are permitted to access a second memory component of the computer-readable storage medium, and the operating system and the non-secure application are prohibited from accessing the second memory component; modifying, by the at least one computer processor, the data processing unit to operate in a first operating mode such that the data processing unit executes the non-secure application using the operating system; modifying, by the at least one computer processor, the data processing unit to operate in a second operating mode such that the data processing unit executes the secure application using the firmware and application code of the secure application is executed using the second memory component; Including, receiving, by the at least one computer processor, a process initialization system call from a process indicating that the secure application is stored in the first memory component in an encrypted format; responding to receipt of the process initialization system call by configuring, by the at least one computer processor, the data processing unit to operate in the second mode of operation; copying, by the at least one computer processor, the encrypted secure application to the second memory component and decrypting the secure application in the second memory component; generating, by the at least one computer processor, an address translation structure granting the decrypted secure application access to data in the second memory component and the first memory component; A method comprising:

Citation Information

Patent Citations

  • Storing secure mode page table data in secure and non-secure memory areas.

    JP2013522702A

  • Hardware based isolation for secure execution of virtual machines

    US20190034666A1