projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2915007
)
amd-iommu: detach device explicitly before attaching it to a new domain
author
Joerg Roedel
<joerg.roedel@amd.com>
Mon, 8 Jun 2009 20:47:33 +0000
(13:47 -0700)
committer
Joerg Roedel
<joerg.roedel@amd.com>
Tue, 9 Jun 2009 09:14:14 +0000
(11:14 +0200)
This fixes a bug with a device that could not be assigned to a KVM guest
because it is still assigned to a dma_ops protection domain.
[chrisw: simply remove WARN_ON(), will always fire since dev->driver
will be pci-sub]
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
arch/x86/kernel/amd_iommu.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kernel/amd_iommu.c
b/arch/x86/kernel/amd_iommu.c
index 81872604eb7626966dc1dacf0970de7bb6217964..772e91088e405f002a9eb26a68fa43b2d3785301 100644
(file)
--- a/
arch/x86/kernel/amd_iommu.c
+++ b/
arch/x86/kernel/amd_iommu.c
@@
-2073,7
+2073,7
@@
static int amd_iommu_attach_device(struct iommu_domain *dom,
old_domain = domain_for_device(devid);
if (old_domain)
-
return -EBUSY
;
+
detach_device(old_domain, devid)
;
attach_device(iommu, domain, devid);