cloud-hypervisor/vm-virtio/src/vsock
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
..
csm vm-virtio: Add connection handshake to vsock 2019-12-19 09:48:17 +01:00
unix vm-virtio: Add connection handshake to vsock 2019-12-19 09:48:17 +01:00
device.rs vm-virtio: Modify VirtioInterrupt callback into a trait 2020-01-17 23:43:45 +01:00
mod.rs vm-virtio: Modify VirtioInterrupt callback into a trait 2020-01-17 23:43:45 +01:00
packet.rs vsock: vhost_user: vfio: Fix potential host memory overflow 2019-12-12 22:15:50 +01:00