]> git.baikalelectronics.ru Git - kernel.git/commit
amd-iommu: detach device explicitly before attaching it to a new domain
authorJoerg Roedel <joerg.roedel@amd.com>
Mon, 8 Jun 2009 20:47:33 +0000 (13:47 -0700)
committerJoerg Roedel <joerg.roedel@amd.com>
Tue, 9 Jun 2009 09:14:14 +0000 (11:14 +0200)
commite0d2ab3a7c603ef2288cc3b6ad58c9a6fcf1cbea
tree0930054b71a0d674d71ea05d7575e4a7efac7bf3
parent8878a8027f7e3598bdeeff6e3ff61381fd64bcd9
amd-iommu: detach device explicitly before attaching it to a new domain

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