2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-19 10:44:14 +08:00
linux-next/drivers/vfio/mdev
Alex Williamson 6a62c1dfb5 vfio/mdev: Re-order sysfs attribute creation
There exists a gap at the end of mdev_device_create() where the device
is visible to userspace, but we're not yet ready to handle removal, as
triggered through the 'remove' attribute.  We handle this properly in
mdev_device_remove() with an -EAGAIN return, but we can marginally
reduce this gap by adding this attribute as a final step of our sysfs
setup.

Reviewed-by: Kirti Wankhede <kwankhede@nvidia.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Acked-by: Halil Pasic <pasic@linux.ibm.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
2018-06-08 10:24:30 -06:00
..
Kconfig docs: Add Documentation for Mediated devices 2016-11-17 08:33:20 -07:00
Makefile
mdev_core.c vfio/mdev: Check globally for duplicate devices 2018-06-08 10:24:27 -06:00
mdev_driver.c
mdev_private.h vfio/mdev: Check globally for duplicate devices 2018-06-08 10:24:27 -06:00
mdev_sysfs.c vfio/mdev: Re-order sysfs attribute creation 2018-06-08 10:24:30 -06:00
vfio_mdev.c vfio: mdev: make a couple of functions and structure vfio_mdev_driver static 2018-01-09 12:13:08 -07:00