diff options
author | David Hildenbrand <david@redhat.com> | 2022-01-17 04:12:32 +0000 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2022-02-04 09:07:43 -0500 |
commit | 4fd5ca829ae28f1f009210ab1cd42f86671015ec (patch) | |
tree | b07bb831dde4bc34cfbb07d1bce3838d2da3755d /util/userfaultfd.c | |
parent | 9f4e63491ba7ae2f7a537bb98a337f4dcd4e1c54 (diff) | |
download | qemu-4fd5ca829ae28f1f009210ab1cd42f86671015ec.zip qemu-4fd5ca829ae28f1f009210ab1cd42f86671015ec.tar.gz qemu-4fd5ca829ae28f1f009210ab1cd42f86671015ec.tar.bz2 |
libvhost-user: Simplify VHOST_USER_REM_MEM_REG
Let's avoid having to manually copy all elements. Copy only the ones
necessary to close the hole and perform the operation in-place without
a second array.
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Raphael Norwitz <raphael.norwitz@nutanix.com>
Message-Id: <20220117041050.19718-4-raphael.norwitz@nutanix.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'util/userfaultfd.c')
0 files changed, 0 insertions, 0 deletions