[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH v2 2/7] linux-headers: update
From: |
Eric Farman |
Subject: |
[RFC PATCH v2 2/7] linux-headers: update |
Date: |
Thu, 6 Feb 2020 22:45:04 +0100 |
From: Farhan Ali <address@hidden>
Signed-off-by: Farhan Ali <address@hidden>
Signed-off-by: Eric Farman <address@hidden>
---
Notes:
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/
include/standard-headers/linux/input.h | 1 +
linux-headers/asm-arm64/unistd.h | 1 +
linux-headers/linux/vfio.h | 3 +++
linux-headers/linux/vfio_ccw.h | 19 +++++++++++++++++++
4 files changed, 24 insertions(+)
diff --git a/include/standard-headers/linux/input.h
b/include/standard-headers/linux/input.h
index d8914f25a5..f89c986190 100644
--- a/include/standard-headers/linux/input.h
+++ b/include/standard-headers/linux/input.h
@@ -31,6 +31,7 @@ struct input_event {
unsigned long __sec;
#if defined(__sparc__) && defined(__arch64__)
unsigned int __usec;
+ unsigned int __pad;
#else
unsigned long __usec;
#endif
diff --git a/linux-headers/asm-arm64/unistd.h b/linux-headers/asm-arm64/unistd.h
index 4703d21866..f83a70e07d 100644
--- a/linux-headers/asm-arm64/unistd.h
+++ b/linux-headers/asm-arm64/unistd.h
@@ -19,5 +19,6 @@
#define __ARCH_WANT_NEW_STAT
#define __ARCH_WANT_SET_GET_RLIMIT
#define __ARCH_WANT_TIME32_SYSCALLS
+#define __ARCH_WANT_SYS_CLONE3
#include <asm-generic/unistd.h>
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..c56c1a621c 100644
--- a/linux-headers/linux/vfio_ccw.h
+++ b/linux-headers/linux/vfio_ccw.h
@@ -34,4 +34,23 @@ 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 Channel Report Word(s) to userspace.
+ * Note: this is controlled by a capability
+ */
+struct ccw_crw_region {
+ __u32 crw0;
+ __u32 crw1;
+} __attribute__((packed));
+
#endif
--
2.17.1
- [RFC PATCH v2 0/7] s390x/vfio_ccw: Channel Path Handling [QEMU], Eric Farman, 2020/02/06
- [RFC PATCH v2 2/7] linux-headers: update,
Eric Farman <=
- [RFC PATCH v2 5/7] vfio-ccw: Add support for the crw region, Eric Farman, 2020/02/06
- [RFC PATCH v2 3/7] vfio-ccw: Refactor cleanup of regions, Eric Farman, 2020/02/06
- [RFC PATCH v2 1/7] vfio-ccw: Return IOINST_CC_NOT_OPERATIONAL for EIO, Eric Farman, 2020/02/06
- [RFC PATCH v2 7/7] vfio-ccw: Add support for the CRW irq, Eric Farman, 2020/02/06
- [RFC PATCH v2 6/7] vfio-ccw: Refactor ccw irq handler, Eric Farman, 2020/02/06
- [RFC PATCH v2 4/7] vfio-ccw: Add support for the schib region, Eric Farman, 2020/02/06