[PATCH v14 3/5] vhost: refactor memory helper functions
Maxime Coquelin
maxime.coquelin at redhat.com
Thu Jun 4 12:08:14 CEST 2026
On Wed, May 20, 2026 at 4:20 AM <pravin.bathija at dell.com> wrote:
> From: Pravin M Bathija <pravin.bathija at dell.com>
>
> - Extract reusable helper routines for vhost-user backend memory
> operations.
> - Split DMA map/unmap into per-region logic.
> - Decouple and rework memory region free routines.
> - Iterate over VHOST_MEMORY_MAX_NREGIONS uniformly
> across related functions to simplify code reuse
>
> Signed-off-by: Pravin M Bathija <pravin.bathija at dell.com>
> Acked-by: Fengchengwen <fengchengwen at huawei.com>
> Reviewed-by: Stephen Hemminger <stephen at networkplumber.com>
> Acked-by: Maxime Coquelin <maxime.coquelin at redhat.com>
>
I did not Ack this one AFAICT.
> ---
> lib/vhost/vhost_user.c | 172 ++++++++++++++++++++++++++---------------
> 1 file changed, 110 insertions(+), 62 deletions(-)
>
>
>
The change looks good though:
Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20260604/382a6a74/attachment.htm>
More information about the dev
mailing list