mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Add two explicit disconnected-backend error paths before wiring them into the call sites. MigratableError::DeviceDisconnected is the lifecycle sentinel for operations that were skipped because a component is already known to be disconnected. It lets the caller log and continue without treating it as a VMM-fatal condition. Error::BackendDisconnected is the vhost-user-local error used when VhostUserCommon refuses to call a backend after its disconnected flag is set. The transport classifier treats socket close/reset/EOF and vhost-user partial-message/disconnected cases as transport loss, while backend NACKs, invalid protocol state, and retry-able socket errors remain ordinary operation failures. Signed-off-by: Dylan Reid <dgreid@fb.com>