Skip to content

hisi_acc_vfio_pci: locking updates

Brett Creeley kvm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2hisi_acc_vfio_pci: Change reset_lock to mutex_lockdrivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.h+8 -83 replies
2/2hisi_acc_vfio_pci: Destroy the [state|reset]_mutex on releasedrivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c+11 -11 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchShameer Kolothum
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH vfio 0/2] hisi_acc_vfio_pci: locking updates

The vfio/pds series for locking updates/fixes in the following link made some changes that can also be done for other vendor's vfio drivers. Specifically, changing the reset lock from a spinlock to mutex and also calling mutex_destroy() in the vfio device release callback.

https://lore.kernel.org/kvm/[email protected]/

So, this series makes these changes in order to remain separate from the vfio/pds series linked above.

Note, that I don't have the required hardware to test on this vendor's hardware, so help would be appreciated.

Brett Creeley (2):
hisi_acc_vfio_pci: Change reset_lock to mutex_lock
hisi_acc_vfio_pci: Destroy the [state|reset]_mutex on release

 .../vfio/pci/hisilicon/hisi_acc_vfio_pci.c    | 25 +++++++++++++------
 .../vfio/pci/hisilicon/hisi_acc_vfio_pci.h    |  3 +--
 2 files changed, 19 insertions(+), 9 deletions(-)
Signature · 1 line
2.17.1