|
@@ -470,12 +470,23 @@ struct vfio_iommu_spapr_tce_info {
|
|
|
* - unfreeze IO/DMA for frozen PE;
|
|
|
* - read PE state;
|
|
|
* - reset PE;
|
|
|
- * - configure PE.
|
|
|
+ * - configure PE;
|
|
|
+ * - inject EEH error.
|
|
|
*/
|
|
|
+struct vfio_eeh_pe_err {
|
|
|
+ __u32 type;
|
|
|
+ __u32 func;
|
|
|
+ __u64 addr;
|
|
|
+ __u64 mask;
|
|
|
+};
|
|
|
+
|
|
|
struct vfio_eeh_pe_op {
|
|
|
__u32 argsz;
|
|
|
__u32 flags;
|
|
|
__u32 op;
|
|
|
+ union {
|
|
|
+ struct vfio_eeh_pe_err err;
|
|
|
+ };
|
|
|
};
|
|
|
|
|
|
#define VFIO_EEH_PE_DISABLE 0 /* Disable EEH functionality */
|
|
@@ -492,6 +503,7 @@ struct vfio_eeh_pe_op {
|
|
|
#define VFIO_EEH_PE_RESET_HOT 6 /* Assert hot reset */
|
|
|
#define VFIO_EEH_PE_RESET_FUNDAMENTAL 7 /* Assert fundamental reset */
|
|
|
#define VFIO_EEH_PE_CONFIGURE 8 /* PE configuration */
|
|
|
+#define VFIO_EEH_PE_INJECT_ERR 9 /* Inject EEH error */
|
|
|
|
|
|
#define VFIO_EEH_PE_OP _IO(VFIO_TYPE, VFIO_BASE + 21)
|
|
|
|