# US 2021/0173657 A1 · Pipelines for Secure Multithread Execution

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

- Number: US 2021/0173657 A1
- Document ID: US20210173657A1
- Status: Published application
- Kind: A1
- Application number: 17/081,074
- Filed: 2020-10-27
- Published: 2021-06-10
- Earliest claimed: 2019-12-05
- Assignees: Marvell Asia Pte Ltd
- Applicants: Marvell Asia Pte, Ltd.
- Inventors: Shubhendu Sekhar Mukherjee
- Web page: https://patentgrep.com/patent/US20210173657A1

## CPC

- G06F 9/3836: {Instruction issuing, e.g. dynamic instruction scheduling or out of order instruction execution}
- G06F 9/30156: {Special purpose encoding of instructions, e.g. Gray coding}
- G06F 9/38: Concurrent instruction execution, e.g. pipeline or look ahead
- G06F 9/3851: {from multiple instruction streams, e.g. multistreaming}
- G06F 9/3854: {Instruction completion, e.g. retiring, committing or graduating}
- G06F 9/485: {Task life-cycle, e.g. stopping, restarting, resuming execution (G06F9/4881 takes precedence)}
- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G09C 1/00: Apparatus or methods whereby a given sequence of signs, e.g. an intelligible text, is transformed into an unintelligible sequence of signs by transposing the signs or groups of signs or by replacing them by others according to a predetermined system (cryptographic typewriters G09C3/00)
- H04L 9/0631: {Substitution permutation network [SPN], i.e. cipher composed of a number of stages or rounds each involving linear and nonlinear transformations, e.g. AES algorithms}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G09C: CIPHERING OR DECIPHERING APPARATUS FOR CRYPTOGRAPHIC OR OTHER PURPOSES INVOLVING THE NEED FOR SECRECY
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Described herein are systems and methods for secure multithread execution. For example, some methods include fetching an instruction of a first thread from a memory into a processor pipeline that is configured to execute instructions from two or more threads in parallel using execution units of the processor pipeline; detecting that the instruction has been designated as a sensitive instruction; responsive to detection of the sensitive instruction, disabling execution of instructions of threads other than the first thread in the processor pipeline during execution of the sensitive instruction by an execution unit of the processor pipeline; executing the sensitive instruction using an execution unit of the processor pipeline; and, responsive to completion of execution of the sensitive instruction, enabling execution of instructions of threads other than the first thread in the processor pipeline.

## Claims

### Claim 1

An integrated circuit for executing instructions, comprising:
a processor pipeline configured to execute instructions from two or more threads in parallel using execution units of the processor pipeline; and
a thread hazard circuitry configured to detect that an instruction of a first thread has been designated as a sensitive instruction, and, responsive to detection of the sensitive instruction, block instructions of threads other than the first thread from being executed using execution units of the processor pipeline while the sensitive instruction is being executed by an execution unit of the processor pipeline.

### Claim 2 (depends on 1)

The integrated circuit of claim 1, in which the thread hazard circuitry is configured to detect the sensitive instruction based on an opcode of the instruction.

### Claim 3 (depends on 1)

The integrated circuit of claim 1, in which the thread hazard circuitry is configured to detect the sensitive instruction based on a flag included in the instruction.

### Claim 4 (depends on 1)

The integrated circuit of claim 1, in which the thread hazard circuitry is configured to detect the sensitive instruction based on a flag in an architectural register.

### Claim 5 (depends on 1)

The integrated circuit of claim 1, in which the thread hazard circuitry is part of an issue circuitry of the processor pipeline.

### Claim 6 (depends on 1)

The integrated circuit of claim 1, in which the thread hazard circuitry is part of a dispatch circuitry of the processor pipeline.

### Claim 7 (depends on 1)

The integrated circuit of claim 1, in which the sensitive instruction is a cryptographic instruction.

### Claim 8 (depends on 1)

The integrated circuit of claim 1, in which the sensitive instruction is an AES single round decryption instruction.

### Claim 9 (depends on 1)

The integrated circuit of claim 1, in which the sensitive instruction is an AES single round encryption instruction.

### Claim 10 (depends on 1)

The integrated circuit of claim 1, in which the processor pipeline is included in a simultaneous multithreading processor.

### Claim 11

A method comprising:
fetching an instruction of a first thread from a memory into a processor pipeline that is configured to execute instructions from two or more threads in parallel using execution units of the processor pipeline;
detecting that the instruction has been designated as a sensitive instruction;
responsive to detection of the sensitive instruction, disabling execution of instructions of threads other than the first thread in the processor pipeline during execution of the sensitive instruction by an execution unit of the processor pipeline;
executing the sensitive instruction using an execution unit of the processor pipeline; and
responsive to completion of execution of the sensitive instruction, enabling execution of instructions of threads other than the first thread in the processor pipeline.

### Claim 12 (depends on 11)

The method of claim 11, comprising:
executing, using execution units of the processing pipeline, an instruction of a second thread in parallel with a second instruction of the first thread.

### Claim 13 (depends on 11)

The method of claim 11, in which the sensitive instruction is detected based on an opcode of the instruction.

### Claim 14 (depends on 11)

The method of claim 11, in which the sensitive instruction is detected based on a flag included in the instruction.

### Claim 15 (depends on 11)

The method of claim 11, in which the sensitive instruction is detected based on a flag in an architectural register.

### Claim 16 (depends on 11)

The method of claim 11, in which disabling execution of instructions of threads other than the first thread in the processor pipeline comprises blocking issue of instructions of threads other than the first thread.

### Claim 17 (depends on 11)

The method of claim 11, in which disabling execution of instructions of threads other than the first thread in the processor pipeline comprises blocking dispatch of instructions of threads other than the first thread.

### Claim 18 (depends on 11)

The method of claim 11, in which the sensitive instruction is a cryptographic instruction.

### Claim 19 (depends on 11)

The method of claim 11, in which the sensitive instruction is an AES single round decryption instruction.

### Claim 20 (depends on 11)

The method of claim 11, in which the sensitive instruction is an AES single round encryption instruction.

### Claim 21 (depends on 11)

The method of claim 11, in which the processor pipeline is included in a simultaneous multithreading processor.

### Claim 22

An integrated circuit for executing instructions, comprising:
a simultaneous multithreading processor core including a processor pipeline configured to execute instructions from two or more threads in parallel using execution units of the processor pipeline; and
a thread hazard circuitry configured to detect that an instruction of a first thread has been designated as a sensitive instruction, and, responsive to detection of the sensitive instruction, block instructions of a second thread from being executed using execution units of the processor pipeline during one or more clock cycles during which the sensitive instruction is being executed by an execution unit of the processor pipeline.

### Claim 23

An integrated circuit for executing instructions, comprising:
a processor pipeline configured to execute instructions from two or more threads in parallel using execution units of the processor pipeline; and
means for detecting that an instruction of a first thread has been designated as a sensitive instruction, and, responsive to detection of the sensitive instruction, blocking instructions of threads other than the first thread from being executed using execution units of the processor pipeline while the sensitive instruction is being executed by an execution unit of the processor pipeline.

### Claim 24 (depends on 23)

The integrated circuit of claim 23, in which the sensitive instruction is a cryptographic instruction.

### Claim 25 (depends on 23)

The integrated circuit of claim 23, in which the processor pipeline is included in a simultaneous multithreading processor.
