mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
The PciDeviceHandle::VfioUser arm in eject_device propagated dma_unmap failures with ?, which short-circuited the subsequent remove_dma_mapping_handler loop and left stale Arc<VfioUserDmaMapping> entries in every virtio-mem device's handler map. Log unmap errors with warn! and continue so the handler map cleanup always runs. This only happens if a vfio-user process crashes and the same device is later removed. However, given we've seen similar issues on vhost-user this is probably worth cleaning up. Signed-off-by: Dylan Reid <dgreid@fb.com>