From: "Jan Beulich" Subject: Re: [PATCH RFC] pvh: set need_iommu early Date: Fri, 23 Jan 2015 10:32:04 +0000 Message-ID: <54C231340200007800058A44@mail.emea.novell.com> References: <20150121205259.GA7068@elena.ufimtseva> <20150122214959.GA7864@elena.ufimtseva> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20150122214959.GA7864@elena.ufimtseva> 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: Elena Ufimtseva Cc: "tim@xen.org" , xen-devel@lists.xen.org, Yang Z Zhang , "boris.ostrovsky@oracle.com" , "roger.pau@citrix.com" List-Id: xen-devel@lists.xenproject.org >>> On 22.01.15 at 22:49, wrote: > On Thu, Jan 22, 2015 at 07:08:22AM +0000, Tian, Kevin wrote: >> > From: Elena Ufimtseva [mailto:elena.ufimtseva@oracle.com] >> > Sent: Thursday, January 22, 2015 4:53 AM >> > >> > need_iommu has to be set earler for dom0 pvh specific init >> > functions. If not enabled, mmio regions are not mapped with iommu >> > during domain construction. >> > >> > This was discovered when working on booting problems of pvh dom0 >> > on two different machines (ThinkCentre M and Dell 5600T). >> > On ThinkCentre during pvh dom0 booting process, IOMMU would report >> > Page fault with EPT not present. The memory address of the page fault >> > suggested that is mmio region for USB host controllers. The faulting >> > address marked as Reserved in e820 map and is not part of any rmrr >> > region reported by ACPI. >> >> Need more understanding here. If iommu hasn't been setup for dom0 yet, >> why is there iommu page fault at that point? > > Hi Kevin > > Wrong wording. > The page faults happen after iommu drhd are enabled. > need_iommu only determines if the mapping will happed for mmio > regions during pvh dom0 construction. Please point out exactly which code this affects. Jan