mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
1108bd1967
Reorganizing the code to leverage the same mechanics implemented for vfio-user and aimed at supporting sparse memory mappings for a single region. Relying on the capabilities returned by the vfio-ioctls crate, we create a list of sparse areas depending if we get SPARSE_MMAP or MSIX_MAPPABLE capability, or a single sparse area in case we couldn't find any capability. The list of sparse areas is then used to create both the memory mappings in the Cloud Hypervisor address space and the hypervisor user memory regions. This allowed for the simplification of the MmioRegion structure. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |