# US 2021/0173651 A1 · Dynamic Designation of Instructions as Sensitive

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

- Number: US 2021/0173651 A1
- Document ID: US20210173651A1
- Status: Published application
- Kind: A1
- Application number: 17/081,099
- 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/US20210173651A1

## CPC

- G06F 9/30156: {Special purpose encoding of instructions, e.g. Gray coding}
- G06F 9/30189: {according to execution mode, e.g. mode flag}
- G06F 9/3001: {Arithmetic instructions}
- G06F 9/30036: {Instructions to perform operations on packed data, e.g. vector, tile or matrix operations}
- G06F 9/3009: {Thread control instructions}
- G06F 9/30101: {Special purpose registers}
- G06F 9/30152: {Determining start or end of instruction; determining instruction length}
- G06F 9/38: Concurrent instruction execution, e.g. pipeline or look ahead
- G06F 9/3836: {Instruction issuing, e.g. dynamic instruction scheduling or out of order instruction execution}
- G06F 9/3851: {from multiple instruction streams, e.g. multistreaming}
- G06F 9/3854: {Instruction completion, e.g. retiring, committing or graduating}
- G06F 9/3867: {using instruction pipelines}
- G06F 9/45533: {Hypervisors; Virtual machine monitors}
- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 21/556: {involving covert channels, i.e. data leakage between processes (inhibiting the analysis of circuitry or operation with measures against power attack G06F21/755)}
- G06F 9/455: Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F 2209/484: Precedence
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Described herein are systems and methods for dynamic designation of instructions as sensitive. For example, some methods include detecting that a first instruction of a first process has been designated as a sensitive instruction; checking whether a sensitive handling enable indicator in a process state register storing a state of the first process is enabled; responsive to detection of the sensitive instruction and enablement of the sensitive handling enable indicator, invoking a constraint for execution of the first instruction; executing the first instruction subject to the constraint; and executing a second instruction of the first process without the constraint.

## Claims

### Claim 1

An integrated circuit for executing instructions, comprising:
a register that includes a sensitive handling enable indicator; and
a processor core configured to:
detect that a first instruction of a first process has been designated as a sensitive instruction;
check whether the sensitive handling enable indicator is enabled;
responsive to detection of the sensitive instruction and enablement of the sensitive handling enable indicator, invoke a constraint for execution of the first instruction;
execute the first instruction subject to the constraint; and
execute a second instruction of the first process without the constraint.

### Claim 2 (depends on 1)

The integrated circuit of claim 1, in which the first instruction includes a sensitive bit, and the processor core is configured to detect that the first instruction has been designated as a sensitive instruction by evaluating the sensitive bit of the first instruction.

### Claim 3 (depends on 1)

The integrated circuit of claim 1, in which the first instruction is preceded by a sensitive-start instruction and followed by a sensitive-stop instruction in a sequence of instructions of the first process, and the processor core is configured to detect that the first instruction has been designated as a sensitive instruction based on detection of the sensitive-start instruction.

### Claim 4 (depends on 3)

The integrated circuit of claim 3, in which the first instruction is a member of a subsequence of instructions that is immediately preceded by the sensitive-start instruction and immediately followed by the sensitive-stop instruction in the sequence of instructions of the first process, and the processor core is configured to execute all members of the subsequence of instructions subject to the constraint.

### Claim 5 (depends on 1)

The integrated circuit of claim 1, in which the processor core is configured to update a value of the sensitive handling enable indicator based on an instruction of a second process that has a higher priority than the first process.

### Claim 6 (depends on 5)

The integrated circuit of claim 5, in which the second process is a hypervisor process.

### Claim 7 (depends on 5)

The integrated circuit of claim 5, in which the second process is an operating system process.

### Claim 8 (depends on 5)

The integrated circuit of claim 5, in which the processor core is configured to:
detect that a third instruction of a third process has been designated as a sensitive instruction;
check whether the sensitive handling enable indicator is enabled; and
responsive to disablement of the sensitive handling enable indicator, execute the third instruction of the third process without the constraint.

### Claim 9 (depends on 1)

The integrated circuit of claim 1, comprising:
a processor pipeline configured to execute instructions from two or more threads in parallel using execution units of the processor pipeline; and
in which the constraint prevents parallel execution of instructions from other threads while the first instruction is being executed by an execution unit of the processor pipeline.

### Claim 10 (depends on 1)

The integrated circuit of claim 1, in which the register is a process state register storing a state of the first process.

