> -----Original Message----- > From: David Marchand <[email protected]> > Sent: Friday, September 16, 2022 5:02 PM > To: [email protected] > Cc: Maxime Coquelin <[email protected]>; Xia, Chenbo > <[email protected]> > 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 <[email protected]> > --- > 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 <[email protected]>

