cloud-hypervisor/hypervisor
Samuel Ortiz 546778ebfb hypervisor: x86: Add a CpuStateManager interface
For efficiently emulating x86 instructions, we need to build and pass a
CPU state copy/reference to instruction emulation handlers. Those handlers
will typically modify the CPU state and let the caller commit those
changes back through the PlatformEmulator trait set_cpu_state method.

Hypervisors typically have internal CPU state structures, that maps back
to the correspinding kernel APIs. By implementing the CpuState trait,
instruction emulators will be able to directly work on CPU state
instances that are directly consumable by the underlying hypervisor and
its kernel APIs.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2020-11-25 17:02:11 +01:00
..
src hypervisor: x86: Add a CpuStateManager interface 2020-11-25 17:02:11 +01:00
Cargo.toml hypervisor: x86: Add a CpuStateManager interface 2020-11-25 17:02:11 +01:00