diff options
author | Eric Auger <eric.auger@redhat.com> | 2024-07-16 11:45:06 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2024-07-22 20:15:42 -0400 |
commit | 1993d634d57718d6eb107c973b7c8b80a6d91338 (patch) | |
tree | f7e35d35c580331fcf8f3a83fde29d1366945444 /hw/virtio | |
parent | 62ac01d1de5096022e08355f8df47bf1191a3ed1 (diff) | |
download | qemu-1993d634d57718d6eb107c973b7c8b80a6d91338.zip qemu-1993d634d57718d6eb107c973b7c8b80a6d91338.tar.gz qemu-1993d634d57718d6eb107c973b7c8b80a6d91338.tar.bz2 |
virtio-iommu: Remove the end point on detach
We currently miss the removal of the endpoint in case of detach.
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Message-Id: <20240716094619.1713905-5-eric.auger@redhat.com>
Tested-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/virtio')
-rw-r--r-- | hw/virtio/virtio-iommu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/virtio/virtio-iommu.c b/hw/virtio/virtio-iommu.c index 2de41ab..440dfa6 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; } |