lkml.org 
[lkml]   [2021]   [Aug]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/7] vfio/pci: Use vfio_device_unmap_mapping_range()
On Tue, Aug 10, 2021 at 08:57:22AM -0300, Jason Gunthorpe wrote:
> I'm not sure there is a real performance win to chase here? Doesn't
> this only protect mmap against reset? The mmap isn't performance
> sensitive, right?
>
> If this really needs extra optimization adding a rwsem to the devset
> and using that across the whole set would surely be sufficient.

Every mmio read or write takes memory_lock.

\
 
 \ /
  Last update: 2021-08-10 14:57    [W:0.078 / U:0.604 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site