aboutgitcodebugslistschat
path: root/test/lib/git:
diff options
context:
space:
mode:
authorLaurent Vivier <lvivier@redhat.com>2025-09-02 09:52:52 +0200
committerStefano Brivio <sbrivio@redhat.com>2025-09-03 20:43:48 +0200
commit3e43e1a36c2cf138552bf6dc4666ff9fe6e00448 (patch)
tree99f2ce6f45fff8f6ece2ccb1fee30d31fc4c02e5 /test/lib/git:
parent1602aa2bf77974ac1a14f225456a477b44923e45 (diff)
downloadpasst-3e43e1a36c2cf138552bf6dc4666ff9fe6e00448.tar
passt-3e43e1a36c2cf138552bf6dc4666ff9fe6e00448.tar.gz
passt-3e43e1a36c2cf138552bf6dc4666ff9fe6e00448.tar.bz2
passt-3e43e1a36c2cf138552bf6dc4666ff9fe6e00448.tar.lz
passt-3e43e1a36c2cf138552bf6dc4666ff9fe6e00448.tar.xz
passt-3e43e1a36c2cf138552bf6dc4666ff9fe6e00448.tar.zst
passt-3e43e1a36c2cf138552bf6dc4666ff9fe6e00448.zip
packet: Refactor vhost-user memory region handling
This patch refactors the handling of vhost-user memory regions by introducing a new `struct vdev_memory` to encapsulate the regions array and their count (`nregions`) within the main `vu_dev` structure. This new `vdev_memory` structure is then passed to the packet pool by re-using the existing `p->buf` field. A `p->buf_size` of 0 indicates that `p->buf` holds a pointer to `struct vdev_memory` instead of a regular packet buffer. A new helper, `get_vdev_memory()`, is added to abstract this access pattern. Previous implementation was using a marker at the end of the memory regions array. We can now uses all the slots. Signed-off-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/lib/git:')
0 files changed, 0 insertions, 0 deletions