# US 2021/0232693 A1 · Process-based virtualization system for executing a secure application process

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0232693 A1
- Document ID: US20210232693A1
- Status: Published application
- Kind: A1
- Application number: 16/751,234
- Filed: 2020-01-24
- Published: 2021-07-29
- Earliest claimed: 2020-01-24
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Jentje Leenstra; Paul Mackerras; Benjamin Herrenschmidt; Bradly George Frey; John Martin Ludden; Guerney D. H. Hunt; David Campbell
- Web page: https://patentgrep.com/patent/US20210232693A1

## CPC

- G06F 21/602: {Providing cryptographic facilities or services}
- G06F 9/30101: {Special purpose registers}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 12/10: Address translation
- G06F 21/74: operating in dual or compartmented mode, i.e. at least one secure mode
- G06F 2009/45587: {Isolation or security of virtual machine instances}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present disclosure relates to a process-based virtualization system comprising a data processing unit. The system comprises a computer readable storage media, wherein a first memory component of the computer readable storage media is configured for access by an OS, secure and non-secure applications and the firmware, and wherein a second memory component of the computer readable storage media is configured for access by the firmware and not by the OS and the non-secure application. The data processing unit is configured to operate in a first mode of operation that executes a non-secure application process using the OS, and to operate in a second mode of operation that executes the secure application using the firmware, thereby executing application code using the second memory component.

## Claims

### Claim 1

A computer system for process-based virtualization, the computer system comprising:
one or more computer processors;
at least one computer readable storage medium that is not a transitory signal per se; and
program instructions stored on the at least one computer readable storage medium, the program instructions being executable by at least one computer processor of the one or more computer processors to cause the at least one computer processor to perform a method comprising:
granting an operating system, a secure application, a non-secure application, and a firmware of a process-based virtualization system access to a first memory component of a computer readable storage media, wherein the firmware and the secure application are permitted access to a second memory component of the computer readable storage media 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 mode of operation 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 is executed using the second memory component.

### Claim 2 (depends on 1)

The system of claim 1, wherein the firmware includes:
program instruction to receive a system call from a process, wherein the system call indicates that the secure application is being stored in an encrypted format in the first memory component;
program instruction to respond to reception of the system call by modifying the data processing unit to operate in the second mode of operation;
program instruction to copy the encrypted secure application in the second memory component;
program instruction to decrypt the secure application in the second memory component;
program instruction to generate an address translation structure that provides access to data in the second memory component and the first memory component by the decrypted secure application; and
program instruction to execute the decrypted secure application such that the second memory component is accessed using the address translation structure.

### Claim 3 (depends on 1)

The system of claim 1, wherein the firmware includes:
program instruction to receive a process initialization system call from a process indicating the secure application being stored in encrypted format in the first memory component;
program instruction to respond to reception of the process initialization system call, configuring the data processing unit to operate in the second mode of operation;
program instruction to copy the encrypted secure application in the second memory component and decrypting the secure application in the second memory component; and
program instruction to generate an address translation structure that grants the decrypted secure application access to data in the second memory component and the first memory component.

### Claim 4 (depends on 2)

The system of claim 2, wherein the address translation structure includes a partition table and a secure process table, wherein the partition table and secure process table are stored in the second memory component, and wherein 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 that is associated with a secure application process of the secure application, wherein the process entry points to a secure application address translation tree that enables translation of effective addresses to physical addresses.

### Claim 5 (depends on 2)

The system of claim 2, the firmware including:
program instructions to receive an address that indicates a storage location of the secure application in the first memory component; and
program instruction to use the address to copy the encrypted secure application and decrypt the secure application.

### Claim 6 (depends on 2)

The system of claim 2, wherein the encrypted secure application is associated with a hash value that is associated with the content of the encrypted secure application, and wherein the firmware includes program instructions to for perform an integrity check of the encrypted secure application using the hash value.

### Claim 7 (depends on 2)

The system of claim 2, wherein the address translation structure includes a partition table and a secure process table, wherein the partition table is indexed by logical process identifiers, wherein the partition table includes entries pointing to the secure process table, wherein entries that point to the secure process table are indexed by a fixed value, wherein the secure process table is indexed by secure process identifiers, wherein the data processing unit includes a secure register comprising a value of a secure process identifier of a secure application process of the secure application, wherein the secure application process uses the fixed value to identify the secure process table and uses a value stored in the secure register for performing an address translation using an entry of the secure process table that is associated with the value of the secure register.

