cloud-hypervisor/vmm
Rob Bradford bdbea19e23 vmm: memory_manager: Completely fill guest ram from snapshot
Use GuestRegionMmap::read_exact_from() to ensure that all of the file is
read into the guest. This addresses an issue where
GuestRegionMmap::read_from() was only copying the first 2GiB of the
memory and so lead to snapshot-restore was failing when the guest RAM
was 2GiB or greater.

This change also propagates any error from the copying upwards.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2020-10-23 17:56:19 +01:00
..
src vmm: memory_manager: Completely fill guest ram from snapshot 2020-10-23 17:56:19 +01:00
Cargo.toml virtio-devices: Remove mmio and pci differentiation 2020-10-19 14:58:48 +01:00