From: Joerg Roedel Subject: Re: [PATCH] iommu: remove the ->map_sg indirection Date: Wed, 8 Aug 2018 11:06:52 +0200 Message-ID: <20180808090652.qcnfs4gidhxupckx@8bytes.org> References: <20180730073626.15880-1-hch@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20180730073626.15880-1-hch-jcswGhMUV9g@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Christoph Hellwig Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org List-Id: iommu@lists.linux-foundation.org On Mon, Jul 30, 2018 at 09:36:26AM +0200, Christoph Hellwig wrote: > All iommu drivers use the default_iommu_map_sg implementation, and there > is no good reason to ever override it. Just expose it as iommu_map_sg > directly and remove the indirection, specially in our post-spectre world > where indirect calls are horribly expensive. > > Signed-off-by: Christoph Hellwig Applied, thanks.