mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-21 20:15:21 +00:00
5bd7a1f03c
Instead of always creating a single large mmap for the MMIO region of a BAR, we create multiple mmaps for the BARs that need multiple kvm user memory regions. In this way, we can simplify 'unmap_mmio_regions()' (by reusing information kept from 'MmioRegion::user_memory_region'). Signed-off-by: Bo Chen <chen.bo@intel.com>