# US 2020/0393977 A1 · Processors, methods and systems to allow secure communications between protected container memory and input/output devices

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

- Number: US 2020/0393977 A1
- Document ID: US20200393977A1
- Status: Published application
- Kind: A1
- Application number: 16/882,637
- Filed: 2020-05-25
- Published: 2020-12-17
- Earliest claimed: 2015-09-25
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Ilya Alexandrovich; Vladimir Beker; Gideon Gerzon; Vincent R. Scarlata
- Web page: https://patentgrep.com/patent/US20200393977A1

## CPC

- G06F 3/0622: {in relation to access}
- G06F 3/0637: {Permissions}
- G06F 3/0673: {Single storage device}
- G06F 13/16: for access to memory bus (G06F13/28 takes precedence)
- G06F 13/4068: {Electrical coupling}
- G06F 21/78: to assure secure storage of data (address-based protection against unauthorised use of memory G06F12/14; record carriers for use with machines and with at least a part designed to carry digital markings G06K19/00)
- G06F 21/79: in semiconductor storage media, e.g. directly-addressable memories
- G06F 21/85: interconnection devices, e.g. bus-connected or in-line devices
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An integrated circuit includes protected container access control logic to perform a set of access control checks and to determine whether to allow a device protected container module (DPCM) and an input and/or output (I/O) device to communicate securely through one of direct memory access (DMA) and memory-mapped input/output (MMIO). The DPCM and the I/O device are allowed to communicate securely if it is determined that at least the DPCM and the I/O device are mapped to one another, an access address associated with the communication resolves into a protected container memory, and a page of the protected container memory into which the access address resolves allows for the aforementioned one of DMA and MMIO. In some cases, a Security Attributes of Initiator (SAI) or security identifier may be used to obtain a DPCM identifier or attest that access is from a DPCM mapped to the I/O device. In some cases, a determination may be made that a type of access is compatible with one or more allowed access types for the page as represented in a protected container page metadata structure.

## Claims

### Claim 1

An integrated circuit comprising:
a protected container access control logic to perform a set of access control checks and to determine to allow a device protected container module (DPCM) and an input and/or output (I/O) device to communicate securely through one of direct memory access (DMA) and memory-mapped input/output (MMIO) after it has been determined that at least:
the DPCM and the I/O device are mapped to one another;
an access address associated with the communication resolves into a protected container memory; and
a page of the protected container memory into which the access address resolves allows for said one of DMA and MMIO.

### Claim 2 (depends on 1)

The integrated circuit of claim 1, wherein said one is DMA.

### Claim 3 (depends on 2)

The integrated circuit of claim 2, wherein the protected container access control logic is to determine to allow the I/O device to access the page of the protected container memory.

### Claim 4 (depends on 2)

The integrated circuit of claim 2, wherein the access address is to come from the I/O device and is to be accompanied by a Security Attributes of Initiator (SAI) corresponding to the I/O device, and wherein the protected container access control logic is to determine that the DPCM and the I/O device are mapped to one another by using the SAI of the I/O device to obtain a DPCM identifier mapped to the SAI of the I/O device in a device mapping table and determine that the DPCM identifier obtained from the table corresponds to the DPCM.

### Claim 5 (depends on 2)

The integrated circuit of claim 2, wherein the protected container access control logic is to access an allowed physical address that is to have been previously stored in a protected container page metadata structure, and is to determine to allow the DPCM and the I/O device to communicate securely after it has been determined that the access address is compatible with the allowed physical address.

### Claim 6 (depends on 5)

The integrated circuit of claim 5, further comprising:
a decode unit to decode an instruction; and
an execution unit coupled with the decode unit, the execution unit, in response to the instruction, to store the allowed physical address in the protected container page metadata structure.

### Claim 7 (depends on 2)

The integrated circuit of claim 2, wherein the protected container access control logic is to determine to allow the DPCM and the I/O device to communicate securely after it has been determined that the page has a type that is dedicated to allowing secure DMA.

### Claim 8 (depends on 2)

The integrated circuit of claim 2, wherein the protected container access control logic comprises an I/O memory management unit (MMU).

### Claim 9 (depends on 1)

The integrated circuit of claim 1, wherein said one is MMIO.

### Claim 10 (depends on 9)

The integrated circuit of claim 9, further comprising a memory management unit (MMU) to convert an address that resolves to the page of the protected container memory to an MMIO address for the I/O device.

### Claim 11 (depends on 9)

The integrated circuit of claim 9, wherein the protected container access control logic is to provide a security identifier to accompany an access from the DPCM to the I/O device, and wherein the security identifier is to attest to the I/O device that the access is from a DPCM that is mapped to the I/O device.

### Claim 12 (depends on 9)

The integrated circuit of claim 9, wherein the protected container access control logic is to determine to allow the DPCM and the I/O device to communicate securely after it has been determined that the page has a type that is dedicated to allowing secure MMIO.

### Claim 13 (depends on 9)

The integrated circuit of claim 9, wherein the protected container access control logic comprises a memory management unit (MMU).

### Claim 14 (depends on 1)

The integrated circuit of claim 1, wherein the protected container access control logic is to determine to allow the DPCM and the I/O device to communicate securely after it has been determined that a type of access is compatible with one or more allowed access types for the page that are to be stored in a protected container page metadata structure.

### Claim 15 (depends on 1)

The integrated circuit of claim 1, wherein the protected container access control logic is to determine not to allow:
any other protected container modules to access the page of the protected container memory; and
any privileged system software modules to access the page of the protected container memory.

### Claim 16

A method in an integrated circuit comprising:
determining that a device protected container module (DPCM) and an input and/or output (I/O) device are mapped to one another;
determining that an access address associated with an attempted access by one of the DPCM and the I/O device resolves into a protected container memory; and
determining that a page of the protected container memory into which the access address resolves allows for one of DMA and MMIO; and
determining to allow the DPCM and the I/O device to communicate securely with one another through the page of the protected container memory.

### Claim 17 (depends on 16)

The method of claim 16, wherein determining comprises determining to allow the DPCM and the I/O device to perform secure DMA, and further comprising allowing the I/O device to access data in the page of the protected container memory.

### Claim 18 (depends on 16)

The method of claim 16, wherein determining comprises determining to allow the DPCM and the I/O device to perform secure MMIP.

### Claim 19

A computer system comprising:
an interconnect;
a processor coupled with the interconnect, the processor to perform a set of access control checks and to determine to allow a device protected container module (DPCM) and an input and/or output (I/O) device to communicate securely through one of direct memory access (DMA) and memory-mapped input/output (MMIO) after it has been determined that at least:
the DPCM and the I/O device are mapped to one another;
an access address associated with the communication resolves into a protected container memory; and
a page of the protected container memory into which the access address resolves allows for said one of DMA and MMIO; and
a dynamic random access memory (DRAM) coupled with the interconnect, the DRAM storing a the DPCM, wherein the DPCM includes device driver instructions to communicate with the I/O device at a user level of privilege.

### Claim 20 (depends on 19)

The computer system of claim 19, wherein said one is DMA.
