From: Tim Deegan Subject: Re: RE: Crashdump and IOMMU problems Date: Thu, 12 May 2011 09:24:00 +0100 Message-ID: <20110512082400.GL24068@whitby.uk.xensource.com> References: <4DCA8532.3070508@citrix.com> <987664A83D2D224EAE907B061CE93D5301CD00AE45@orsmsx505.amr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Return-path: Content-Disposition: inline In-Reply-To: <987664A83D2D224EAE907B061CE93D5301CD00AE45@orsmsx505.amr.corp.intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Kay, Allen M" Cc: Wei Wang , Andrew Cooper , "xen-devel@lists.xensource.com" , Jan Beulich List-Id: xen-devel@lists.xenproject.org At 23:11 +0100 on 11 May (1305155493), Kay, Allen M wrote: > I believe Jan was involved with adding kexec support in iommu code. > > As for systematic way to disable active DMA, isn't this similar to OS shutdown case when all the drivers are unloaded? Does kexec unload all of the device drivers? Once all the drivers are unloaded, there shouldn't be any DMA transactions going on. > > I don't know much about kexec flow but it sound like the high level flow is: 1) dom0 kernel shutdown all of the device dirver and then 2) call iommu_ops->suspend() or crash_shutdown() to disable all of the iommu hardware. > In Xen we might have to kexec on crash without knowing even which VM is driving the devices, so we can't do a clean unload. It might be worthwhile just walking the PCI busses disabling everything, though. Tim. -- Tim Deegan Principal Software Engineer, Xen Platform Team Citrix Systems UK Ltd. (Company #02937203, SL9 0BG)