From: Pravin M Bathija <[email protected]> This is version v6 of the patchset and it incorporates the recommendations made by Maxime Coquelin and Feng Cheng Wen. The patchset includes support for adding and removal of memory regions, getting max memory slots and other changes to vhost-user messages. These messages are sent from vhost-user front-end (qemu or libblkio) to a vhost-user back-end (dpdk, spdk). Support functions for these message functions have been implemented in the interest of writing optimized code. Older functions, part of vhost-user back-end have also been optimized using these newly defined support functions. This implementation has been extensively tested by doing Read/Write I/O from multiple instances of fio + libblkio (front-end) talking to spdk/dpdk (back-end) based drives. Also tested with qemu front-end talking to dpdk + testpmd (back-end) performing add/removal of memory regions. Version Log: Version V6 (Current version): Added the enablement of this feature as a final patch in this patch-set and other code optimizations as suggested by Maxime Coquelin. Version V5: removed the patch that increased the number of memory regions from 8 to 128. This will be submitted as a separate feature at a later point after incorporating additional optimizations. Also includes code optimizations as suggested by Feng Cheng Wen. Version V4: code optimizations as suggested by Feng Cheng Wen. Version V3: code optimizations as suggested by Maxime Coquelin and Thomas Monjalon. Version V2: code optimizations as suggested by Maxime Coquelin. Version V1: Initial patch set.
Pravin M Bathija (5): vhost: add user to mailmap and define to vhost hdr vhost_user: header defines for add/rem mem region vhost_user: support function defines for back-end vhost_user: Function defs for add/rem mem regions vhost_user: enable configure memory slots .mailmap | 1 + lib/vhost/rte_vhost.h | 4 + lib/vhost/vhost_user.c | 384 ++++++++++++++++++++++++++++++++++++----- lib/vhost/vhost_user.h | 10 ++ 4 files changed, 357 insertions(+), 42 deletions(-) -- 2.43.0

