Re: [PATCHv1 7/7] vfio/mdev: Fix race conditions with mdev device life cycle APIs

2019-04-26 Thread Alex Williamson
t; > kwankh...@nvidia.com; c...@nvidia.com > > Subject: Re: [PATCHv1 7/7] vfio/mdev: Fix race conditions with mdev device > > life cycle APIs > > [..] > > > > > > > > > > > > Patch 6 looks ok, except I'd rather see the sanitizing lo

RE: [PATCHv1 7/7] vfio/mdev: Fix race conditions with mdev device life cycle APIs

2019-04-26 Thread Parav Pandit
Hi Alex, > -Original Message- > From: Alex Williamson > Sent: Friday, April 26, 2019 11:09 AM > To: Parav Pandit > Cc: k...@vger.kernel.org; linux-kernel@vger.kernel.org; > kwankh...@nvidia.com; c...@nvidia.com > Subject: Re: [PATCHv1 7/7] vfio/mdev: Fix race

Re: [PATCHv1 7/7] vfio/mdev: Fix race conditions with mdev device life cycle APIs

2019-04-26 Thread Alex Williamson
, sorry for my late reply. > > > > > > > -Original Message- > > > > From: Alex Williamson > > > > Sent: Tuesday, April 23, 2019 2:22 PM > > > > To: Parav Pandit > > > > Cc: k...@vger.kernel.org; linux-kernel@vger.kernel.org; >

RE: [PATCHv1 7/7] vfio/mdev: Fix race conditions with mdev device life cycle APIs

2019-04-26 Thread Parav Pandit
Tuesday, April 23, 2019 2:22 PM > > > To: Parav Pandit > > > Cc: k...@vger.kernel.org; linux-kernel@vger.kernel.org; > > > kwankh...@nvidia.com; c...@nvidia.com > > > Subject: Re: [PATCHv1 7/7] vfio/mdev: Fix race conditions with mdev > > > d

Re: [PATCHv1 7/7] vfio/mdev: Fix race conditions with mdev device life cycle APIs

2019-04-26 Thread Alex Williamson
r.kernel.org; linux-kernel@vger.kernel.org; > > kwankh...@nvidia.com; c...@nvidia.com > > Subject: Re: [PATCHv1 7/7] vfio/mdev: Fix race conditions with mdev device > > life cycle APIs > > > > On Thu, 4 Apr 2019 23:05:43 + > > Parav Pandit wrote: > > >

RE: [PATCHv1 7/7] vfio/mdev: Fix race conditions with mdev device life cycle APIs

2019-04-25 Thread Parav Pandit
> > To: Parav Pandit > > > Cc: k...@vger.kernel.org; linux-kernel@vger.kernel.org; > > > kwankh...@nvidia.com; c...@nvidia.com > > > Subject: Re: [PATCHv1 7/7] vfio/mdev: Fix race conditions with mdev > > > device life cycle APIs > > > > > >

Re: [PATCHv1 7/7] vfio/mdev: Fix race conditions with mdev device life cycle APIs

2019-04-23 Thread Alex Williamson
; From: Alex Williamson > > > > Sent: Wednesday, April 3, 2019 4:27 PM > > > > To: Parav Pandit > > > > Cc: k...@vger.kernel.org; linux-kernel@vger.kernel.org; > > > > kwankh...@nvidia.com; c...@nvidia.com > > > > Subject: Re: [PATCHv1

RE: [PATCHv1 7/7] vfio/mdev: Fix race conditions with mdev device life cycle APIs

2019-04-04 Thread Parav Pandit
k...@vger.kernel.org; linux-kernel@vger.kernel.org; > > > kwankh...@nvidia.com; c...@nvidia.com > > > Subject: Re: [PATCHv1 7/7] vfio/mdev: Fix race conditions with mdev > > > device life cycle APIs > > > > > > On Tue, 26 Mar 2019 22:45:45 -0500 >

Re: [PATCHv1 7/7] vfio/mdev: Fix race conditions with mdev device life cycle APIs

2019-04-04 Thread Alex Williamson
com; c...@nvidia.com > > Subject: Re: [PATCHv1 7/7] vfio/mdev: Fix race conditions with mdev device > > life cycle APIs > > > > On Tue, 26 Mar 2019 22:45:45 -0500 > > Parav Pandit wrote: > > > > > Below race condition and call trace exist with curr

RE: [PATCHv1 7/7] vfio/mdev: Fix race conditions with mdev device life cycle APIs

2019-04-03 Thread Parav Pandit
> -Original Message- > From: Alex Williamson > Sent: Wednesday, April 3, 2019 4:27 PM > To: Parav Pandit > Cc: k...@vger.kernel.org; linux-kernel@vger.kernel.org; > kwankh...@nvidia.com; c...@nvidia.com > Subject: Re: [PATCHv1 7/7] vfio/mdev: Fix race condit

Re: [PATCHv1 7/7] vfio/mdev: Fix race conditions with mdev device life cycle APIs

2019-04-03 Thread Alex Williamson
On Tue, 26 Mar 2019 22:45:45 -0500 Parav Pandit wrote: > Below race condition and call trace exist with current device life cycle > sequence. > > 1. In following sequence, child devices created while removing mdev parent > device can be left out, or it may lead to race of removing half > initial