diff mbox

[RFC,1/4] linux-headers: Sync vfio.h

Message ID 1442557816-23067-2-git-send-email-gwshan@linux.vnet.ibm.com
State New
Headers show

Commit Message

Gavin Shan Sept. 18, 2015, 6:30 a.m. UTC
This synchronizes the Linux header vfio.h because of the changes
introduced by below Linux commits:

   900facd ("drivers/vfio: Support IOMMU group for EEH operations")
   108f78d ("drivers/vfio: Support EEH API revision")

Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
---
 linux-headers/linux/vfio.h | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox

Patch

diff --git a/linux-headers/linux/vfio.h b/linux-headers/linux/vfio.h
index aa276bc..0cf1c57 100644
--- a/linux-headers/linux/vfio.h
+++ b/linux-headers/linux/vfio.h
@@ -495,6 +495,10 @@  struct vfio_iommu_spapr_tce_info {
  * - configure PE;
  * - inject EEH error.
  */
+#define VFIO_EEH_DISABLED	0
+#define VFIO_EEH_ENABLED_V1	1
+#define VFIO_EEH_ENABLED_V2	2
+
 struct vfio_eeh_pe_err {
 	__u32 type;
 	__u32 func;
@@ -505,7 +509,9 @@  struct vfio_eeh_pe_err {
 struct vfio_eeh_pe_op {
 	__u32 argsz;
 	__u32 flags;
+#define VFIO_EEH_ENABLED_MASK	0xFF
 	__u32 op;
+	__u32 groupid;
 	union {
 		struct vfio_eeh_pe_err err;
 	};