]> xenbits.xensource.com Git - qemu-xen.git/commit
util: accept iova_tree_remove_parameter by value
authorEugenio Pérez <eperezma@redhat.com>
Tue, 23 Aug 2022 18:20:04 +0000 (20:20 +0200)
committerJason Wang <jasowang@redhat.com>
Fri, 2 Sep 2022 02:22:39 +0000 (10:22 +0800)
commit69292a8e40f4dae8af5f04724e06392cdf03c09e
treeb696af6c4f0145432adff7ed82427e9cf36d7126
parent7dab70bec397e3522211e7bcc36d879bad8154c5
util: accept iova_tree_remove_parameter by value

It's convenient to call iova_tree_remove from a map returned from
iova_tree_find or iova_tree_find_iova. With the current code this is not
possible, since we will free it, and then we will try to search for it
again.

Fix it making accepting the map by value, forcing a copy of the
argument. Not applying a fixes tag, since there is no use like that at
the moment.

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/i386/intel_iommu.c
hw/virtio/vhost-iova-tree.c
hw/virtio/vhost-iova-tree.h
hw/virtio/vhost-vdpa.c
include/qemu/iova-tree.h
net/vhost-vdpa.c
util/iova-tree.c