mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
06f57abdf9
We can return prematurely from 'map_mmio_regions()' (e.g. when a mmap call failed for vfio or 'create_user_memory_region()' failed for vfio-user) without updating the 'MmioRegion::user_memory_regions' with the information of previous successful mmaps, which in turn would cause mmap leaks particularly for the case of hotplug where the 'vmm' thread will keep running. To fix the issue, let's keep 'MmioRegion::user_memory_regions' updated right after successful mmap calls. Fixes: #4068 Signed-off-by: Bo Chen <chen.bo@intel.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |