Flexible return and event delivery
AssigneeIntel Corporation
InventorsGilbert Neiger, H. Peter Anvin, Vedvyas Shanbhogue, Deepak Gupta
Life of this patent
Estimating the term…
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.
Claims46
An apparatus comprising:
- 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.
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.
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.
A system comprising:
- a processor core including:
- 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;
- and
- memory coupled to the processor core to store the single instruction.
An apparatus comprising:
- decoder circuitry to decode a single instruction, the single instruction to include a field for an opcode;
- and
- execution circuitry to execute the decoded instruction according to the opcode to cause a return from an event handler while transitioning to a least privileged ring and establishing the return context that was in effect before event delivery.
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 transitioning to a least privileged ring and establishing the return context that was in effect before event delivery.
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 transitioning to a least 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 transitioning to a least privileged level and establish a return context that was in effect before event delivery.
A system comprising:
- a processor core including:
- decoder circuitry to decode a single instruction, the single instruction to include a field for an opcode, and
- execution circuitry to execute the decoded instruction according to the opcode to cause a return from an event handler while transitioning to a least privileged ring and establishing the return context that was in effect before event delivery;
- and
- memory coupled to the processor core to store the single instruction.
An apparatus comprising:
- event delivery circuitry to perform one or more operations upon an event delivery of an exception or interrupt to an event handler, wherein the one or more operations include an establishment of a new context of an event handler in a first privilege level;
- and
- one or more model specific registers (MSRs) to be utilized by the event delivery circuitry to perform the one or more operations including one or more of:
- a configuration MSR wherein a first proper subset of bits of the configuration register identify a stack level to use for markable interrupts that are delivered while current privilege level has a first state, a second proper subset of bits of the configuration register indicate the current privilege level state, a third proper subset of bits of the configuration register identify an amount of cachelines by which event delivery decrements a stack pointer when not changing stacks, and a fourth proper subset of bits of the configuration register contain the upper bits of the linear address of a page in memory containing event handlers;
- a plurality of regular stack pointer MSRs;
- a stack levels (STKLVLS) MSR;
- and
- a plurality of shadow stack pointer MSRs.
Dependencies are inferred from the claim text.