From aa629a1485cc984d83fa6055e584ada1c9f03638 Mon Sep 17 00:00:00 2001 From: Sebastian Eydam Date: Wed, 11 Feb 2026 16:20:27 +0100 Subject: [PATCH] vmm: make aborted migrations on receiver side return an error On the receiver side, a live migration with status "aborted" does not return an error. Thus, management software will think that the live migration was successful (from just looking at the API response). This is not expected behaviour. On-behalf-of: SAP sebastian.eydam@sap.com Signed-off-by: Sebastian Eydam --- vmm/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vmm/src/lib.rs b/vmm/src/lib.rs index f9d81fbd2..f86aadfbc 100644 --- a/vmm/src/lib.rs +++ b/vmm/src/lib.rs @@ -3071,6 +3071,9 @@ impl RequestHandler for Vmm { event!("vm", "migration-receive-failed"); self.vm = VmOwnership::None; self.vm_config = None; + return Err(MigratableError::CompleteMigration(anyhow!( + "Migration was aborted" + ))); } ReceiveMigrationState::Completed => { // Serving and resume already happened in the protocol loop.