cloud-hypervisor/vm-virtio/src/vhost_user
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
..
blk.rs vm-virtio: Modify VirtioInterrupt callback into a trait 2020-01-17 23:43:45 +01:00
fs.rs vm-virtio: Modify VirtioInterrupt callback into a trait 2020-01-17 23:43:45 +01:00
handler.rs vm-virtio: Modify VirtioInterrupt callback into a trait 2020-01-17 23:43:45 +01:00
mod.rs vm-virtio: vhost-user-blk: Add support for reset 2019-09-20 15:56:51 +02:00
net.rs vm-virtio: Modify VirtioInterrupt callback into a trait 2020-01-17 23:43:45 +01:00
vu_common_ctrl.rs vsock: vhost_user: vfio: Fix potential host memory overflow 2019-12-12 22:15:50 +01:00