cloud-hypervisor/hypervisor
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
..
src hypervisor: emulator: use static mapping to dispatch emulation 2020-12-02 19:45:36 +01:00
Cargo.toml hypervisor: emulator: Format instructions on error paths 2020-12-01 11:13:54 +01:00