|
|
9bac43 |
From 170662bb45c6a4290391c8f896e437b5dc67e229 Mon Sep 17 00:00:00 2001
|
|
|
9bac43 |
From: Thomas Huth <thuth@redhat.com>
|
|
|
9bac43 |
Date: Tue, 23 Jan 2018 19:12:44 +0100
|
|
|
9bac43 |
Subject: [PATCH 2/8] linux-headers: update
|
|
|
9bac43 |
|
|
|
9bac43 |
RH-Author: Thomas Huth <thuth@redhat.com>
|
|
|
9bac43 |
Message-id: <1516734766-12075-2-git-send-email-thuth@redhat.com>
|
|
|
9bac43 |
Patchwork-id: 78699
|
|
|
9bac43 |
O-Subject: [RHEL-7.5 qemu-kvm-ma PATCH 1/3] linux-headers: update
|
|
|
9bac43 |
Bugzilla: 1535606
|
|
|
9bac43 |
RH-Acked-by: David Hildenbrand <david@redhat.com>
|
|
|
9bac43 |
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
|
|
|
9bac43 |
RH-Acked-by: Jens Freimann <jfreimann@redhat.com>
|
|
|
9bac43 |
|
|
|
9bac43 |
From: Cornelia Huck <cohuck@redhat.com>
|
|
|
9bac43 |
|
|
|
9bac43 |
Update headers against 4.15-rc9.
|
|
|
9bac43 |
|
|
|
9bac43 |
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
|
|
|
9bac43 |
(cherry picked from commit 9cbb636270b4df6f0a548e5c34b895330db5df8b)
|
|
|
9bac43 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9bac43 |
|
|
|
9bac43 |
Conflicts:
|
|
|
9bac43 |
include/standard-headers/asm-s390/virtio-ccw.h
|
|
|
9bac43 |
linux-headers/linux/kvm.h
|
|
|
9bac43 |
(simple conflicts since commit dd8739669f95b3065 was missing)
|
|
|
9bac43 |
|
|
|
9bac43 |
Signed-off-by: Thomas Huth <thuth@redhat.com>
|
|
|
9bac43 |
---
|
|
|
9bac43 |
include/standard-headers/asm-s390/virtio-ccw.h | 5 +----
|
|
|
9bac43 |
linux-headers/asm-powerpc/kvm.h | 25 +++++++++++++++++++++++++
|
|
|
9bac43 |
linux-headers/asm-s390/kvm.h | 9 ++++-----
|
|
|
9bac43 |
linux-headers/asm-s390/kvm_para.h | 4 ----
|
|
|
9bac43 |
linux-headers/linux/kvm.h | 9 +++++++--
|
|
|
9bac43 |
5 files changed, 37 insertions(+), 15 deletions(-)
|
|
|
9bac43 |
|
|
|
9bac43 |
diff --git a/include/standard-headers/asm-s390/virtio-ccw.h b/include/standard-headers/asm-s390/virtio-ccw.h
|
|
|
9bac43 |
index a9a4ebf..2b605f7 100644
|
|
|
9bac43 |
--- a/include/standard-headers/asm-s390/virtio-ccw.h
|
|
|
9bac43 |
+++ b/include/standard-headers/asm-s390/virtio-ccw.h
|
|
|
9bac43 |
@@ -1,12 +1,9 @@
|
|
|
9bac43 |
+/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */
|
|
|
9bac43 |
/*
|
|
|
9bac43 |
* Definitions for virtio-ccw devices.
|
|
|
9bac43 |
*
|
|
|
9bac43 |
* Copyright IBM Corp. 2013
|
|
|
9bac43 |
*
|
|
|
9bac43 |
- * This program is free software; you can redistribute it and/or modify
|
|
|
9bac43 |
- * it under the terms of the GNU General Public License (version 2 only)
|
|
|
9bac43 |
- * as published by the Free Software Foundation.
|
|
|
9bac43 |
- *
|
|
|
9bac43 |
* Author(s): Cornelia Huck <cornelia.huck@de.ibm.com>
|
|
|
9bac43 |
*/
|
|
|
9bac43 |
#ifndef __KVM_VIRTIO_CCW_H
|
|
|
9bac43 |
diff --git a/linux-headers/asm-powerpc/kvm.h b/linux-headers/asm-powerpc/kvm.h
|
|
|
9bac43 |
index 8cf8f0c..a1cb407 100644
|
|
|
9bac43 |
--- a/linux-headers/asm-powerpc/kvm.h
|
|
|
9bac43 |
+++ b/linux-headers/asm-powerpc/kvm.h
|
|
|
9bac43 |
@@ -442,6 +442,31 @@ struct kvm_ppc_rmmu_info {
|
|
|
9bac43 |
__u32 ap_encodings[8];
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
+/* For KVM_PPC_GET_CPU_CHAR */
|
|
|
9bac43 |
+struct kvm_ppc_cpu_char {
|
|
|
9bac43 |
+ __u64 character; /* characteristics of the CPU */
|
|
|
9bac43 |
+ __u64 behaviour; /* recommended software behaviour */
|
|
|
9bac43 |
+ __u64 character_mask; /* valid bits in character */
|
|
|
9bac43 |
+ __u64 behaviour_mask; /* valid bits in behaviour */
|
|
|
9bac43 |
+};
|
|
|
9bac43 |
+
|
|
|
9bac43 |
+/*
|
|
|
9bac43 |
+ * Values for character and character_mask.
|
|
|
9bac43 |
+ * These are identical to the values used by H_GET_CPU_CHARACTERISTICS.
|
|
|
9bac43 |
+ */
|
|
|
9bac43 |
+#define KVM_PPC_CPU_CHAR_SPEC_BAR_ORI31 (1ULL << 63)
|
|
|
9bac43 |
+#define KVM_PPC_CPU_CHAR_BCCTRL_SERIALISED (1ULL << 62)
|
|
|
9bac43 |
+#define KVM_PPC_CPU_CHAR_L1D_FLUSH_ORI30 (1ULL << 61)
|
|
|
9bac43 |
+#define KVM_PPC_CPU_CHAR_L1D_FLUSH_TRIG2 (1ULL << 60)
|
|
|
9bac43 |
+#define KVM_PPC_CPU_CHAR_L1D_THREAD_PRIV (1ULL << 59)
|
|
|
9bac43 |
+#define KVM_PPC_CPU_CHAR_BR_HINT_HONOURED (1ULL << 58)
|
|
|
9bac43 |
+#define KVM_PPC_CPU_CHAR_MTTRIG_THR_RECONF (1ULL << 57)
|
|
|
9bac43 |
+#define KVM_PPC_CPU_CHAR_COUNT_CACHE_DIS (1ULL << 56)
|
|
|
9bac43 |
+
|
|
|
9bac43 |
+#define KVM_PPC_CPU_BEHAV_FAVOUR_SECURITY (1ULL << 63)
|
|
|
9bac43 |
+#define KVM_PPC_CPU_BEHAV_L1D_FLUSH_PR (1ULL << 62)
|
|
|
9bac43 |
+#define KVM_PPC_CPU_BEHAV_BNDS_CHK_SPEC_BAR (1ULL << 61)
|
|
|
9bac43 |
+
|
|
|
9bac43 |
/* Per-vcpu XICS interrupt controller state */
|
|
|
9bac43 |
#define KVM_REG_PPC_ICP_STATE (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x8c)
|
|
|
9bac43 |
|
|
|
9bac43 |
diff --git a/linux-headers/asm-s390/kvm.h b/linux-headers/asm-s390/kvm.h
|
|
|
9bac43 |
index 8387d71..08ee46a 100644
|
|
|
9bac43 |
--- a/linux-headers/asm-s390/kvm.h
|
|
|
9bac43 |
+++ b/linux-headers/asm-s390/kvm.h
|
|
|
9bac43 |
@@ -5,10 +5,6 @@
|
|
|
9bac43 |
*
|
|
|
9bac43 |
* Copyright IBM Corp. 2008
|
|
|
9bac43 |
*
|
|
|
9bac43 |
- * This program is free software; you can redistribute it and/or modify
|
|
|
9bac43 |
- * it under the terms of the GNU General Public License (version 2 only)
|
|
|
9bac43 |
- * as published by the Free Software Foundation.
|
|
|
9bac43 |
- *
|
|
|
9bac43 |
* Author(s): Carsten Otte <cotte@de.ibm.com>
|
|
|
9bac43 |
* Christian Borntraeger <borntraeger@de.ibm.com>
|
|
|
9bac43 |
*/
|
|
|
9bac43 |
@@ -221,6 +217,7 @@ struct kvm_guest_debug_arch {
|
|
|
9bac43 |
#define KVM_SYNC_RICCB (1UL << 7)
|
|
|
9bac43 |
#define KVM_SYNC_FPRS (1UL << 8)
|
|
|
9bac43 |
#define KVM_SYNC_GSCB (1UL << 9)
|
|
|
9bac43 |
+#define KVM_SYNC_BPBC (1UL << 10)
|
|
|
9bac43 |
/* length and alignment of the sdnx as a power of two */
|
|
|
9bac43 |
#define SDNXC 8
|
|
|
9bac43 |
#define SDNXL (1UL << SDNXC)
|
|
|
9bac43 |
@@ -244,7 +241,9 @@ struct kvm_sync_regs {
|
|
|
9bac43 |
};
|
|
|
9bac43 |
__u8 reserved[512]; /* for future vector expansion */
|
|
|
9bac43 |
__u32 fpc; /* valid on KVM_SYNC_VRS or KVM_SYNC_FPRS */
|
|
|
9bac43 |
- __u8 padding1[52]; /* riccb needs to be 64byte aligned */
|
|
|
9bac43 |
+ __u8 bpbc : 1; /* bp mode */
|
|
|
9bac43 |
+ __u8 reserved2 : 7;
|
|
|
9bac43 |
+ __u8 padding1[51]; /* riccb needs to be 64byte aligned */
|
|
|
9bac43 |
__u8 riccb[64]; /* runtime instrumentation controls block */
|
|
|
9bac43 |
__u8 padding2[192]; /* sdnx needs to be 256byte aligned */
|
|
|
9bac43 |
union {
|
|
|
9bac43 |
diff --git a/linux-headers/asm-s390/kvm_para.h b/linux-headers/asm-s390/kvm_para.h
|
|
|
9bac43 |
index ff1f4e7..1a81ec9 100644
|
|
|
9bac43 |
--- a/linux-headers/asm-s390/kvm_para.h
|
|
|
9bac43 |
+++ b/linux-headers/asm-s390/kvm_para.h
|
|
|
9bac43 |
@@ -3,9 +3,5 @@
|
|
|
9bac43 |
*
|
|
|
9bac43 |
* Copyright IBM Corp. 2008
|
|
|
9bac43 |
*
|
|
|
9bac43 |
- * This program is free software; you can redistribute it and/or modify
|
|
|
9bac43 |
- * it under the terms of the GNU General Public License (version 2 only)
|
|
|
9bac43 |
- * as published by the Free Software Foundation.
|
|
|
9bac43 |
- *
|
|
|
9bac43 |
* Author(s): Christian Borntraeger <borntraeger@de.ibm.com>
|
|
|
9bac43 |
*/
|
|
|
9bac43 |
diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h
|
|
|
9bac43 |
index 7971a4f..fabd075 100644
|
|
|
9bac43 |
--- a/linux-headers/linux/kvm.h
|
|
|
9bac43 |
+++ b/linux-headers/linux/kvm.h
|
|
|
9bac43 |
@@ -629,9 +629,9 @@ struct kvm_s390_irq {
|
|
|
9bac43 |
|
|
|
9bac43 |
struct kvm_s390_irq_state {
|
|
|
9bac43 |
__u64 buf;
|
|
|
9bac43 |
- __u32 flags;
|
|
|
9bac43 |
+ __u32 flags; /* will stay unused for compatibility reasons */
|
|
|
9bac43 |
__u32 len;
|
|
|
9bac43 |
- __u32 reserved[4];
|
|
|
9bac43 |
+ __u32 reserved[4]; /* will stay unused for compatibility reasons */
|
|
|
9bac43 |
};
|
|
|
9bac43 |
|
|
|
9bac43 |
/* for KVM_SET_GUEST_DEBUG */
|
|
|
9bac43 |
@@ -929,6 +929,9 @@ struct kvm_ppc_resize_hpt {
|
|
|
9bac43 |
#define KVM_CAP_PPC_SMT_POSSIBLE 147
|
|
|
9bac43 |
#define KVM_CAP_HYPERV_SYNIC2 148
|
|
|
9bac43 |
#define KVM_CAP_HYPERV_VP_INDEX 149
|
|
|
9bac43 |
+#define KVM_CAP_S390_AIS_MIGRATION 150
|
|
|
9bac43 |
+#define KVM_CAP_PPC_GET_CPU_CHAR 151
|
|
|
9bac43 |
+#define KVM_CAP_S390_BPB 152
|
|
|
9bac43 |
|
|
|
9bac43 |
#ifdef KVM_CAP_IRQ_ROUTING
|
|
|
9bac43 |
|
|
|
9bac43 |
@@ -1258,6 +1261,8 @@ struct kvm_s390_ucas_mapping {
|
|
|
9bac43 |
#define KVM_PPC_CONFIGURE_V3_MMU _IOW(KVMIO, 0xaf, struct kvm_ppc_mmuv3_cfg)
|
|
|
9bac43 |
/* Available with KVM_CAP_PPC_RADIX_MMU */
|
|
|
9bac43 |
#define KVM_PPC_GET_RMMU_INFO _IOW(KVMIO, 0xb0, struct kvm_ppc_rmmu_info)
|
|
|
9bac43 |
+/* Available with KVM_CAP_PPC_GET_CPU_CHAR */
|
|
|
9bac43 |
+#define KVM_PPC_GET_CPU_CHAR _IOR(KVMIO, 0xb1, struct kvm_ppc_cpu_char)
|
|
|
9bac43 |
|
|
|
9bac43 |
/* ioctl for vm fd */
|
|
|
9bac43 |
#define KVM_CREATE_DEVICE _IOWR(KVMIO, 0xe0, struct kvm_create_device)
|
|
|
9bac43 |
--
|
|
|
9bac43 |
1.8.3.1
|
|
|
9bac43 |
|