diff options
author | David Hildenbrand <david@redhat.com> | 2024-02-14 16:16:57 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2024-03-12 17:56:55 -0400 |
commit | a3c0118c5a1e64d32a2208388b5ea90e2ec9d214 (patch) | |
tree | fd21a2d859ee72036e8c025e878599e92047c2ec /crypto/ivgen-plain.c | |
parent | 60ccdca42d96f730f57478caaf376da90c3d97f3 (diff) | |
download | qemu-a3c0118c5a1e64d32a2208388b5ea90e2ec9d214.zip qemu-a3c0118c5a1e64d32a2208388b5ea90e2ec9d214.tar.gz qemu-a3c0118c5a1e64d32a2208388b5ea90e2ec9d214.tar.bz2 |
libvhost-user: Speedup gpa_to_mem_region() and vu_gpa_to_va()
Let's speed up GPA to memory region / virtual address lookup. Store the
memory regions ordered by guest physical addresses, and use binary
search for address translation, as well as when adding/removing memory
regions.
Most importantly, this will speed up GPA->VA address translation when we
have many memslots.
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-11-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>
Diffstat (limited to 'crypto/ivgen-plain.c')
0 files changed, 0 insertions, 0 deletions