From: Wei Liu Subject: Re: [PATCH] IOMMU: skip domains without page tables when dumping Date: Thu, 27 Aug 2015 15:29:42 +0100 Message-ID: <20150827142942.GP22586@zion.uk.xensource.com> References: <55DF3503020000780009D760@prv-mh.provo.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZUyC8-0001lA-6x for xen-devel@lists.xenproject.org; Thu, 27 Aug 2015 14:30:24 +0000 Content-Disposition: inline In-Reply-To: <55DF3503020000780009D760@prv-mh.provo.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: xen-devel , Wei Liu , Roger Pau Monne List-Id: xen-devel@lists.xenproject.org On Thu, Aug 27, 2015 at 08:04:19AM -0600, Jan Beulich wrote: > Reported-by: Roger Pau Monn=E9 > Signed-off-by: Jan Beulich > = Release-acked-by: Wei Liu > --- a/xen/drivers/passthrough/iommu.c > +++ b/xen/drivers/passthrough/iommu.c > @@ -411,7 +411,7 @@ static void iommu_dump_p2m_table(unsigne > ops =3D iommu_get_ops(); > for_each_domain(d) > { > - if ( is_hardware_domain(d) ) > + if ( is_hardware_domain(d) || need_iommu(d) <=3D 0 ) > continue; > = > if ( iommu_use_hap_pt(d) ) > = > = > IOMMU: skip domains without page tables when dumping > = > Reported-by: Roger Pau Monn?? > Signed-off-by: Jan Beulich > = > --- a/xen/drivers/passthrough/iommu.c > +++ b/xen/drivers/passthrough/iommu.c > @@ -411,7 +411,7 @@ static void iommu_dump_p2m_table(unsigne > ops =3D iommu_get_ops(); > for_each_domain(d) > { > - if ( is_hardware_domain(d) ) > + if ( is_hardware_domain(d) || need_iommu(d) <=3D 0 ) > continue; > = > if ( iommu_use_hap_pt(d) )