diff options
author | Sinan Kaya <okaya@codeaurora.org> | 2016-07-19 09:01:46 -0400 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2016-07-19 10:26:44 -0600 |
commit | d30daa33ec1d035acfdfc7662d7a5360592af44c (patch) | |
tree | 1ce71778d5c55adade4c911258d797028359d35b /lib/strncpy_from_user.c | |
parent | 5afec27474fdc52e9d80b359ce10fab59c85d131 (diff) |
vfio: platform: call _RST method when using ACPI
The device tree code checks for the presence of a reset driver and calls
the of_reset function pointer by looking up the reset driver as a module.
ACPI defines _RST method to perform device level reset. After the _RST
method is executed, the OS can resume using the device. _RST method is
expected to stop DMA transfers and IRQs.
This patch introduces two functions as vfio_platform_acpi_has_reset and
vfio_platform_acpi_call_reset. The has reset method is used to declare
reset capability via the ioctl flag VFIO_DEVICE_FLAGS_RESET. The call
reset function is used to execute the _RST ACPI method.
Signed-off-by: Sinan Kaya <okaya@codeaurora.org>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'lib/strncpy_from_user.c')
0 files changed, 0 insertions, 0 deletions