# US 2021/0342466 A1 · Secure modular devices

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

- Number: US 2021/0342466 A1
- Document ID: US20210342466A1
- Status: Published application
- Kind: A1
- Application number: 16/863,250
- Filed: 2020-04-30
- Published: 2021-11-04
- Earliest claimed: 2020-04-30
- Assignees: Red Hat, Inc.
- Applicants: Red Hat, Inc.
- Inventors: Michael Tsirkin; Sergio Lopez Pascual
- Web page: https://patentgrep.com/patent/US20210342466A1

## CPC

- G06F 21/606: {by securing the transmission between two devices or processes}
- G06F 21/6218: {to a system of files or objects, e.g. local or distributed file system or database}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 12/1027: using associative or pseudo-associative address translation means, e.g. translation look-aside buffer [TLB]
- G06F 12/145: {the protection being virtual, e.g. for virtual blocks or segments before a translation mechanism}
- G06F 21/53: by executing in a restricted environment, e.g. sandbox or secure virtual machine
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F 2009/45587: {Isolation or security of virtual machine instances}
- G06F 2212/1052: Security improvement
- G06F 2212/151: Emulated environment, e.g. virtual machine
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system includes a memory and a processor. The memory is in communication with the processor and configured to initialize a secure interface configured to provide access to a virtual machine (VM) from a device, where the VM is associated with a level of security. A buffer is allocated and associated with the secure interface, where the level of security of the VM indicates whether the device has access to guest memory of the VM via the buffer. The buffer is then provided to the device. Inputs/outputs (I/Os) are sent between the device and the VM using the secure interface.

## Claims

### Claim 1

A method, comprising:
initializing a secure interface configured to provide access to a virtual machine (VM) from a device, wherein the VM is associated with a level of security;
allocating a buffer associated with the secure interface, wherein the level of security indicates whether the device has access to guest memory of the VM via the buffer;
providing the buffer to the device; and
sending input/outputs (I/Os) between the device and the VM via the secure interface.

### Claim 2 (depends on 1)

The method of claim 1, wherein the secure interface is a Software Input Output Translation Lookaside Buffer (SWIOTLB).

### Claim 3 (depends on 1)

The method of claim 1, wherein, when the level of security of the VM is low, the buffer is allocated from a portion of guest memory of the VM.

### Claim 4 (depends on 1)

The method of claim 1, wherein, when the device is a trusted device, the buffer is a total amount of guest memory of the VM.

### Claim 5 (depends on 1)

The method of claim 1, wherein, when the level of security of the VM is high, the buffer is allocated from host memory.

### Claim 6 (depends on 1)

The method of claim 1, wherein allocating comprises:
requesting the buffer from a hypervisor, wherein the request includes the level of security;
allocating, via the hypervisor, the buffer from a portion of host memory; and
configuring security of the buffer.

### Claim 7 (depends on 6)

The method of claim 6, wherein configuring security of the buffer comprises setting permissions of the buffer.

### Claim 8

A system, comprising:
a memory; and
a processor in communication with the memory, wherein the processor is configured to perform:
initializing a secure interface configured to provide access to a virtual machine (VM) from a device, wherein the VM is associated with a level of security;
allocating a buffer associated with the secure interface, wherein the level of security indicates whether the device has access to guest memory of the VM via the buffer;
providing the buffer to the device; and
sending input/outputs (I/Os) between the device and the VM via the secure interface.

### Claim 9 (depends on 8)

The system of claim 8, wherein the secure interface is a Software Input Output Translation Lookaside Buffer (SWIOTLB).

### Claim 10 (depends on 8)

The system of claim 8, wherein, when the level of security of the VM is low, the buffer is allocated from a portion of guest memory of the VM.

### Claim 11 (depends on 8)

The system of claim 8, wherein the device is a data storage device.

### Claim 12 (depends on 8)

The system of claim 8, wherein allocating comprises:
requesting the buffer from a hypervisor, wherein the request includes the level of security;
allocating, via the hypervisor, the buffer from a portion of host memory; and
configuring security of the buffer based on the level of security.

### Claim 13 (depends on 12)

The system of claim 12, wherein configuring security of the buffer comprises setting permissions of the buffer.

### Claim 14

A non-transitory machine readable medium storing code, which when executed by a processor is configured to:
initialize a secure interface configured to provide access to a virtual machine (VM) from a device, wherein the VM is associated with a level of security;
allocating a buffer associated with the secure interface, wherein the level of security indicates whether the device has access to guest memory of the VM via the buffer;
provide the buffer to the device; and
sending input/outputs (I/Os) between the device and the VM via the secure interface.

### Claim 15 (depends on 14)

The non-transitory machine readable medium of claim 14, wherein the secure interface is a Software Input Output Translation Lookaside Buffer (SWIOTLB).

### Claim 16 (depends on 14)

The non-transitory machine readable medium of claim 14, wherein, when the level of security of the VM is low, the buffer is allocated from a portion of guest memory of the VM.

### Claim 17 (depends on 14)

The non-transitory machine readable medium of claim 14, wherein, when the device is a trusted device, the buffer is a total amount of guest memory of the VM.

### Claim 18 (depends on 14)

The non-transitory machine readable medium of claim 14, wherein, when the level of security of the VM is high, the buffer is allocated from host memory.

### Claim 19 (depends on 14)

The non-transitory machine readable medium of claim 14, wherein allocating comprises:
requesting the buffer from a hypervisor, wherein the request includes the level of security;
allocating, via the hypervisor, the buffer from a portion of host memory; and
configuring security of the buffer.

### Claim 20 (depends on 19)

The non-transitory machine readable medium of claim 19, wherein configuring security of the buffer comprises setting permissions of the buffer.
