From cf6763dfdb0f28dbad39576770623a98ef84caf5 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Fri, 13 Nov 2020 15:29:42 +0000 Subject: [PATCH] vmm: migration: Add missing response check A read and check of the response was missing from when sending the memory to the destination. Signed-off-by: Rob Bradford --- vmm/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/vmm/src/lib.rs b/vmm/src/lib.rs index a70158c54..10e7b6bb9 100644 --- a/vmm/src/lib.rs +++ b/vmm/src/lib.rs @@ -909,6 +909,7 @@ impl Vmm { table.write_to(&mut socket)?; // And then the memory itself vm.send_memory_regions(&table, &mut socket)?; + let res = Response::read_from(&mut socket)?; if res.status() != Status::Ok { warn!("Error during memory migration"); Request::abandon().write_to(&mut socket)?;