]> git.baikalelectronics.ru Git - kernel.git/commit
intel-iommu: Fix reattaching of devices to identity mapping domain
authorDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 4 Jul 2009 09:49:46 +0000 (10:49 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 4 Jul 2009 09:49:46 +0000 (10:49 +0100)
commit18be6a73e55051e017fcf5a022728beac3ce2c9a
treefa5fbdc5ce15e3726600a23ecfe362d1df5184f8
parenta0f029f9d1fb0a54abf41df641e4ecd1712f7d41
intel-iommu: Fix reattaching of devices to identity mapping domain

When we reattach a device to the si_domain (because it's been removed
from a VM), we weren't calling domain_context_mapping() to actually tell
the hardware about that.

We should really put the call to domain_context_mapping() into
domain_add_dev_info() -- we never call the latter without also doing the
former, and we can keep the error paths simple that way. But that's a
cleanup which can wait for 2.6.32 now.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/pci/intel-iommu.c