libvhost-user: Don't zero out memory for memory regions
commitc6f90b785291389168b15fe797788bcbb5a7803a
authorDavid Hildenbrand <david@redhat.com>
Wed, 14 Feb 2024 15:16:54 +0000 (14 16:16 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 12 Mar 2024 21:56:55 +0000 (12 17:56 -0400)
tree395dd9d4f41d0f9cbaec77ca4d4c16a03af9191a
parent4f865c3b15a71dbeae999a10256742751410394e
libvhost-user: Don't zero out memory for memory regions

dev->nregions always covers only valid entries. Stop zeroing out other
array elements that are unused.

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-8-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>
subprojects/libvhost-user/libvhost-user.c