mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-03-20 07:58:55 +00:00
Factorize the codepath between simple memory and multiple memory zones. This simplifies the way regions are memory mapped, as everything relies on the same codepath. This is performed by creating a memory zone on the fly for the specific use case where --memory is used with size being different from 0. Internally, the code can rely on memory zones to create the memory regions forming the guest memory. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>