### Claim 11 (depends on 1)

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

### Claim 12 (depends on 1)

The integrated circuit of claim 1, in which the sensitive handling enable indicator consists of a single bit.

### Claim 13

A method comprising:
detecting that a first instruction of a first process has been designated as a sensitive instruction;
checking whether a sensitive handling enable indicator in a process state register storing a state of the first process is enabled;
responsive to detection of the sensitive instruction and enablement of the sensitive handling enable indicator, invoking a constraint for execution of the first instruction;
executing the first instruction subject to the constraint; and
executing a second instruction of the first process without the constraint.

### Claim 14 (depends on 13)

The method of claim 13, in which detecting that the first instruction has been designated as a sensitive instruction comprises:
evaluating a sensitive bit included in the first instruction.

### Claim 15 (depends on 13)

The method of claim 13, in which the first instruction is preceded by a sensitive-start instruction and followed by a sensitive-stop instruction in a sequence of instructions of the first process, and the method comprises:
detecting that the first instruction has been designated as a sensitive instruction based on detection of the sensitive-start instruction.

### Claim 16 (depends on 15)

The method of claim 15, in which the first instruction is a member of a subsequence of instructions that is immediately preceded by the sensitive-start instruction and immediately followed by the sensitive-stop instruction in the sequence of instructions of the first process, and the method comprises:
executing all members of the subsequence of instructions subject to the constraint.

### Claim 17 (depends on 13)

The method of claim 13, comprising:
updating a value of the sensitive handling enable indicator based on an instruction of a second process that has a higher priority than the first process.

### Claim 18 (depends on 17)

The method of claim 17, in which the second process is a hypervisor process.

### Claim 19 (depends on 17)

The method of claim 17, in which the second process is an operating system process.

### Claim 20 (depends on 17)

The method of claim 17, comprising:
detecting that a third instruction of a third process has been designated as a sensitive instruction;
checking whether a sensitive handling enable indicator associated with the third process is enabled; and
responsive to disablement of the sensitive handling enable indicator associated with the third process, executing the third instruction of the third process without the constraint.

### Claim 21 (depends on 13)

The method of claim 13, in which the constraint prevents parallel execution of instructions from other threads while the first instruction is being executed by an execution unit of a processor pipeline, wherein the processor pipeline is configured to execute instructions from two or more threads in parallel using execution units of the processor pipeline.

### Claim 22 (depends on 13)

The method of claim 13, in which the first instruction is a cryptographic instruction.

### Claim 23 (depends on 14)

The method of claim 14, in which the sensitive handling enable indicator consists of a single bit.

### Claim 24

An integrated circuit for executing instructions, comprising:
a register that includes a sensitive handling enable indicator;
a processor core configured to:
fetch a first instruction, wherein the instruction includes a sensitive bit that indicates the first instruction is sensitive;
based on the sensitive bit and a current value of the sensitive handling enable indicator, invoke a constraint for execution of the first instruction;
execute the first instruction subject to the constraint; and
execute a second instruction without the constraint.

### Claim 25

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;
a register that includes a sensitive handling enable indicator; and
a thread hazard circuitry configured to detect that an instruction of a first thread has been designated as a sensitive instruction, check whether the sensitive handling enable indicator is enabled, and, responsive to detection of the sensitive instruction and enablement of the sensitive handling enable indicator, block instructions of threads other than the first thread from being executed using execution units of processor pipeline while the sensitive instruction is being executed by an execution unit of the processor pipeline.

### Claim 26

An integrated circuit for executing instructions, comprising:
means for storing a sensitive handling enable indicator;
means for detecting that a first instruction of a first process has been designated as a sensitive instruction, checking whether the sensitive handling enable indicator is enabled, and, responsive to detection of the sensitive instruction and enablement of the sensitive handling enable indicator, invoking a constraint for execution of the first instruction; and
means for executing the first instruction subject to the constraint and executing a second instruction of the first process without the constraint.

### Claim 27 (depends on 26)

The integrated circuit of claim 26, comprising:
means for updating a value of the sensitive handling enable indicator based on an instruction of a second process that has a higher priority than the first process.

### Claim 28 (depends on 26)

The integrated circuit of claim 26, comprising:
a processor pipeline configured to execute instructions from two or more threads in parallel using execution units of the processor pipeline; and
in which the constraint prevents parallel execution of instructions from other threads while the first instruction is being executed by an execution unit of the processor pipeline.

### Claim 29 (depends on 26)

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