All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] vfio/iommufd: Prevent scheduler warnings when unmapping large regions
@ 2026-07-14 21:03 Aaron Lewis
  2026-07-14 21:03 ` [PATCH 1/2] vfio/type1: Periodically try rescheduling when unmapping Aaron Lewis
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Aaron Lewis @ 2026-07-14 21:03 UTC (permalink / raw)
  To: kvm; +Cc: alex, dmatlack, jgg, Aaron Lewis

Both the Type1 IOMMU and IOMMUFD can be guilty of not playing nice with
the scheduler during DMA unmapping on large regions (e.g., 256GB). Add
rate-limited calls to cond_resched() to ensure this doesn't happen.

This series was tested using the selftest proposed here:
 - https://lore.kernel.org/kvm/20260701203311.326798-1-aaronlewis@google.com/

And profiled using the bpftrace tooling proposed here:
 - https://lore.kernel.org/kvm/20260630141152.3757722-2-aaronlewis@google.com/

Note that the kernel must be built with preemption disabled and have
LATENCY_WARN enabled in order to trigger the warnings. With those
conditions met, the issue should reproduce as described in the
changelogs. 

Aaron Lewis (2):
  vfio/type1: Periodically try rescheduling when unmapping
  iommufd: Periodically reschedule when unmapping

 drivers/iommu/iommufd/pages.c   | 4 ++++
 drivers/vfio/vfio_iommu_type1.c | 3 +++
 2 files changed, 7 insertions(+)

-- 
2.55.0.141.g00534a21ce-goog


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

end of thread, other threads:[~2026-07-15 18:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-14 21:03 [PATCH 0/2] vfio/iommufd: Prevent scheduler warnings when unmapping large regions Aaron Lewis
2026-07-14 21:03 ` [PATCH 1/2] vfio/type1: Periodically try rescheduling when unmapping Aaron Lewis
2026-07-14 21:15   ` sashiko-bot
2026-07-15 17:39   ` David Matlack
2026-07-15 18:12     ` Jason Gunthorpe
2026-07-14 21:03 ` [PATCH 2/2] iommufd: Periodically reschedule " Aaron Lewis
2026-07-14 21:34   ` sashiko-bot
2026-07-15 18:11 ` [PATCH 0/2] vfio/iommufd: Prevent scheduler warnings when unmapping large regions Jason Gunthorpe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.