[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH v1 3/8] linux-headers: update
From: |
Eric Farman |
Subject: |
[RFC PATCH v1 3/8] linux-headers: update |
Date: |
Fri, 15 Nov 2019 04:34:32 +0100 |
From: Farhan Ali <address@hidden>
Signed-off-by: Farhan Ali <address@hidden>
Signed-off-by: Eric Farman <address@hidden>
---
Notes:
v0->v1: [EF]
- Run scripts/update-linux-headers.sh properly, but do not
add resulting changes to linux-headers/asm-mips/
linux-headers/linux/vfio.h | 3 +++
linux-headers/linux/vfio_ccw.h | 10 ++++++++++
2 files changed, 13 insertions(+)
diff --git a/linux-headers/linux/vfio.h b/linux-headers/linux/vfio.h
index fb10370d29..9e227348b3 100644
--- a/linux-headers/linux/vfio.h
+++ b/linux-headers/linux/vfio.h
@@ -378,6 +378,8 @@ struct vfio_region_gfx_edid {
/* sub-types for VFIO_REGION_TYPE_CCW */
#define VFIO_REGION_SUBTYPE_CCW_ASYNC_CMD (1)
+#define VFIO_REGION_SUBTYPE_CCW_SCHIB (2)
+#define VFIO_REGION_SUBTYPE_CCW_CRW (3)
/*
* The MSIX mappable capability informs that MSIX data of a BAR can be mmapped
@@ -577,6 +579,7 @@ enum {
enum {
VFIO_CCW_IO_IRQ_INDEX,
+ VFIO_CCW_CRW_IRQ_INDEX,
VFIO_CCW_NUM_IRQS
};
diff --git a/linux-headers/linux/vfio_ccw.h b/linux-headers/linux/vfio_ccw.h
index fcc3e69ef5..8654c9afca 100644
--- a/linux-headers/linux/vfio_ccw.h
+++ b/linux-headers/linux/vfio_ccw.h
@@ -34,4 +34,14 @@ struct ccw_cmd_region {
__u32 ret_code;
} __attribute__((packed));
+struct ccw_schib_region {
+#define SCHIB_AREA_SIZE 52
+ __u8 schib_area[SCHIB_AREA_SIZE];
+} __attribute__((packed));
+
+struct ccw_crw_region {
+ __u32 crw0;
+ __u32 crw1;
+} __attribute__((packed));
+
#endif
--
2.17.1
- [RFC PATCH v1 0/8] s390x/vfio-ccw: Channel Path Handling, Eric Farman, 2019/11/14
- [RFC PATCH v1 3/8] linux-headers: update,
Eric Farman <=
- [RFC PATCH v1 2/8] vfio-ccw: Don't inject an I/O interrupt if the subchannel is not enabled, Eric Farman, 2019/11/14
- [RFC PATCH v1 8/8] vfio-ccw: Add support for the CRW irq, Eric Farman, 2019/11/14
- [RFC PATCH v1 5/8] vfio-ccw: Add support for the schib region, Eric Farman, 2019/11/14
- [RFC PATCH v1 6/8] vfio-ccw: Add support for the crw region, Eric Farman, 2019/11/14
- [RFC PATCH v1 1/8] vfio-ccw: Return IOINST_CC_NOT_OPERATIONAL for EIO, Eric Farman, 2019/11/14