Re: [PATCH v2 0/6] Fully lock the container members of struct vfio_group

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/17/22 1:11 AM, Nicolin Chen wrote:
On Mon, May 16, 2022 at 08:41:16PM -0300, Jason Gunthorpe wrote:
The atomic based scheme for tracking the group->container and group->kvm
has two race conditions, simplify it by adding a rwsem to protect those
values and related and remove the atomics.

This is on github: https://github.com/jgunthorpe/linux/commits/vfio_group_locking

v2:
  - Updated comments and commit messages
  - Rebased on vfio next
  - Left the dev_warn in place, will adjust it later
  - s/singleton_file/opened_file/
v1: https://lore.kernel.org/r/0-v1-c1d14aae2e8f+2f4-vfio_group_locking_jgg@xxxxxxxxxx

Cc: Nicolin Chen <nicolinc@xxxxxxxxxx>

Sanity tested on x86_64 and ARM64.

Tested-by: Nicolin Chen <nicolinc@xxxxxxxxxx>

Also sanity tested this series on s390x (vfio-pci and vfio-ap)

Tested-by: Matthew Rosato <mjrosato@xxxxxxxxxxxxx>



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux