aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2009-06-09 04:54:18 -0400
committerJoerg Roedel <joerg.roedel@amd.com>2009-06-09 04:54:18 -0400
commit29150078d7a1758df8c7a6cd2ec066ac65e1fab9 (patch)
tree5ec7c498687bde658aabf8f4c21fb45679e66d63 /arch
parentd2dd01de9924ae24afeba5aa5bc2e08287701df6 (diff)
amd-iommu: remove BUS_NOTIFY_BOUND_DRIVER handling
Handling this event causes device assignment in KVM to fail because the device gets re-attached as soon as the pci-stub registers as the driver for the device. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/amd_iommu.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c
index 8510e90ebfec..81872604eb76 100644
--- a/arch/x86/kernel/amd_iommu.c
+++ b/arch/x86/kernel/amd_iommu.c
@@ -1145,17 +1145,6 @@ static int device_change_notifier(struct notifier_block *nb,
1145 "to a non-dma-ops domain\n", dev_name(dev)); 1145 "to a non-dma-ops domain\n", dev_name(dev));
1146 1146
1147 switch (action) { 1147 switch (action) {
1148 case BUS_NOTIFY_BOUND_DRIVER:
1149 if (domain)
1150 goto out;
1151 dma_domain = find_protection_domain(devid);
1152 if (!dma_domain)
1153 dma_domain = iommu->default_dom;
1154 attach_device(iommu, &dma_domain->domain, devid);
1155 DUMP_printk(KERN_INFO "AMD IOMMU: Using protection domain "
1156 "%d for device %s\n",
1157 dma_domain->domain.id, dev_name(dev));
1158 break;
1159 case BUS_NOTIFY_UNBOUND_DRIVER: 1148 case BUS_NOTIFY_UNBOUND_DRIVER:
1160 if (!domain) 1149 if (!domain)
1161 goto out; 1150 goto out;