From: Keir Fraser Subject: Re: RE: [Xen-changelog] [xen-unstable]vt-d: Fixpanic in msi_msg_read_remap_rte with acpi=off Date: Mon, 19 Oct 2009 12:51:52 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser , Miroslav Rezanina Cc: "xen-devel@lists.xensource.com" , Dexuan Cui List-Id: xen-devel@lists.xenproject.org On 19/10/2009 12:43, "Keir Fraser" wrote: >> I retest version with removed NULL checks and in this case, my system >> crashes. >> So there has to be checks for NULL or something else is wrong. > > Got a backtrace and Xen boot params? If you pass acpi=off, then > disable_acpi() is invoked, and this sets acpi_disabled. If acpi_disabled=1, > then iommu_setup() sets iommu_enabled=0. If iommu_enabled=0 then I think all > the update_ire_from_* and similar hooks get disabled in the callers. So > something unexpected must be happening. Hmmm, perhaps this could be an early boot-time crash before iommu_setup() is even called? Perhaps moving the if(acpi_disabled) iommu_enabled=0 somewhere early-ish in setup.c:__start_xen(), with a warning message, would be the right thing to do in that case (e.g., immediately after the call to cmdline_parse()). -- Keir