mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] intel-iommu: Fix domain_ids exhaustion
@ 2011-02-11 21:24 Alex Williamson
  2011-02-11 21:24 ` [PATCH 1/2] intel-iommu: Unlink domain from iommu Alex Williamson
  2011-02-11 21:24 ` [PATCH 2/2] intel-iommu: Fix get_domain_for_dev() error path Alex Williamson
  0 siblings, 2 replies; 3+ messages in thread
From: Alex Williamson @ 2011-02-11 21:24 UTC (permalink / raw)
  To: dwmw2, iommu; +Cc: alex.williamson, linux-kernel, linux-pci, ddutile, chrisw

When we unbind a device from a driver, we don't properly unlink
the domain from the iommu, so we never free the domain id it
was using.  We're typically limited to something like 256 domain
ids, so a loop of unbinding and rebinding a device can exhaust
this pretty quickly.  If we're assigning the device to a KVM
guest, libvirt does exactly this each time the device is removed
from the host driver or added back.  When we do run out, we oops
the kernel.  Fix these.  Thanks,

Alex

---

Alex Williamson (2):
      intel-iommu: Fix get_domain_for_dev() error path
      intel-iommu: Unlink domain from iommu


 drivers/pci/intel-iommu.c |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-02-11 21:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-11 21:24 [PATCH 0/2] intel-iommu: Fix domain_ids exhaustion Alex Williamson
2011-02-11 21:24 ` [PATCH 1/2] intel-iommu: Unlink domain from iommu Alex Williamson
2011-02-11 21:24 ` [PATCH 2/2] intel-iommu: Fix get_domain_for_dev() error path Alex Williamson

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®