[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
- [Qemu-ppc] [PATCH RFC v3 0/6] EEH Support for VFIO PCI Device, Gavin Shan, 2014/05/14
- [Qemu-ppc] [PATCH 3/6] VFIO: EEH address mapping, Gavin Shan, 2014/05/14
- [Qemu-ppc] [PATCH 6/6] sPAPR: Support error injection, Gavin Shan, 2014/05/14
- [Qemu-ppc] [PATCH 1/6] headers: Sync with Linux header,
Gavin Shan <=
- [Qemu-ppc] [PATCH 2/6] PCI: Add sysdata to PCI bus, Gavin Shan, 2014/05/14
- [Qemu-ppc] [PATCH 4/6] VFIO: Introduce EEH handler, Gavin Shan, 2014/05/14
- [Qemu-ppc] [PATCH 5/6] sPAPR: Support EEH RTAS services, Gavin Shan, 2014/05/14