[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/6] virtio-iommu: Remove the end point on detach
From: |
Eric Auger |
Subject: |
[PATCH 4/6] virtio-iommu: Remove the end point on detach |
Date: |
Tue, 16 Jul 2024 11:45:06 +0200 |
We currently miss the removal of the endpoint in case of detach.
Signed-off-by: Eric Auger <eric.auger@redhat.com>
---
hw/virtio/virtio-iommu.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/virtio/virtio-iommu.c b/hw/virtio/virtio-iommu.c
index 2de41ab412..440dfa6e92 100644
--- a/hw/virtio/virtio-iommu.c
+++ b/hw/virtio/virtio-iommu.c
@@ -786,6 +786,7 @@ static int virtio_iommu_detach(VirtIOIOMMU *s,
if (QLIST_EMPTY(&domain->endpoint_list)) {
g_tree_remove(s->domains, GUINT_TO_POINTER(domain->id));
}
+ g_tree_remove(s->endpoints, GUINT_TO_POINTER(ep_id));
return VIRTIO_IOMMU_S_OK;
}
--
2.41.0
- [PATCH 0/6] VIRTIO-IOMMU/VFIO: Revert IOMMUDevice clear and fix hotunplug, Eric Auger, 2024/07/16
- [PATCH 1/6] Revert "virtio-iommu: Clear IOMMUDevice when VFIO device is unplugged", Eric Auger, 2024/07/16
- [PATCH 4/6] virtio-iommu: Remove the end point on detach,
Eric Auger <=
- [PATCH 5/6] hw/vfio/common: Add vfio_listener_region_del_iommu trace event, Eric Auger, 2024/07/16
- [PATCH 6/6] virtio-iommu: Add trace point on virtio_iommu_detach_endpoint_from_domain, Eric Auger, 2024/07/16
- Re: [PATCH 0/6] VIRTIO-IOMMU/VFIO: Revert IOMMUDevice clear and fix hotunplug, Cédric Le Goater, 2024/07/16