Re: [PATCH 4/5] iommu: Make sure a device is always attached to a domain

2015-01-30 Thread Joerg Roedel
On Wed, Jan 28, 2015 at 02:38:52PM +, Will Deacon wrote: > On Tue, Jan 27, 2015 at 12:08:58AM +, Joerg Roedel wrote: > > - return iommu_group_for_each_dev(group, domain, > > - iommu_group_do_attach_device); > > + int ret; > > + > > + if (group->defaul

Re: [PATCH 4/5] iommu: Make sure a device is always attached to a domain

2015-01-28 Thread Will Deacon
On Tue, Jan 27, 2015 at 12:08:58AM +, Joerg Roedel wrote: > From: Joerg Roedel > > Make use of the default domain and re-attach a device to it > when it is detached from another domain. Also enforce that a > device has to be in the default domain before it can be > attached to a different dom

[PATCH 4/5] iommu: Make sure a device is always attached to a domain

2015-01-26 Thread Joerg Roedel
From: Joerg Roedel Make use of the default domain and re-attach a device to it when it is detached from another domain. Also enforce that a device has to be in the default domain before it can be attached to a different domain. Signed-off-by: Joerg Roedel --- drivers/iommu/iommu.c | 34 +++