Re: [PATCH v2] iommu: OMAP: device detach on domain destroy

2012-04-19 Thread Joerg Roedel
On Wed, Apr 18, 2012 at 01:09:41PM -0500, Omar Ramirez Luna wrote: > 'domain_destroy with devices attached' case isn't yet handled, instead > code assumes that the device was already detached. > > If the domain is destroyed the hardware still has access to invalid > pointers to its page table and

[PATCH v2] iommu: OMAP: device detach on domain destroy

2012-04-18 Thread Omar Ramirez Luna
'domain_destroy with devices attached' case isn't yet handled, instead code assumes that the device was already detached. If the domain is destroyed the hardware still has access to invalid pointers to its page table and internal iommu object. In order to detach the users we need to track devices