]> git.ipfire.org Git - people/arne_f/kernel.git/commit - drivers/iommu/intel-iommu.c
intel-iommu: fix PCI device detach from virtual machine
authorHan, Weidong <weidong.han@intel.com>
Thu, 26 Feb 2009 09:31:12 +0000 (17:31 +0800)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 25 Mar 2009 15:53:53 +0000 (15:53 +0000)
commit3199aa6bc8766e17b8f60820c4f78d59c25fce0e
tree229e32c18afbbe5017ed3f84247055e767a57f0f
parent9cf0669746be19a4906a6c48920060bcf54c708b
intel-iommu: fix PCI device detach from virtual machine

When assign a device behind conventional PCI bridge or PCIe to
PCI/PCI-x bridge to a domain, it must assign its bridge and may
also need to assign secondary interface to the same domain.

Dependent assignment is already there, but dependent
deassignment is missed when detach device from virtual machine.
This results in conventional PCI device assignment failure after
it has been assigned once. This patch addes dependent
deassignment, and fixes the issue.

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