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

2020-05-07 Thread Peter Xu
On Thu, May 07, 2020 at 04:34:37PM -0600, Alex Williamson wrote: > On Thu, 7 May 2020 17:59:08 -0400 > Peter Xu wrote: > > > On Tue, May 05, 2020 at 03:54:36PM -0600, Alex Williamson wrote: > > > v2: > > > > > > Locking in 3/ is substantially changed to avoid the retry scenario > > > within the

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

2020-05-07 Thread Alex Williamson
On Thu, 7 May 2020 17:59:08 -0400 Peter Xu wrote: > On Tue, May 05, 2020 at 03:54:36PM -0600, Alex Williamson wrote: > > v2: > > > > Locking in 3/ is substantially changed to avoid the retry scenario > > within the fault handler, therefore a caller who does not allow retry > > will no longer rec

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

2020-05-07 Thread Peter Xu
On Tue, May 05, 2020 at 03:54:36PM -0600, Alex Williamson wrote: > v2: > > Locking in 3/ is substantially changed to avoid the retry scenario > within the fault handler, therefore a caller who does not allow retry > will no longer receive a SIGBUS on contention. IOMMU invalidations > are still no

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

2020-05-05 Thread Alex Williamson
v2: Locking in 3/ is substantially changed to avoid the retry scenario within the fault handler, therefore a caller who does not allow retry will no longer receive a SIGBUS on contention. IOMMU invalidations are still not included here, I expect that will be a future follow-on change as we're not