aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSwapnil Ingle <swapnil.ingle@nutanix.com>2021-05-25 15:25:35 +0200
committerGitHub <noreply@github.com>2021-05-25 15:25:35 +0200
commit405f2ffc3125d44c7fde31fe2bb9b312746eb4e1 (patch)
treee2ab2e95b859e71010a574815ba0664a35b02789 /include
parentf74a146a6b93f7bd366853739d8ec0dfc9c4a48f (diff)
downloadlibvfio-user-405f2ffc3125d44c7fde31fe2bb9b312746eb4e1.zip
libvfio-user-405f2ffc3125d44c7fde31fe2bb9b312746eb4e1.tar.gz
libvfio-user-405f2ffc3125d44c7fde31fe2bb9b312746eb4e1.tar.bz2
Handle support of PCI FLR capability (#517)
* Handle support of PCI FLR capability If device supports FLR cap then call vfu_reset_cb_t when FLR is initiated by client. Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com> Reviewed-by: John Levon <john.levon@nutanix.com> Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'include')
-rw-r--r--include/libvfio-user.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/libvfio-user.h b/include/libvfio-user.h
index 6cb817d..009ba83 100644
--- a/include/libvfio-user.h
+++ b/include/libvfio-user.h
@@ -317,12 +317,18 @@ typedef enum vfu_reset_type {
* reset to a known-good initial state (including any PCI register state).
*/
VFU_RESET_DEVICE,
+
/*
* The vfio-user socket client connection was closed or reset. The attached
* context is cleaned up after returning from the reset callback, and
* vfu_attach_ctx() must be called to establish a new client.
*/
- VFU_RESET_LOST_CONN
+ VFU_RESET_LOST_CONN,
+
+ /*
+ * Client requested to initiate PCI function level reset.
+ */
+ VFU_RESET_PCI_FLR
} vfu_reset_type_t;
/*