cloud-hypervisor/vm-virtio
Sebastien Boeuf c396baca46 vm-virtio: Modify VirtioInterrupt callback into a trait
Callbacks are not the most Rust idiomatic way of programming. The right
way is to use a Trait to provide multiple implementation of the same
interface.

Additionally, a Trait will allow for multiple functions to be defined
while using callbacks means that a new callback must be introduced for
each new function we want to add.

For these two reasons, the current commit modifies the existing
VirtioInterrupt callback into a Trait of the same name.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2020-01-17 23:43:45 +01:00
..
src vm-virtio: Modify VirtioInterrupt callback into a trait 2020-01-17 23:43:45 +01:00
Cargo.toml msix: Add gsi_msi_routes to MsixConfig 2020-01-17 23:43:45 +01:00