mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
An UNMAP that would split an existing mapping must be rejected with VIRTIO_IOMMU_S_RANGE without removing anything. The previous start-only retain silently left mappings that started outside the unmap range but overlapped it. Walk bookkeeping under a read lock and reject before touching VFIO so a rejection cannot leave VFIO and bookkeeping out of sync. Signed-off-by: Rob Bradford <rbradford@meta.com> Assisted-by: Claude:claude-opus-4-7