Apparatus and method for managing unsupported instruction set architecture (ISA) features in a virtualized environment
Abstract
An apparatus and method for supporting deprecated instructions. For example, one embodiment of a processor comprises: A processor comprising: a plurality of cores, each core comprising a current microarchitecture to execute instructions and process data, the current microarchitecture including hardware support for virtual execution environment comprising a hypervisor running at a first privilege level and one or more virtual machines each running at a second privilege level, the microarchitecture further including partial hardware support for executing deprecated instructions associated with a prior microarchitecture; at least one core of the plurality of cores comprising: a decoder to decode the instructions, the decoder to specify one or more microoperations corresponding to each of the instructions; execution circuitry to execute the corresponding microoperations; wherein either a first type or a second type of virtual machine exit is to be performed responsive to detecting a deprecated instruction in a first virtual machine, wherein responsive to the first type of virtual machine exit, the hypervisor is to perform a first emulation of the prior microarchitecture without reliance on the partial hardware support, and wherein responsive to the second type of virtual machine exit, the hypervisor is to perform a second emulation of the prior microarchitecture relying on the partial hardware support.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 10 · Forward citations: 0.
Claims (8 — 1 Independent, 7 Dependent)
- Claim 1Independent Claim
A processor comprising: a plurality of cores, each core comprising a current microarchitecture to execute instructions and process data, the current microarchitecture including hardware support for virtual execution environment comprising a hypervisor running at a first privilege level and one or more virtual machines each running at a second privilege level, the microarchitecture further including partial hardware support for executing deprecated instructions associated with a prior microarchitecture; at least one core of the plurality of cores comprising: a decoder to decode the instructions, the decoder to specify one or more microoperations corresponding to each of the instructions; execution circuitry to execute the corresponding microoperations; wherein either a first type or a second type of virtual machine exit is to be performed responsive to detecting a deprecated instruction in a first virtual machine, wherein responsive to the first type of virtual machine exit, the hypervi
- Claim 2Depends on #1
The processor of claim 1 wherein the partial hardware support comprises microcode including one or more emulation microoperations to execute the deprecated instruction on the execution circuitry.
- Claim 3Depends on #1
The processor of claim 1 wherein the first type of virtual machine exit comprises or is to be triggered by a first type of exception.
- Claim 4Depends on #2
The processor of claim 2 wherein the hardware support comprises one or more microarchitectural components including one or more registers for storing state values and/or execution circuits for executing the emulation microoperations.
- Claim 5Depends on #4
The processor of claim 4 wherein the second type of virtual machine exit is to specify parameters associated with the deprecated instruction, the parameters to be used to execute the emulation microoperations.
- Claim 6Depends on #5
The processor of claim 5 wherein upon completion of the first emulation or the second emulation, the hypervisor is to provide results and return control to the first virtual machine.
- Claim 7Depends on #3
The processor of claim 3 wherein the first type of exception comprises an invalid or undefined opcode exception.
- Claim 8Depends on #7
The processor of claim 7 wherein the second type of virtual machine exit comprises or is to be triggered by a second type of exception, the second type of exception to specify parameters associated with the deprecated instruction.
Technical Overview & Description
BACKGROUND Field of the Invention The embodiments of the invention relate generally to the field of computer processors. More particularly, the embodiments relate to an apparatus and method for managing unsupported/deprecated features of an instruction set architecture (ISA) in a virtualized environment. Description of the Related Art Deprecating ISA features is desirable for a variety of reasons including, but not limited to, reducing attack surfaces, simplifying the validation space, and reducing implementation efforts. However, existing software will no longer work on a new instruction set architecture (ISA) if the software uses these deprecated features. Thus, deprecating ISA features can be a challenging task. BRIEF DESCRIPTION OF THE DRAWINGS A better understanding of the present invention can be obtained from the following detailed description in conjunction with the following drawings, in which: A better understanding of the present invention can be obtained from the following detailed description in conjunction with the following drawings, in which: FIG. 1 illustrates an example computer system architecture; FIG. 2 illustrates a processor comprising a plurality of cores; FIG. 3 A illustrates a plurality of stages of a processing pipeline; FIG. 3 B illustrates details of one embodiment of a core; FIG. 4 illustrates execution circuitry in accordance with one embodiment; FIG. 5 illustrates one embodiment of a register architecture; FIG. 6 illustrates one example of an instruction format; FIG. 7 illustrates addressing techniques in accordance with one embodiment; FIG. 8 illustrates one embodiment of an instruction prefix; FIGS. 9 A-D
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.
References Cited — Backward Prior Art (10)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (2)
- International Preliminary Report on Patentability, PCT App. No. PCT/US2022/021770, Oct. 5, 2023, 5 pages.
- International Search Report and Written Opinion, PCT App. No. PCT/US2022/021770, Jul. 7, 2022, 8 pages.