[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 1/6] linux-headers: update
From: |
Eric Farman |
Subject: |
[PATCH v4 1/6] linux-headers: update |
Date: |
Tue, 5 May 2020 14:57:52 +0200 |
From: Farhan Ali <address@hidden>
Signed-off-by: Farhan Ali <address@hidden>
Signed-off-by: Eric Farman <address@hidden>
---
Notes:
v3->v4: [EF]
- Re-ran 4 May 2020 (based on kernel tag v5.7-rc4)
v2->v3: [EF]
- Re-ran 16 April 2020 (based on kernel tag v5.6, and limited to
bits interesting to this series)
v1->v2: [EF]
- Re-ran 3 February 2020 (based on kernel tag v5.5)
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 | 18 ++++++++++++++++++
2 files changed, 21 insertions(+)
diff --git a/linux-headers/linux/vfio.h b/linux-headers/linux/vfio.h
index a41c452865..9c8d889551 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..920a86738b 100644
--- a/linux-headers/linux/vfio_ccw.h
+++ b/linux-headers/linux/vfio_ccw.h
@@ -34,4 +34,22 @@ struct ccw_cmd_region {
__u32 ret_code;
} __attribute__((packed));
+/*
+ * Used for processing commands that read the subchannel-information block
+ * Reading this region triggers a stsch() to hardware
+ * Note: this is controlled by a capability
+ */
+struct ccw_schib_region {
+#define SCHIB_AREA_SIZE 52
+ __u8 schib_area[SCHIB_AREA_SIZE];
+} __attribute__((packed));
+
+/*
+ * Used for returning a Channel Report Word to userspace.
+ * Note: this is controlled by a capability
+ */
+struct ccw_crw_region {
+ __u32 crw;
+} __attribute__((packed));
+
#endif
--
2.17.1
- [PATCH v4 0/6] s390x/vfio-ccw: Channel Path Handling [QEMU], Eric Farman, 2020/05/05
- [PATCH v4 4/6] vfio-ccw: Refactor ccw irq handler, Eric Farman, 2020/05/05
- [PATCH v4 3/6] vfio-ccw: Add support for the schib region, Eric Farman, 2020/05/05
- [PATCH v4 5/6] s390x/css: Refactor the css_queue_crw() routine, Eric Farman, 2020/05/05
- [PATCH v4 1/6] linux-headers: update,
Eric Farman <=
- [PATCH v4 6/6] vfio-ccw: Add support for the CRW region and IRQ, Eric Farman, 2020/05/05
- [PATCH v4 2/6] vfio-ccw: Refactor cleanup of regions, Eric Farman, 2020/05/05
- Re: [PATCH v4 0/6] s390x/vfio-ccw: Channel Path Handling [QEMU], Cornelia Huck, 2020/05/06