hottub.patents
US 12,801,386 B2#3073026 Most CitedActiveUnited States (USPTO)Utility

Return from event instruction that returns from an event handler while staying in a most privileged level

0Forward Citations (#3073026 Global)
0.0/yrCitation Velocity (#3073026 Global)
0.00Citation PageRank (#3073026 Global)
14Prior Art Cited
15Claims (4 Indep. · 11 Dep.)
48Drawings / Sheets

Abstract

Techniques for flexible return and event delivery are described. As an example, an exemplary apparatus includes decoder circuitry to decode a single instruction, the single instruction to include a field for an opcode; and execution circuitry to execute the decoded single instruction according to the opcode to cause a return from an event handler while staying in a most privileged level and establish a return context that was in effect before event delivery.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 14 · Forward citations: 0.

Claims (15 — 4 Independent, 11 Dependent)

  1. Claim 1Independent Claim

    An apparatus comprising: a plurality of segment registers; decoder circuitry to decode a single instruction, the single instruction to include a field for an opcode; and execution circuitry to execute the decoded single instruction according to the opcode to cause a return from an event handler while staying in a most privileged level and establish a return context that was in effect before event delivery, wherein the execution of the decoded instruction is to not modify the segment registers and the execution circuitry is to load and check the return context from a stack and check a shadow stack to confirm validity of the return.

  2. Claim 2Depends on #1

    The apparatus of claim 1, wherein the opcode is F2 0F 01 CA.

  3. Claim 3Depends on #1

    The apparatus of claim 1, wherein the most privileged level is ring 0.

  4. Claim 4Depends on #1

    The apparatus of claim 1, wherein the execution circuitry is to establish the return context by, at least in part, loading one or more registers.

  5. Claim 5Independent Claim

    A method comprising: decoding a single instruction, the single instruction to include a field for an opcode; and executing the decoded instruction according to the opcode to cause a return from an event handler while staying in a most privileged level and establish a return context that was in effect before event delivery, wherein the executing further comprises loading and checking the return context from a stack and checking a shadow stack to confirm validity of the return.

  6. Claim 6Depends on #5

    The method of claim 5, wherein executing the decoded instruction further comprises not modifying segment registers.

  7. Claim 7Depends on #5

    The method of claim 5, wherein the opcode is F2 0F 01 CA.

  8. Claim 8Depends on #5

    The method of claim 5, wherein the most privileged level is ring 0.

  9. Claim 9Depends on #5

    The method of claim 5, wherein the executing is to establish the return context by, at least in part, loading one or more registers.

  10. Claim 10Independent Claim

    A method comprising: translating a single instruction from a first instruction set architecture into one or more instructions of a second instruction set architecture, the single instruction having a field for an opcode, the opcode indicating that execution circuitry is to cause a return from an event handler while staying in a most privileged level and establish a return context that was in effect before event delivery; decoding the one or more instructions of the second instruction set architecture; and executing the decoded one or more instructions of the second instruction set architecture to cause a return from an event handler while staying in a most privileged level and establish a return context that was in effect before event delivery, wherein the execution of the decoded instruction is to not modify segment registers, loads and checks the return context from a stack, and checks a shadow stack to confirm validity of the return.

  11. Claim 11Depends on #10

    The method of claim 10, wherein the opcode is F2 0F 01 CA.

  12. Claim 12Depends on #10

    The method of claim 10, wherein the most privileged level is ring 0.

  13. Claim 13Independent Claim

    A system comprising: a processor core including: a plurality of segment registers, decoder circuitry to decode a single instruction, the single instruction to include a field for an opcode, and execution circuitry to execute the decoded single instruction according to the opcode to cause a return from an event handler while staying in a most privileged level and establish a return context that was in effect before event delivery, wherein to execute the decoded instruction the execution circuitry is to load and check the return context from a stack and the execution circuitry is to check a shadow stack to confirm validity of the return; and memory coupled to the processor core to store the single instruction.

  14. Claim 14Depends on #13

    The system of claim 13, wherein the opcode is F2 0F 01 CA.

  15. Claim 15Depends on #13

    The system of claim 13, wherein the execution circuitry is to establish the return context by, at least in part, loading one or more registers.

Technical Overview & Description

BACKGROUND An arrival of events such as interrupts, exceptions, and system calls from an operating system (OS) typically results in a transfer of control from an interrupted context (possibly a user application) to an event handler in the OS; such a transfer is called event delivery. Following its handling of a delivered event, the OS generally transfers control back to the interrupted context, typically using an event-return instruction. Details of the operation of event delivery and event-return instructions are defined by a processor's instruction set architecture (ISA). BRIEF DESCRIPTION OF DRAWINGS The present disclosure will be described with reference to the drawings. FIG. 1 is a block diagram of an exemplary computer system. FIG. 2 illustrates an exemplary flexible return and event delivery (FRED) configuration model specific register (MSR). FIG. 3 illustrates an exemplary FRED shadow stack pointer (SSP) MSR. FIG. 4 illustrates an example configuration before event delivery. FIG. 5 illustrates the example configuration after event delivery. FIG. 6 illustrates exemplary elements of OS configuration. FIG. 7 illustrates an exemplary method for FRED event delivery. FIGS. 8 (A) -(E) illustrate exemplary pseudocode for FRED event delivery. FIG. 9 illustrates an exemplary handling of an event return to supervisor (ERETS) instruction. FIG. 10 illustrates an exemplary execution of an ERETS instruction. FIGS. 11 (A) -(B) illustrate exemplary pseudocode for an execution of ERETS. FIG.

Cited By — Indexed Forward Citations (0 of 0 total)

No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.

Non-Patent Literature (9)

  • Intel,
  • “
  • Flexible Return and Event Delivery (FRED) Draft Specification
  • ”
  • , Revision 1.0, Mar. 13, 2021, 47 pages.
  • Search Report and Office Action, NL App. No. 2030804, Feb. 27, 2023, 9 pages.
  • International Preliminary Report on Patentability , PCT App. No. PCT/US22/18353, Sep. 14, 2023, 09 pages.
  • International Search Report and Written Opinion, PCT App. No. PCT/US2022/018353, Jun. 8, 2022, 12 pages.
  • Extended European search report and Search Opinion , EP App. No. 22763906.9, Feb. 13, 2025, 10 pages.