mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-23 13:05:45 +00:00
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 <robert.bradford@intel.com>
This commit is contained in:
parent
11a69450ba
commit
cf6763dfdb
@ -909,6 +909,7 @@ impl Vmm {
|
|||||||
table.write_to(&mut socket)?;
|
table.write_to(&mut socket)?;
|
||||||
// And then the memory itself
|
// And then the memory itself
|
||||||
vm.send_memory_regions(&table, &mut socket)?;
|
vm.send_memory_regions(&table, &mut socket)?;
|
||||||
|
let res = Response::read_from(&mut socket)?;
|
||||||
if res.status() != Status::Ok {
|
if res.status() != Status::Ok {
|
||||||
warn!("Error during memory migration");
|
warn!("Error during memory migration");
|
||||||
Request::abandon().write_to(&mut socket)?;
|
Request::abandon().write_to(&mut socket)?;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user