Re: [PATCH 3/3] vfio-pci: Invalidate mmaps and block MMIO access on disabled memory
From: Jason Gunthorpe
Date: Mon May 04 2020 - 16:01:30 EST
On Mon, May 04, 2020 at 01:35:52PM -0600, Alex Williamson wrote:
> Ok, this all makes a lot more sense with memory_lock still in the
> picture. And it looks like you're not insisting on the wait_event, we
> can block on memory_lock so long as we don't have an ordering issue.
> I'll see what I can do. Thanks,
Right, you can block on the rwsem if it is ordered properly vs
mmap_sem.
Jason