[PATCH] vhost: reduce memory footprint when IOMMU is disabled
Xia, Chenbo
chenbo.xia at intel.com
Thu Sep 29 10:39:11 CEST 2022
> -----Original Message-----
> From: Xia, Chenbo <chenbo.xia at intel.com>
> Sent: Thursday, September 22, 2022 9:09 PM
> To: David Marchand <david.marchand at redhat.com>; dev at dpdk.org
> Cc: Maxime Coquelin <maxime.coquelin at redhat.com>
> Subject: RE: [PATCH] vhost: reduce memory footprint when IOMMU is disabled
>
> > -----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>
Applied to next-virtio/main, thanks
More information about the dev
mailing list