qemu-ppc
[Top][All Lists]
Advanced

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

[Qemu-ppc] [PATCH 1/3] headers: Sync with Linux header


From: Gavin Shan
Subject: [Qemu-ppc] [PATCH 1/3] headers: Sync with Linux header
Date: Tue, 20 May 2014 18:40:39 +1000

The patch synchronizes with linux header (vfio.h).

Signed-off-by: Gavin Shan <address@hidden>
---
 linux-headers/linux/vfio.h | 43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/linux-headers/linux/vfio.h b/linux-headers/linux/vfio.h
index f0aa97d..d759da1 100644
--- a/linux-headers/linux/vfio.h
+++ b/linux-headers/linux/vfio.h
@@ -490,6 +490,49 @@ struct vfio_iommu_spapr_tce_reset {
 };
 #define VFIO_IOMMU_SPAPR_TCE_RESET     _IO(VFIO_TYPE, VFIO_BASE + 20)
 
+/*
+ * The VFIO operation struct provides way to support EEH functionality
+ * for PCI device that is passed from host to guest via VFIO.
+ */
+#define VFIO_EEH_OP_SET_OPTION 0
+#define VFIO_EEH_OP_GET_ADDR   1
+#define VFIO_EEH_OP_GET_STATE  2
+#define VFIO_EEH_OP_PE_RESET   3
+#define VFIO_EEH_OP_PE_CONFIG  4
+
+struct vfio_eeh_op {
+       __u32 argsz;
+       __u32 op;
+
+       union {
+               struct vfio_eeh_set_option {
+                       __u32 option;
+                       __s32 ret;
+               } option;
+               struct vfio_eeh_pe_addr {
+                       __u32 option;
+                       __s32 ret;
+                       __u32 info;
+               } addr;
+               struct vfio_eeh_pe_state {
+                       __s32 ret;
+                       __u32 reset_state;
+                       __u32 cfg_cap;
+                       __u32 pe_unavail_info;
+                       __u32 pe_recovery_info;
+               } state;
+               struct vfio_eeh_reset {
+                       __u32 option;
+                       __s32 ret;
+               } reset;
+               struct vfio_eeh_config {
+                       __s32 ret;
+               } config;
+       };
+};
+
+#define VFIO_EEH_OP    _IO(VFIO_TYPE, VFIO_BASE + 21)
+
 /* ***************************************************************** */
 
 #endif /* VFIO_H */
-- 
1.8.3.2




reply via email to

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