### Claim 8 (depends on 3)

The system of claim 3, the firmware including:
program instructions to determine that the translation structure has been created;
program instructions to receive an application start system call from the process; and
program instructions to, upon receiving the application start system call, execute the decrypted secure application by accessing the second memory component using the address translation structure.

### Claim 9 (depends on 1)

The system of claim 1, wherein the data processing unit includes at least a first secure state and a second secure state in the second mode of operation, wherein the first secure state includes a firmware state in which the data processing unit enables execution of the firmware, and the second secure state includes a secure application process state in which in which the data processing unit enables execution of the secure application.

### Claim 10 (depends on 9)

The system of claim 9, the data processing unit including:
program instructions to switch to the first secure state in response to receiving a process initialization system call or an interrupt request, and to switch to the second secure state in response to receiving an application start system call.

### Claim 11 (depends on 9)

The system of claim 9, wherein the data processing unit includes a set of bits whose values indicate of the first and second secure states.

### Claim 12 (depends on 11)

The system of claim 11, wherein the data processing unit includes a machine state register in which the set of bits include an machine state register bit that indicates a mode of operation for the data processing unit, a machine state register bit that indicates a hypervisor state, and a machine state register bit that indicates a privileged state or a problem state of the machine state register.

### Claim 13 (depends on 1)

The system of claim 1, wherein:
(i) the data processing unit includes a machine state register that includes a secure bit, wherein the secure bit being set to a first value causes to the data processing unit to operate in the first mode of operation, and wherein the secure bit being set to a second value causes to the data processing unit to operate in the second mode of operation;
(ii) in the first mode of operation, the data processing unit writes data that is written to the computer readable storage media to the first memory component; and
(iii) in the second mode of operation, the computer readable storage media is modified to access data included in the first memory component and the second memory component.

### Claim 14 (depends on 2)

The system of claim 2, wherein a secure application process of the secure application is a runnable instance of a container comprising the secure application.

### Claim 15 (depends on 14)

The system of claim 14, wherein the container is executing within a virtual machine of the process-based virtualization system.

### Claim 16

A method for process-based virtualization, the method comprising:
granting, 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 access to a first memory component of a computer readable storage media, wherein the firmware and the secure application are permitted access to a second memory component of the computer readable storage media 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 mode of operation such that the data processing unit executes the non-secure application using the operating system; and
modifying, by the at least one computer processor, 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 is executed using the second memory component.

### Claim 17 (depends on 16)

The method of claim 16, the method comprising:
receiving, by the at least one computer processor, a system call from a process, wherein the system call indicates that the secure application is being stored in an encrypted format in the first memory component;
responding, by the at least one computer processor, to reception of the system call by modifying the data processing unit to operate in the second mode of operation;
copying, by the at least one computer processor, the encrypted secure application in the second memory component;
decrypting, by the at least one computer processor, the secure application in the second memory component;
generating, by the at least one computer processor, up an address translation structure that provides access to data in the second memory component and the first memory component by the decrypted secure application; and
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.

### Claim 18 (depends on 16)

The method of claim 16, the method comprising:
receiving, by the at least one computer processor, a process initialization system call from a process indicating the secure application being stored in encrypted format in the first memory component;
responding, by the at least one computer processor, to reception of the process initialization system call, by configuring the data processing unit to operate in the second mode of operation;
copying, by the at least one computer processor, the encrypted secure application in the second memory component and decrypting the secure application in the second memory component; and
generating, by the at least one computer processor, an address translation structure that grants the decrypted secure application access to data in the second memory component and the first memory component.

### Claim 19 (depends on 16)

The method of claim 16, wherein the address translation structure includes a partition table and a secure process table, wherein the partition table and secure process table are stored in the second memory component, and wherein 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 that is associated with a secure application process of the secure application, wherein the process entry points to a secure application address translation tree that enables translation of effective addresses to physical addresses.

### Claim 20

A computer program product for process-based virtualization, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, wherein the computer readable storage medium is not a transitory signal per se, the program instructions executable by a device to cause the device to perform a method comprising:
granting an operating system, a secure application, a non-secure application, and a firmware of a process-based virtualization system access to a first memory component of a computer readable storage media, wherein the firmware and the secure application are permitted access to a second memory component of the computer readable storage media 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 mode of operation 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 is executed using the second memory component.
