summaryrefslogtreecommitdiffstats
path: root/drivers/vfio/vfio.c
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@redhat.com>2015-02-06 22:19:12 +0100
committerAlex Williamson <alex.williamson@redhat.com>2015-02-06 22:19:12 +0100
commitc5e6688752c25434d71920bc969f9fab60353c5e (patch)
tree176ad1355f26bc2542e320471ab1691400c0974c /drivers/vfio/vfio.c
parentvfio/type1: Chunk contiguous reserved/invalid page mappings (diff)
downloadlinux-c5e6688752c25434d71920bc969f9fab60353c5e.tar.xz
linux-c5e6688752c25434d71920bc969f9fab60353c5e.zip
vfio/type1: Add conditional rescheduling
IOMMU operations can be expensive and it's not very difficult for a user to give us a lot of work to do for a map or unmap operation. Killing a large VM will vfio assigned devices can result in soft lockups and IOMMU tracing shows that we can easily spend 80% of our time with need-resched set. A sprinkling of conf_resched() calls after map and unmap calls has a very tiny affect on performance while resulting in traces with <1% of calls overflowing into needs- resched. Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/vfio/vfio.c')
0 files changed, 0 insertions, 0 deletions