mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-21 20:15:21 +00:00
0fb24ea3ae
In order to support correctly the snapshot/restore and migration use cases, we must be careful with the ranges that we discard by punching holes. On restore, there might be some ranges already plugged in, meaning they should not be discarded. That's why we loop over the list of blocks to discard only the ranges that are marked as unplugged. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>