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:
Rob Bradford
2026-06-01 12:57:22 +01:00
parent 2bcacbe19d
commit 3a1cf6e740
18 changed files with 35 additions and 32 deletions
+2 -2
View File
@@ -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")]