mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
virtio-devices: Introduce EpollHelper
This is a helper for implementing the worker thread for virtio devices and in particular handles special behaviour for pause and kill events. The device specific event handling (for the queues themselves) is delegated to a method invoked on a new EpollHelperHandler trait. This method is passed the event as well as the EpollHelper so that it can operate on the handler in order to manage events itself (required for virtio-net.) Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
@@ -32,6 +32,7 @@ mod device;
|
||||
pub mod balloon;
|
||||
pub mod block;
|
||||
mod console;
|
||||
pub mod epoll_helper;
|
||||
mod iommu;
|
||||
pub mod mem;
|
||||
pub mod net;
|
||||
@@ -46,6 +47,7 @@ pub use self::balloon::*;
|
||||
pub use self::block::*;
|
||||
pub use self::console::*;
|
||||
pub use self::device::*;
|
||||
pub use self::epoll_helper::*;
|
||||
pub use self::iommu::*;
|
||||
pub use self::mem::*;
|
||||
pub use self::net::*;
|
||||
|
||||
Reference in New Issue
Block a user