yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

Blame SOURCES/kvm-linux-headers-Partial-update-against-Linux-5.9-rc4.patch

c687bc
From d9a63d12b5804eb172a040a16d7e725853c41a8c Mon Sep 17 00:00:00 2001
c687bc
From: Thomas Huth <thuth@redhat.com>
c687bc
Date: Wed, 11 Nov 2020 12:03:12 -0500
c687bc
Subject: [PATCH 12/18] linux-headers: Partial update against Linux 5.9-rc4
c687bc
c687bc
RH-Author: Thomas Huth <thuth@redhat.com>
c687bc
Message-id: <20201111120316.707489-9-thuth@redhat.com>
c687bc
Patchwork-id: 99505
c687bc
O-Subject: [RHEL-8.4.0 qemu-kvm PATCH v2 08/12] linux-headers: Partial update against Linux 5.9-rc4
c687bc
Bugzilla: 1798506
c687bc
RH-Acked-by: Jens Freimann <jfreimann@redhat.com>
c687bc
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
c687bc
RH-Acked-by: David Hildenbrand <david@redhat.com>
c687bc
c687bc
Upstream-status: N/A
c687bc
c687bc
This is based on upstream commit e6546342a830e520d14ef03aa95677611de0d90c
c687bc
but only the two files have been included (there were too many conflicts
c687bc
in the other unrelated files, so they have been dropped from this patch).
c687bc
c687bc
Signed-off-by: Thomas Huth <thuth@redhat.com>
c687bc
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
c687bc
---
c687bc
 linux-headers/asm-s390/kvm.h | 7 +++++--
c687bc
 linux-headers/linux/kvm.h    | 6 ++++++
c687bc
 2 files changed, 11 insertions(+), 2 deletions(-)
c687bc
c687bc
diff --git a/linux-headers/asm-s390/kvm.h b/linux-headers/asm-s390/kvm.h
c687bc
index 0138ccb0d89..f053b8304a8 100644
c687bc
--- a/linux-headers/asm-s390/kvm.h
c687bc
+++ b/linux-headers/asm-s390/kvm.h
c687bc
@@ -231,11 +231,13 @@ struct kvm_guest_debug_arch {
c687bc
 #define KVM_SYNC_GSCB   (1UL << 9)
c687bc
 #define KVM_SYNC_BPBC   (1UL << 10)
c687bc
 #define KVM_SYNC_ETOKEN (1UL << 11)
c687bc
+#define KVM_SYNC_DIAG318 (1UL << 12)
c687bc
 
c687bc
 #define KVM_SYNC_S390_VALID_FIELDS \
c687bc
 	(KVM_SYNC_PREFIX | KVM_SYNC_GPRS | KVM_SYNC_ACRS | KVM_SYNC_CRS | \
c687bc
 	 KVM_SYNC_ARCH0 | KVM_SYNC_PFAULT | KVM_SYNC_VRS | KVM_SYNC_RICCB | \
c687bc
-	 KVM_SYNC_FPRS | KVM_SYNC_GSCB | KVM_SYNC_BPBC | KVM_SYNC_ETOKEN)
c687bc
+	 KVM_SYNC_FPRS | KVM_SYNC_GSCB | KVM_SYNC_BPBC | KVM_SYNC_ETOKEN | \
c687bc
+	 KVM_SYNC_DIAG318)
c687bc
 
c687bc
 /* length and alignment of the sdnx as a power of two */
c687bc
 #define SDNXC 8
c687bc
@@ -264,7 +266,8 @@ struct kvm_sync_regs {
c687bc
 	__u8 reserved2 : 7;
c687bc
 	__u8 padding1[51];	/* riccb needs to be 64byte aligned */
c687bc
 	__u8 riccb[64];		/* runtime instrumentation controls block */
c687bc
-	__u8 padding2[192];	/* sdnx needs to be 256byte aligned */
c687bc
+	__u64 diag318;		/* diagnose 0x318 info */
c687bc
+	__u8 padding2[184];	/* sdnx needs to be 256byte aligned */
c687bc
 	union {
c687bc
 		__u8 sdnx[SDNXL];  /* state description annex */
c687bc
 		struct {
c687bc
diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h
c687bc
index 578cd97c0d9..6bba4ec136b 100644
c687bc
--- a/linux-headers/linux/kvm.h
c687bc
+++ b/linux-headers/linux/kvm.h
c687bc
@@ -276,6 +276,7 @@ struct kvm_run {
c687bc
 		/* KVM_EXIT_FAIL_ENTRY */
c687bc
 		struct {
c687bc
 			__u64 hardware_entry_failure_reason;
c687bc
+			__u32 cpu;
c687bc
 		} fail_entry;
c687bc
 		/* KVM_EXIT_EXCEPTION */
c687bc
 		struct {
c687bc
@@ -1011,6 +1012,11 @@ struct kvm_ppc_resize_hpt {
c687bc
 #define KVM_CAP_S390_VCPU_RESETS 179
c687bc
 #define KVM_CAP_S390_PROTECTED 180
c687bc
 #define KVM_CAP_PPC_SECURE_GUEST 181
c687bc
+#define KVM_CAP_HALT_POLL 182
c687bc
+#define KVM_CAP_ASYNC_PF_INT 183
c687bc
+#define KVM_CAP_LAST_CPU 184
c687bc
+#define KVM_CAP_SMALLER_MAXPHYADDR 185
c687bc
+#define KVM_CAP_S390_DIAG318 186
c687bc
 
c687bc
 #ifdef KVM_CAP_IRQ_ROUTING
c687bc
 
c687bc
-- 
c687bc
2.27.0
c687bc