iommu/amd: Fix hotplug with iommu=pt
authorJoerg Roedel <joerg.roedel@amd.com>
Thu, 19 Jul 2012 11:42:54 +0000 (13:42 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 2 Aug 2012 13:37:52 +0000 (14:37 +0100)
commita6624e8b990f77bd4ee64f77c2b95c7df005f002
treec3148a272a172cb19791b4dfb2c48bc3eac08246
parentbac92b49c77bd2cb455770a8f1c567817907428b
iommu/amd: Fix hotplug with iommu=pt

commit 2c9195e990297068d0f1f1bd8e2f1d09538009da upstream.

This did not work because devices are not put into the
pt_domain. Fix this.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
[bwh: Backported to 3.2: do not use iommu_dev_data::passthrough]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/iommu/amd_iommu.c