diff options
author | Yishai Hadas <yishaih@nvidia.com> | 2022-02-24 16:20:23 +0200 |
---|---|---|
committer | Leon Romanovsky <leonro@nvidia.com> | 2022-03-03 13:01:19 +0200 |
commit | 915076f70efad04bf6fc843970a3c7763487011a (patch) | |
tree | 51ae45d6fe32134f89c77346b30b8bdff79479ba /include/linux/vfio_pci_core.h | |
parent | 6fadb021266d03c5fd7bca2cfa1607efd246dad1 (diff) | |
download | lwn-915076f70efad04bf6fc843970a3c7763487011a.tar.gz lwn-915076f70efad04bf6fc843970a3c7763487011a.zip |
vfio/pci: Expose vfio_pci_core_aer_err_detected()
Expose vfio_pci_core_aer_err_detected() to be used by drivers as part of
their pci_error_handlers structure.
Next patch for mlx5 driver will use it.
Link: https://lore.kernel.org/all/20220224142024.147653-15-yishaih@nvidia.com
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Diffstat (limited to 'include/linux/vfio_pci_core.h')
-rw-r--r-- | include/linux/vfio_pci_core.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/vfio_pci_core.h b/include/linux/vfio_pci_core.h index beba0b2ed87d..9f1bf8e49d43 100644 --- a/include/linux/vfio_pci_core.h +++ b/include/linux/vfio_pci_core.h @@ -232,6 +232,8 @@ int vfio_pci_core_match(struct vfio_device *core_vdev, char *buf); int vfio_pci_core_enable(struct vfio_pci_core_device *vdev); void vfio_pci_core_disable(struct vfio_pci_core_device *vdev); void vfio_pci_core_finish_enable(struct vfio_pci_core_device *vdev); +pci_ers_result_t vfio_pci_core_aer_err_detected(struct pci_dev *pdev, + pci_channel_state_t state); static inline bool vfio_pci_is_vga(struct pci_dev *pdev) { |