Re: [PATCH v3 0/3] vfio-pci: Block user access to disabled device MMIO

2020-05-22 Thread Alex Williamson
On Fri, 22 May 2020 18:08:58 -0400 Qian Cai wrote: > On Fri, May 22, 2020 at 01:17:09PM -0600, Alex Williamson wrote: > > v3: > > > > The memory_lock semaphore is only held in the MSI-X path for callouts > > to functions that may access MSI-X MMIO space of the device, this > > should resolve

Re: [PATCH v3 0/3] vfio-pci: Block user access to disabled device MMIO

2020-05-22 Thread Qian Cai
On Fri, May 22, 2020 at 01:17:09PM -0600, Alex Williamson wrote: > v3: > > The memory_lock semaphore is only held in the MSI-X path for callouts > to functions that may access MSI-X MMIO space of the device, this > should resolve the circular locking dependency reported by Qian > (re-testing very

[PATCH v3 0/3] vfio-pci: Block user access to disabled device MMIO

2020-05-22 Thread Alex Williamson
v3: The memory_lock semaphore is only held in the MSI-X path for callouts to functions that may access MSI-X MMIO space of the device, this should resolve the circular locking dependency reported by Qian (re-testing very much appreciated). I've also incorporated the pci_map_rom() and