qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH RFC 1/4] linux-headers: Sync vfio.h


From: Gavin Shan
Subject: [Qemu-devel] [PATCH RFC 1/4] linux-headers: Sync vfio.h
Date: Fri, 18 Sep 2015 16:30:13 +1000

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 <address@hidden>
---
 linux-headers/linux/vfio.h | 6 ++++++
 1 file changed, 6 insertions(+)

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;
        };
-- 
2.1.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]