mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-22 03:12:27 +00:00
vmm: memory_manager: Write all guest region to disk
As a mirror of bdbea19e239b22e781a7df3caf8db04675e15553 which ensured that GuestMemoryMmap::read_exact_from() was used to read all the file to the region ensure that all the guest memory region is written to disk. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
be1b6bc1e1
commit
21db6f53c8
@ -1871,7 +1871,7 @@ impl Transportable for MemoryManager {
|
||||
.map_err(|e| MigratableError::MigrateSend(e.into()))?;
|
||||
|
||||
guest_memory
|
||||
.write_to(
|
||||
.write_all_to(
|
||||
region.start_addr,
|
||||
&mut memory_region_file,
|
||||
region.size as usize,
|
||||
|
Loading…
x
Reference in New Issue
Block a user