cloud-hypervisor/hypervisor/src/arch/x86
Wei Liu ab89b48143 hypervisor: emulator: use static mapping to dispatch emulation
The mapping between code and its handler is static. We can drop the
HashMap in favour of a static match expression.

This has two benefits:
1. No more memory allocation and deallocation for the HashMap.
2. Shorter look-up time.

Signed-off-by: Wei Liu <liuwe@microsoft.com>
2020-12-02 19:45:36 +01:00
..
emulator hypervisor: emulator: use static mapping to dispatch emulation 2020-12-02 19:45:36 +01:00
gdt.rs arch: Move the gdt module to the hypervisor crate 2020-11-25 17:02:11 +01:00
mod.rs hypervisor: x86: Add a SegmentRegistorOps trait 2020-11-30 13:09:19 +00:00
msr_index.rs hypervisor: kvm: Implement vCPU state method 2020-06-22 15:03:15 +02:00
regs.rs hypervisor: Start moving register definitions to the hypervisor crate 2020-11-30 13:09:19 +00:00