From: Joerg Roedel <joerg.roedel@amd.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org,
Joerg Roedel <joerg.roedel@amd.com>
Subject: [PATCH 2/4] amd-iommu: remove BUS_NOTIFY_BOUND_DRIVER handling
Date: Tue, 9 Jun 2009 15:57:18 +0200 [thread overview]
Message-ID: <1244555840-3855-3-git-send-email-joerg.roedel@amd.com> (raw)
In-Reply-To: <1244555840-3855-1-git-send-email-joerg.roedel@amd.com>
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>
---
arch/x86/kernel/amd_iommu.c | 11 -----------
1 files changed, 0 insertions(+), 11 deletions(-)
diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c
index 8510e90..8187260 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,
"to a non-dma-ops domain\n", dev_name(dev));
switch (action) {
- case BUS_NOTIFY_BOUND_DRIVER:
- if (domain)
- goto out;
- dma_domain = find_protection_domain(devid);
- if (!dma_domain)
- dma_domain = iommu->default_dom;
- attach_device(iommu, &dma_domain->domain, devid);
- DUMP_printk(KERN_INFO "AMD IOMMU: Using protection domain "
- "%d for device %s\n",
- dma_domain->domain.id, dev_name(dev));
- break;
case BUS_NOTIFY_UNBOUND_DRIVER:
if (!domain)
goto out;
--
1.6.3.1
next prev parent reply other threads:[~2009-06-09 13:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-09 13:57 [git pull][PATCH 0/4] amd-iommu fixes for tip/core/iommu Joerg Roedel
2009-06-09 13:57 ` [PATCH 1/4] amd_iommu: fix lock imbalance Joerg Roedel
2009-06-09 13:57 ` Joerg Roedel [this message]
2009-06-09 14:15 ` [PATCH 2/4] amd-iommu: remove BUS_NOTIFY_BOUND_DRIVER handling Chris Wright
2009-06-09 13:57 ` [PATCH 3/4] amd-iommu: detach device explicitly before attaching it to a new domain Joerg Roedel
2009-06-09 13:57 ` [PATCH 4/4] amd-iommu: remove unnecessary "AMD IOMMU: " prefix Joerg Roedel
2009-06-09 14:21 ` [git pull][PATCH 0/4] amd-iommu fixes for tip/core/iommu Ingo Molnar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1244555840-3855-3-git-send-email-joerg.roedel@amd.com \
--to=joerg.roedel@amd.com \
--cc=iommu@lists.linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®