Blame SOURCES/kvm-redhat-Update-linux-headers-linux-kvm.h-to-v5.18-rc6.patch

29b115
From 236f216309261bc924e49014267998fdc2ef7f46 Mon Sep 17 00:00:00 2001
29b115
From: Thomas Huth <thuth@redhat.com>
29b115
Date: Fri, 29 Jul 2022 16:55:34 +0200
29b115
Subject: [PATCH 28/32] redhat: Update linux-headers/linux/kvm.h to v5.18-rc6
29b115
29b115
RH-Author: Thomas Huth <thuth@redhat.com>
29b115
RH-MergeRequest: 109: Honor storage keys during emulation of I/O instructions
29b115
RH-Commit: [1/2] f306d7ff8efa64b14158388b95815ac556a25d8a (thuth/qemu-kvm-cs9)
29b115
RH-Bugzilla: 2111994
29b115
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
29b115
RH-Acked-by: David Hildenbrand <david@redhat.com>
29b115
RH-Acked-by: Claudio Imbrenda <None>
29b115
29b115
Upstream Status: RHEL-only
29b115
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2111994
29b115
29b115
Based on upstream commit e4082063e47e9731dbeb1c26174c17f6038f577f
29b115
("linux-headers: Update to v5.18-rc6"), but this is focusing on
29b115
the file linux-headers/linux/kvm.h only (since the other changes
29b115
related to the VFIO renaming might break some stuff).
29b115
29b115
Signed-off-by: Thomas Huth <thuth@redhat.com>
29b115
---
29b115
 linux-headers/linux/kvm.h | 27 +++++++++++++++++++++------
29b115
 1 file changed, 21 insertions(+), 6 deletions(-)
29b115
29b115
diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h
29b115
index d232feaae9..0d05d02ee4 100644
29b115
--- a/linux-headers/linux/kvm.h
29b115
+++ b/linux-headers/linux/kvm.h
29b115
@@ -445,7 +445,11 @@ struct kvm_run {
29b115
 #define KVM_SYSTEM_EVENT_RESET          2
29b115
 #define KVM_SYSTEM_EVENT_CRASH          3
29b115
 			__u32 type;
29b115
-			__u64 flags;
29b115
+			__u32 ndata;
29b115
+			union {
29b115
+				__u64 flags;
29b115
+				__u64 data[16];
29b115
+			};
29b115
 		} system_event;
29b115
 		/* KVM_EXIT_S390_STSI */
29b115
 		struct {
29b115
@@ -562,9 +566,12 @@ struct kvm_s390_mem_op {
29b115
 	__u32 op;		/* type of operation */
29b115
 	__u64 buf;		/* buffer in userspace */
29b115
 	union {
29b115
-		__u8 ar;	/* the access register number */
29b115
+		struct {
29b115
+			__u8 ar;	/* the access register number */
29b115
+			__u8 key;	/* access key, ignored if flag unset */
29b115
+		};
29b115
 		__u32 sida_offset; /* offset into the sida */
29b115
-		__u8 reserved[32]; /* should be set to 0 */
29b115
+		__u8 reserved[32]; /* ignored */
29b115
 	};
29b115
 };
29b115
 /* types for kvm_s390_mem_op->op */
29b115
@@ -572,9 +579,12 @@ struct kvm_s390_mem_op {
29b115
 #define KVM_S390_MEMOP_LOGICAL_WRITE	1
29b115
 #define KVM_S390_MEMOP_SIDA_READ	2
29b115
 #define KVM_S390_MEMOP_SIDA_WRITE	3
29b115
+#define KVM_S390_MEMOP_ABSOLUTE_READ	4
29b115
+#define KVM_S390_MEMOP_ABSOLUTE_WRITE	5
29b115
 /* flags for kvm_s390_mem_op->flags */
29b115
 #define KVM_S390_MEMOP_F_CHECK_ONLY		(1ULL << 0)
29b115
 #define KVM_S390_MEMOP_F_INJECT_EXCEPTION	(1ULL << 1)
29b115
+#define KVM_S390_MEMOP_F_SKEY_PROTECTION	(1ULL << 2)
29b115
 
29b115
 /* for KVM_INTERRUPT */
29b115
 struct kvm_interrupt {
29b115
@@ -1134,6 +1144,12 @@ struct kvm_ppc_resize_hpt {
29b115
 #define KVM_CAP_VM_GPA_BITS 207
29b115
 #define KVM_CAP_XSAVE2 208
29b115
 #define KVM_CAP_SYS_ATTRIBUTES 209
29b115
+#define KVM_CAP_PPC_AIL_MODE_3 210
29b115
+#define KVM_CAP_S390_MEM_OP_EXTENSION 211
29b115
+#define KVM_CAP_PMU_CAPABILITY 212
29b115
+#define KVM_CAP_DISABLE_QUIRKS2 213
29b115
+/* #define KVM_CAP_VM_TSC_CONTROL 214 */
29b115
+#define KVM_CAP_SYSTEM_EVENT_DATA 215
29b115
 
29b115
 #ifdef KVM_CAP_IRQ_ROUTING
29b115
 
29b115
@@ -1624,9 +1640,6 @@ struct kvm_enc_region {
29b115
 #define KVM_S390_NORMAL_RESET	_IO(KVMIO,   0xc3)
29b115
 #define KVM_S390_CLEAR_RESET	_IO(KVMIO,   0xc4)
29b115
 
29b115
-/* Available with KVM_CAP_XSAVE2 */
29b115
-#define KVM_GET_XSAVE2		  _IOR(KVMIO,  0xcf, struct kvm_xsave)
29b115
-
29b115
 struct kvm_s390_pv_sec_parm {
29b115
 	__u64 origin;
29b115
 	__u64 length;
29b115
@@ -1973,6 +1986,8 @@ struct kvm_dirty_gfn {
29b115
 #define KVM_BUS_LOCK_DETECTION_OFF             (1 << 0)
29b115
 #define KVM_BUS_LOCK_DETECTION_EXIT            (1 << 1)
29b115
 
29b115
+#define KVM_PMU_CAP_DISABLE                    (1 << 0)
29b115
+
29b115
 /**
29b115
  * struct kvm_stats_header - Header of per vm/vcpu binary statistics data.
29b115
  * @flags: Some extra information for header, always 0 for now.
29b115
-- 
29b115
2.31.1
29b115