From: "Jan Beulich" Subject: Re: [PATCH 6/6] Introduce domain flag (dont_flush_iotlb) to avoid unnecessary iotlb flush. Date: Fri, 04 Nov 2011 12:41:10 +0000 Message-ID: <4EB3EB76020000780005F062@nat28.tlf.novell.com> References: <1320403109-8739-1-git-send-email-jean.guyader@eu.citrix.com> <1320403109-8739-2-git-send-email-jean.guyader@eu.citrix.com> <1320403109-8739-3-git-send-email-jean.guyader@eu.citrix.com> <1320403109-8739-4-git-send-email-jean.guyader@eu.citrix.com> <1320403109-8739-5-git-send-email-jean.guyader@eu.citrix.com> <1320403109-8739-6-git-send-email-jean.guyader@eu.citrix.com> <1320403109-8739-7-git-send-email-jean.guyader@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1320403109-8739-7-git-send-email-jean.guyader@eu.citrix.com> Content-Disposition: inline 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: tim@xen.org, xen-devel@lists.xensource.com, allen.m.kay@intel.com List-Id: xen-devel@lists.xenproject.org >>> On 04.11.11 at 11:38, Jean Guyader wrote: > Add a domain level flag that will be check by the iommu low level code > to skip iotlb flush. iommu_iotlb_flush has to be called explicitly. >=20 > Signed-off-by: Jean Guyader > --- > xen/arch/x86/mm.c | 12 +++++++++++- > xen/drivers/passthrough/iommu.c | 6 ++++++ > xen/drivers/passthrough/vtd/iommu.c | 6 ++++-- > xen/include/xen/sched.h | 1 + > 4 files changed, 22 insertions(+), 3 deletions(-) Neither the patch nor its description make clear what lock is used to protect this flag from having an effect on other but the current vCPU of the guest in question - I doubt that all other relevant code paths indeed use domain_lock(). Jan