vmm: streamline migration related API error variants

Receiving a migration happens inside the VMM thread, which blocks the
API until a migration was received. On the other hand, sending a
migration is actually just a dispatch operation. We adjust the wording
to improve clarity of the error messages.

On-behalf-of: SAP philipp.schuster@sap.com
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
This commit is contained in:
Philipp Schuster
2026-06-29 14:14:17 +02:00
committed by Bo Chen
parent f8d0186a26
commit 19e67a2c7e

View File

@@ -199,12 +199,13 @@ pub enum ApiError {
#[error("The vsock device could not be added to the VM")]
VmAddVsock(#[source] VmError),
/// Error starting migration receiver
#[error("Error starting migration receiver")]
/// Error while receiving a migration, either because the receiver could not
/// be started or because the migration failed mid-operation.
#[error("Error receiving migration")]
VmReceiveMigration(#[source] MigratableError),
/// Error starting migration sender
#[error("Error starting migration sender")]
/// Error while dispatching the migration worker (thread).
#[error("Error dispatching the migration worker")]
VmSendMigration(#[source] MigratableError),
/// Error triggering power button