RE: [PATCHv2 10/10] vfio/mdev: Synchronize device create/remove with parent removal

2019-05-09 Thread Parav Pandit
> -Original Message- > From: Cornelia Huck > Sent: Thursday, May 9, 2019 4:49 AM > To: Alex Williamson > Cc: Parav Pandit ; k...@vger.kernel.org; linux- > ker...@vger.kernel.org; kwankh...@nvidia.com; c...@nvidia.com > Subject: Re: [PATCHv2 10/10] vfio/mdev: Sync

RE: [PATCHv2 10/10] vfio/mdev: Synchronize device create/remove with parent removal

2019-05-09 Thread Parav Pandit
> -Original Message- > From: Alex Williamson > Sent: Wednesday, May 8, 2019 9:46 PM > To: Parav Pandit > Cc: k...@vger.kernel.org; linux-kernel@vger.kernel.org; > kwankh...@nvidia.com; c...@nvidia.com > Subject: Re: [PATCHv2 10/10] vfio/mdev: Synchronize device

Re: [PATCHv2 10/10] vfio/mdev: Synchronize device create/remove with parent removal

2019-05-09 Thread Cornelia Huck
On Wed, 8 May 2019 20:46:05 -0600 Alex Williamson wrote: > On Tue, 30 Apr 2019 17:49:37 -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 devic

Re: [PATCHv2 10/10] vfio/mdev: Synchronize device create/remove with parent removal

2019-05-08 Thread Alex Williamson
On Tue, 30 Apr 2019 17:49:37 -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

[PATCHv2 10/10] vfio/mdev: Synchronize device create/remove with parent removal

2019-04-30 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 - -