RE: [PATCHv3 3/3] vfio/mdev: Synchronize device create/remove with parent removal

2019-05-24 Thread Parav Pandit
g; linux- > ker...@vger.kernel.org; kwankh...@nvidia.com; c...@nvidia.com > Subject: Re: [PATCHv3 3/3] vfio/mdev: Synchronize device create/remove with > parent removal > > On Mon, 20 May 2019 19:15:15 + > Parav Pandit wrote: > > > > -Original Message- > >

Re: [PATCHv3 3/3] vfio/mdev: Synchronize device create/remove with parent removal

2019-05-20 Thread Alex Williamson
a.com; alex.william...@redhat.com; c...@nvidia.com > > Subject: Re: [PATCHv3 3/3] vfio/mdev: Synchronize device create/remove > > with parent removal > > > > On Fri, 17 May 2019 14:18:26 + > > Parav Pandit wrote: > > > > > > > @@ -206,14 +214,27

RE: [PATCHv3 3/3] vfio/mdev: Synchronize device create/remove with parent removal

2019-05-20 Thread Parav Pandit
> -Original Message- > From: Cornelia Huck > Sent: Monday, May 20, 2019 6:29 AM > To: Parav Pandit > Cc: k...@vger.kernel.org; linux-kernel@vger.kernel.org; > kwankh...@nvidia.com; alex.william...@redhat.com; c...@nvidia.com > Subject: Re: [PATCHv3 3/3] vfio/mde

Re: [PATCHv3 3/3] vfio/mdev: Synchronize device create/remove with parent removal

2019-05-20 Thread Cornelia Huck
On Fri, 17 May 2019 14:18:26 + Parav Pandit wrote: > > > @@ -206,14 +214,27 @@ void mdev_unregister_device(struct device *dev) > > > dev_info(dev, "MDEV: Unregistering\n"); > > > > > > list_del(&parent->next); > > > + mutex_unlock(&parent_list_lock); > > > + > > > + /* Release the initial

RE: [PATCHv3 3/3] vfio/mdev: Synchronize device create/remove with parent removal

2019-05-17 Thread Parav Pandit
ATCHv3 3/3] vfio/mdev: Synchronize device create/remove > with parent removal > > On Thu, 16 May 2019 18:30:34 -0500 > Parav Pandit wrote: > > > In following sequences, child devices created while removing mdev > > parent device can be left out, or it may lead to race of

Re: [PATCHv3 3/3] vfio/mdev: Synchronize device create/remove with parent removal

2019-05-17 Thread Cornelia Huck
On Thu, 16 May 2019 18:30:34 -0500 Parav Pandit wrote: > In following sequences, child devices created while removing mdev parent > device can be left out, or it may lead to race of removing half > initialized child mdev devices. > > issue-1: > >cpu-0 cpu

[PATCHv3 3/3] vfio/mdev: Synchronize device create/remove with parent removal

2019-05-16 Thread Parav Pandit
In following sequences, child devices created while removing mdev parent device can be left out, or it may lead to race of removing half initialized child mdev devices. issue-1: cpu-0 cpu-1 - -