mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
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>
This commit is contained in:
parent
62ac01d1de
commit
1993d634d5
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue