qemu/subprojects/libvhost-user
David Hildenbrand 9c254cb413 libvhost-user: Don't search for duplicates when removing memory regions
We cannot have duplicate memory regions, something would be deeply
flawed elsewhere. Let's just stop the search once we found an entry.

We'll add more sanity checks when adding memory regions later.

Reviewed-by: Raphael Norwitz <raphael@enfabrica.net>
Acked-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20240214151701.29906-9-david@redhat.com>
Tested-by: Mario Casquero <mcasquer@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2024-03-12 17:56:55 -04:00
..
include Use QEMU_SANITIZE_THREAD 2022-05-03 15:16:21 +04:00
standard-headers meson: fix meson 0.58 warning with libvhost-user subproject 2021-07-29 10:15:52 +02:00
libvhost-user-glib.c libvhost-user: make it a meson subproject 2020-12-08 13:48:58 -05:00
libvhost-user-glib.h libvhost-user: make it a meson subproject 2020-12-08 13:48:58 -05:00
libvhost-user.c libvhost-user: Don't search for duplicates when removing memory regions 2024-03-12 17:56:55 -04:00
libvhost-user.h libvhost-user: Bump up VHOST_USER_MAX_RAM_SLOTS to 509 2024-03-12 17:56:55 -04:00
link-test.c libvhost-user: add a simple link test without glib 2020-12-09 13:04:17 -05:00
meson.build libvhost-user: Add extra compiler warnings 2023-01-11 10:44:35 +01:00