mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
committed by
Bo Chen
parent
f8d0186a26
commit
19e67a2c7e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user