vfio: Add and use device request op for vfio bus drivers
authorAlex Williamson <alex.williamson@redhat.com>
Fri, 6 Feb 2015 22:05:07 +0000 (15:05 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 10 Feb 2015 19:37:47 +0000 (12:37 -0700)
commit13060b64b819c194909121b90b5f8dd9abb5ea4e
tree3fc90f7744d110341d191dd44fe228c70422bd69
parent4a68810dbbb4664fe4a9ac1be4d1c0e34a9b58f5
vfio: Add and use device request op for vfio bus drivers

When a request is made to unbind a device from a vfio bus driver,
we need to wait for the device to become unused, ie. for userspace
to release the device.  However, we have a long standing TODO in
the code to do something proactive to make that happen.  To enable
this, we add a request callback on the vfio bus driver struct,
which is intended to signal the user through the vfio device
interface to release the device.  Instead of passively waiting for
the device to become unused, we can now pester the user to give
it up.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio.c
include/linux/vfio.h
This page took 0.028261 seconds and 5 git commands to generate.