mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-21 07:21:15 +00:00
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> |
||
---|---|---|
.. | ||
bus.rs | ||
configuration.rs | ||
device.rs | ||
lib.rs | ||
msi.rs | ||
msix.rs | ||
vfio_user.rs | ||
vfio.rs |