qemu-ppc
[Top][All Lists]
Advanced

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

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


From: Gavin Shan
Subject: [Qemu-ppc] [PATCH 1/6] headers: Sync with Linux header
Date: Wed, 14 May 2014 14:27:24 +1000

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

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

diff --git a/linux-headers/linux/vfio.h b/linux-headers/linux/vfio.h
index f0aa97d..b5b4c5c 100644
--- a/linux-headers/linux/vfio.h
+++ b/linux-headers/linux/vfio.h
@@ -490,6 +490,63 @@ struct vfio_iommu_spapr_tce_reset {
 };
 #define VFIO_IOMMU_SPAPR_TCE_RESET     _IO(VFIO_TYPE, VFIO_BASE + 20)
 
+/*
+ * The VFIO EEH info struct provides way to support EEH functionality
+ * for PCI device that is passed from host to guest via VFIO.
+ */
+#define VFIO_EEH_OP_MAP                0
+#define VFIO_EEH_OP_UNMAP      1
+#define VFIO_EEH_OP_SET_OPTION 2
+#define VFIO_EEH_OP_GET_ADDR   3
+#define VFIO_EEH_OP_GET_STATE  4
+#define VFIO_EEH_OP_PE_RESET   5
+#define VFIO_EEH_OP_PE_CONFIG  6
+
+struct vfio_eeh_info {
+       __u32 argsz;
+       __u32 op;
+
+       union {
+               struct vfio_eeh_map {
+                       __u32 host_domain;
+                       __u16 host_cfg_addr;
+                       __u64 guest_buid;
+                       __u16 guest_cfg_addr;
+               } map;
+               struct vfio_eeh_unmap {
+                       __u64 buid;
+                       __u16 cfg_addr;
+               } unmap;
+               struct vfio_eeh_set_option {
+                       __u64 buid;
+                       __u32 addr;
+                       __u32 option;
+               } option;
+               struct vfio_eeh_pe_addr {
+                       __u64 buid;
+                       __u32 cfg_addr;
+                       __u32 option;
+                       __u32 ret;
+               } addr;
+               struct vfio_eeh_state {
+                       __u64 buid;
+                       __u32 pe_addr;
+                       __u32 state;
+               } state;
+               struct vfio_eeh_reset {
+                       __u64 buid;
+                       __u32 pe_addr;
+                       __u32 option;
+               } reset;
+               struct vfio_eeh_config {
+                       __u64 buid;
+                       __u32 pe_addr;
+               } config;
+       };
+};
+
+#define VFIO_EEH_INFO  _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]