From: "Jan Beulich" Subject: Re: dom0 as pvh boot problem Date: Mon, 05 Jan 2015 08:44:54 +0000 Message-ID: <54AA4F0602000078000C4C3D@mail.emea.novell.com> References: <42e7aeac-499b-4f8b-b932-35636f340d50@default> <54A6CF9802000078000C4B3A@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: ufimtseva@gmail.com Cc: elena.ufimtseva@oracle.com, kevin.tian@intel.com, xen-devel@lists.xen.org, yang.z.zhang@intel.com, boris.ostrovsky@oracle.com List-Id: xen-devel@lists.xenproject.org >>> Elena Ufimtseva 01/02/15 7:32 PM >>> >The last successful command is the reading status register of second IOMMU >unit: > >./xen/drivers/passthrough/vtd/iommu.c> > >746: sts = dmar_readl(iommu->reg, DMAR_GSTS_REG); >747: dmar_writel(iommu->reg, DMAR_GCMD_REG, sts | DMA_GCMD_TE); > > > >After dmar_writel for second iommu the machine hangs. That's rather odd - you say it doesn't even reach the IOMMU_WAIT_OP() right after that? That would suggest a fault or other abnormal condition raised by the translation enabling (i.e. some problem with the page tables, albeit that should then have been a problem for the first IOMMU already). Yet an eventual fault can't be delivered at that point due to interrupts being disabled. Perhaps the VT-d maintainers (now Cc-ed) have some suggestion as to what's going on or how to diagnose. Jan