mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
A concurrent DETACH between the read-lock check and the write-lock get_mut().unwrap() in MAP/UNMAP would panic the worker. Replace the unwrap with a let-else. A failure on a later endpoint in the per-endpoint MAP loop, or a DETACH that races the missing-domain branch, must roll back the external mappings already installed; otherwise domain.mappings diverges from VFIO state. Signed-off-by: Rob Bradford <rbradford@meta.com> Assisted-by: Claude:claude-opus-4-7