From: Ronny Hegewald Subject: Re: [PATCH 1/1] keep iommu disabled until iommu_setup is called Date: Fri, 19 Oct 2012 00:35:13 +0000 Message-ID: <201210190035.13872.ronny.hegewald@online.de> References: <201210180049.56561.ronny.hegewald@online.de> <507FC9E202000078000A237E@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <507FC9E202000078000A237E@nat28.tlf.novell.com> 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: xen-devel@lists.xen.org Cc: Jan Beulich List-Id: xen-devel@lists.xenproject.org > The concept is plausible, but I'm not convinced that there aren't > any users of iommu_enabled that actually depend on it having > its final value after command line parsing, yet before > iommu_setup() gets called. But that is currently only true for systems with a iommu. For the ones without one have iommu_enabled=1 first, until iommu_setup() is called and iommu_enabled is set to 0 because of the not detectable iommu. So, with or without my patch, a similiar problem seems to be present, just for different systems. > Did you fully audit all users? No, because there is just no way i can make a meaningfull judgement how the iommu code interdepends with all the other parts that check iommu_enabled. > As to the patch itself, ... I will send a 2. version which addresses your comments as soon its clear if the approach in the patch is the right one to fix the crash.