mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
virtio-devices: Remove panic when duplicating activate EventFds
Replace the (unlikely) panic when duplicating the EventFds with a propagated error. Signed-off-by: Rob Bradford <rbradford@meta.com>
This commit is contained in:
@@ -108,8 +108,8 @@ const VIRTIO_F_NOTIFICATION_DATA: u32 = 38;
|
||||
pub enum ActivateError {
|
||||
#[error("Failed to activate virtio device")]
|
||||
BadActivate,
|
||||
#[error("Failed to clone exit event fd")]
|
||||
CloneExitEventFd(#[source] std::io::Error),
|
||||
#[error("Failed to clone EventFd")]
|
||||
CloneEventFd(#[source] std::io::Error),
|
||||
#[error("Failed to spawn thread")]
|
||||
ThreadSpawn(#[source] std::io::Error),
|
||||
#[error("Failed to setup vhost-user-fs daemon")]
|
||||
|
||||
Reference in New Issue
Block a user