# US 2023/0267196 A1 · Confidential Computing with Device Memory Isolation

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

- Number: US 2023/0267196 A1
- Document ID: US20230267196A1
- Status: Published application
- Kind: A1
- Application number: 17/676,890
- Filed: 2022-02-22
- Published: 2023-08-24
- Earliest claimed: 2022-02-22
- Assignees: Mellanox Technologies, Ltd.
- Applicants: Mellanox Technologies, Ltd.
- Inventors: Boris Pismenny; Miriam Menes; Ahmad Atamli; Ilan Pardo; Ariel Shahar; Uria Basher
- Web page: https://patentgrep.com/patent/US20230267196A1

## CPC

- G06F 21/53: by executing in a restricted environment, e.g. sandbox or secure virtual machine
- G06F 9/5016: {the resource being the memory}
- G06F 9/5077: {Logical partitioning of resources; Management or configuration of virtualized resources (specific details on emulation or internal functioning of virtual machines G06F9/455)}
- G06F 13/28: using burst mode transfer, e.g. direct memory access {DMA}, cycle steal (G06F13/32 takes precedence)
- G06F 21/79: in semiconductor storage media, e.g. directly-addressable memories
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A confidential computing (CC) apparatus includes a CPU and a peripheral device. The CPU is to run a hypervisor that hosts one or more Trusted Virtual Machines (TVMs). The peripheral device is coupled to the CPU and to an external memory. The CPU includes a TVM-Monitor (TVMM), to perform management operations on the one or more TVMs, to track memory space that is allocated by the hypervisor to the peripheral device in the external memory, to monitor memory-access requests issued by the hypervisor to the memory space allocated to the peripheral device in the external memory, and to permit or deny the memory-access requests, according to a criterion.

## Claims

### Claim 1

A confidential computing (CC) apparatus, comprising:
a CPU, to run a hypervisor that hosts one or more Trusted Virtual Machines (TVMs); and
a peripheral device, coupled to the CPU and to an external memory,
wherein the CPU comprises a TVM-Monitor (TVMM) to:
perform management operations on the one or more TVMs;
track memory space that is allocated by the hypervisor to the peripheral device in the external memory;
monitor memory-access requests issued by the hypervisor to the memory space allocated to the peripheral device in the external memory; and
permit or deny the memory-access requests, according to a criterion.

### Claim 2 (depends on 1)

The CC apparatus according to claim 1, wherein the memory-access requests comprise Direct Memory Access (DMA) accesses to the external memory.

### Claim 3 (depends on 1)

The CC Apparatus according to claim 1, wherein, in accordance with the criterion, the TVMM is to permit only memory-access requests to the memory space allocated to the peripheral device that originate from the peripheral device, and deny memory-access requests to the memory space allocated to the peripheral device that do not originate from the peripheral device.

### Claim 4 (depends on 1)

The CC apparatus according to claim 1, wherein, in accordance with the criterion, the TVMM is to decide whether to permit or deny a memory-access request based on (i) an address in the external memory that is accessed by the memory-access request, and (ii) an identifier that is specified in the memory-access request and identifies a software that originated the memory-access request.

### Claim 5

A confidential computing (CC) apparatus, comprising:
a CPU, to run a hypervisor that hosts one or more Trusted Virtual Machines (TVMs); and
a peripheral device, coupled to the CPU and to an external memory,
wherein the CPU is further to run an Device TVM (DTVM) to:
perform management operations on the one or more TVMs;
receive from the hypervisor allocations of memory space for the peripheral device in the external memory;
allocate the memory space to the peripheral device in the external memory in response to the allocations;
monitor memory-access requests issued by the hypervisor to the memory space allocated to the peripheral device in the external memory; and
permit or deny the memory-access requests in accordance with a criterion.

### Claim 6 (depends on 5)

The CC apparatus according to claim 5, wherein the CPU is to attest the DTVM when the peripheral device accesses the external memory.

### Claim 7 (depends on 5)

The CC apparatus according to claim 5, wherein, in accordance with the criterion, the DTVM is to permit only memory-access requests to the memory space allocated to the peripheral device that originate from the peripheral device, and deny memory-access requests to the memory space allocated to the peripheral device that do not originate from the peripheral device.

### Claim 8 (depends on 5)

The CC apparatus according to claim 5, wherein, in accordance with the criterion, the DTVM is to decide whether to permit or deny a memory-access request based on (i) an address in the external memory that is accessed by the memory-access request, and (ii) an identifier that is specified in the memory-access request and identifies a software that originated the memory-access request.

### Claim 9

A confidential computing (CC) method, comprising:
running, in a CPU, a hypervisor that hosts one or more Trusted Virtual Machines (TVMs); and
using a TVM-Monitor (TVMM) running in the CPU:
performing management operations on the one or more TVMs;
tracking memory space, which is allocated in an external memory to a peripheral device by the hypervisor;
monitoring memory-access requests issued by the hypervisor to the memory space allocated to the peripheral device in the external memory; and
permitting or denying the memory-access requests, according to a criterion.

### Claim 10 (depends on 9)

The method according to claim 9, wherein the memory-access requests comprise Direct Memory Access (DMA) accesses to the external memory.

### Claim 11 (depends on 9)

The method according to claim 9, wherein permitting or denying the memory-access requests comprises permitting only memory-access requests to the memory space allocated to the peripheral device that originate from the peripheral device, and denying memory-access requests to the memory space allocated to the peripheral device that do not originate from the peripheral device.

### Claim 12 (depends on 9)

The method according to claim 9, wherein permitting or denying the memory-access requests comprises deciding whether to permit or deny a memory-access request based on (i) an address in the external memory that is accessed by the memory-access request, and (ii) an identifier that is specified in the memory-access request and identifies a software that originated the memory-access request.

### Claim 13

A confidential computing (CC) method, comprising:
running, in a CPU, a hypervisor that hosts one or more Trusted Virtual Machines (TVMs); and
using a Device TVM (DTVM) running in the CPU:
performing management operations on the one or more TVMs;
receiving from the hypervisor allocations of memory space for a peripheral device in an external memory;
allocating the memory space to the peripheral device in the external memory in response to the allocations;
monitoring memory-access requests issued by the hypervisor to the memory space allocated to the peripheral device in the external memory; and
permitting or denying the memory-access requests in accordance with a criterion.

### Claim 14 (depends on 13)

The method according to claim 13, wherein the CPU is to attest the DTVM when the peripheral device accesses the external memory.

### Claim 15 (depends on 13)

The method according to claim 13, wherein, in accordance with the criterion, the DTVM is to permit only memory-access requests to the memory space allocated to the peripheral device that originate from the peripheral device, and deny memory-access requests to the memory space allocated to the peripheral device that do not originate from the peripheral device.

### Claim 16 (depends on 13)

The method according to claim 13, wherein, in accordance with the criterion, the DTVM is to decide whether to permit or deny a memory-access request based on (i) an address in the external memory that is accessed by the memory-access request, and (ii) an identifier that is specified in the memory-access request and identifies a software that originated the memory-access request.

### Claim 17

A confidential computing (CC) method, comprising:
running, in a CPU, a hypervisor that hosts one or more Trusted Virtual Machines (TVMs); and
using a Device TVM (DTVM) or TVM-Monitor (TVMM) running in the CPU, monitoring memory-access requests issued by the hypervisor to a memory space allocated to a peripheral device in an external memory, and permitting or denying the memory-access requests, according to a criterion.
