From: Tim Deegan Subject: Re: [PATCH 6/6] Introduce per cpu flag (iommu_dont_flush_iotlb) to avoid unnecessary iotlb flush Date: Tue, 8 Nov 2011 13:45:57 +0000 Message-ID: <20111108134557.GD5975@ocelot.phlegethon.org> References: <1320690327-12649-1-git-send-email-jean.guyader@eu.citrix.com> <1320690327-12649-2-git-send-email-jean.guyader@eu.citrix.com> <1320690327-12649-3-git-send-email-jean.guyader@eu.citrix.com> <1320690327-12649-4-git-send-email-jean.guyader@eu.citrix.com> <1320690327-12649-5-git-send-email-jean.guyader@eu.citrix.com> <1320690327-12649-6-git-send-email-jean.guyader@eu.citrix.com> <1320690327-12649-7-git-send-email-jean.guyader@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Return-path: Content-Disposition: inline In-Reply-To: <1320690327-12649-7-git-send-email-jean.guyader@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jean Guyader Cc: xen-devel@lists.xensource.com, allen.m.kay@intel.com List-Id: xen-devel@lists.xenproject.org At 18:25 +0000 on 07 Nov (1320690327), Jean Guyader wrote: > > Add cpu flag that will be checked by the iommu low level code > to skip iotlb flushes. iommu_iotlb_flush shall be called explicitly. The general approach is OK. I think the explicit flush on the xatp path belongs in the inner xatp function, along with the reat of the loop. Also, please add a comment beside the declaration in iommu.h to explain what the falg does and how it should be used. Cheers, Tim.