RE: [PATCH v2 08/13] vfio/pci: protect cap/ecap_perm bits alloc/free with atomic op

2019-09-30 Thread Liu, Yi L
Hi Alex, > From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Thursday, September 26, 2019 10:36 AM > To: Liu, Yi L > Subject: Re: [PATCH v2 08/13] vfio/pci: protect cap/ecap_perm bits alloc/free > with > atomic op > > On Thu, 5 Sep 2019 15:59:25

Re: [PATCH v2 08/13] vfio/pci: protect cap/ecap_perm bits alloc/free with atomic op

2019-09-25 Thread Alex Williamson
On Thu, 5 Sep 2019 15:59:25 +0800 Liu Yi L wrote: > There is a case in which cap_perms and ecap_perms can be reallocated > by different modules. e.g. the vfio-mdev-pci sample driver. To secure > the initialization of cap_perms and ecap_perms, this patch adds an > atomic variable to track the use

[PATCH v2 08/13] vfio/pci: protect cap/ecap_perm bits alloc/free with atomic op

2019-09-06 Thread Liu Yi L
There is a case in which cap_perms and ecap_perms can be reallocated by different modules. e.g. the vfio-mdev-pci sample driver. To secure the initialization of cap_perms and ecap_perms, this patch adds an atomic variable to track the user of cap/ecap_perms bits. First caller of vfio_pci_init_perm_