[PATCH] vhost: reduce memory footprint when IOMMU is disabled

Xia, Chenbo chenbo.xia at intel.com
Thu Sep 22 15:08:43 CEST 2022


> -----Original Message-----
> From: David Marchand <david.marchand at redhat.com>
> Sent: Friday, September 16, 2022 5:02 PM
> To: dev at dpdk.org
> Cc: Maxime Coquelin <maxime.coquelin at redhat.com>; Xia, Chenbo
> <chenbo.xia at intel.com>
> Subject: [PATCH] vhost: reduce memory footprint when IOMMU is disabled
> 
> If an application does not request IOMMU support, we can avoid
> allocating a IOMMU pool.
> 
> This saves 112kB (IOTLB_CACHE_SIZE * sizeof(struct vhost_iotlb_entry))
> per vq.
> 
> Signed-off-by: David Marchand <david.marchand at redhat.com>
> ---
>  lib/vhost/iotlb.c  | 20 +++++++++++---------
>  lib/vhost/socket.c |  4 +++-
>  lib/vhost/vhost.c  |  7 ++++++-
>  lib/vhost/vhost.h  |  5 ++++-
>  4 files changed, 24 insertions(+), 12 deletions(-)

The compilation issue seems not related to this patch.

Reviewed-by: Chenbo Xia <chenbo.xia at intel.com>


More information about the dev mailing list