[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v8 01/12] Update Linux Headers
From: |
Pierre Morel |
Subject: |
[PATCH v8 01/12] Update Linux Headers |
Date: |
Mon, 20 Jun 2022 16:03:41 +0200 |
This does not belong to the serie.
It is only there to facilitate review with the coresponding
linux series: [PATCH v10 0/3] s390x: KVM: CPU Topology
Signed-off-by: Pierre Morel <pmorel@linux.ibm.com>
---
linux-headers/asm-s390/kvm.h | 9 +++++++++
linux-headers/linux/kvm.h | 1 +
2 files changed, 10 insertions(+)
diff --git a/linux-headers/asm-s390/kvm.h b/linux-headers/asm-s390/kvm.h
index f053b8304a..2bad030b8c 100644
--- a/linux-headers/asm-s390/kvm.h
+++ b/linux-headers/asm-s390/kvm.h
@@ -74,6 +74,7 @@ struct kvm_s390_io_adapter_req {
#define KVM_S390_VM_CRYPTO 2
#define KVM_S390_VM_CPU_MODEL 3
#define KVM_S390_VM_MIGRATION 4
+#define KVM_S390_VM_CPU_TOPOLOGY 5
/* kvm attributes for mem_ctrl */
#define KVM_S390_VM_MEM_ENABLE_CMMA 0
@@ -171,6 +172,14 @@ struct kvm_s390_vm_cpu_subfunc {
#define KVM_S390_VM_MIGRATION_START 1
#define KVM_S390_VM_MIGRATION_STATUS 2
+/* kvm attributes for cpu topology */
+#define KVM_S390_VM_CPU_TOPO_MTR_CLEAR 0
+#define KVM_S390_VM_CPU_TOPO_MTR_SET 1
+
+struct kvm_s390_cpu_topology {
+ __u16 mtcr;
+};
+
/* for KVM_GET_REGS and KVM_SET_REGS */
struct kvm_regs {
/* general purpose regs for s390 */
diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h
index 0d05d02ee4..83f7a49a30 100644
--- a/linux-headers/linux/kvm.h
+++ b/linux-headers/linux/kvm.h
@@ -1150,6 +1150,7 @@ struct kvm_ppc_resize_hpt {
#define KVM_CAP_DISABLE_QUIRKS2 213
/* #define KVM_CAP_VM_TSC_CONTROL 214 */
#define KVM_CAP_SYSTEM_EVENT_DATA 215
+#define KVM_CAP_S390_CPU_TOPOLOGY 217
#ifdef KVM_CAP_IRQ_ROUTING
--
2.31.1
- [PATCH v8 00/12] s390x: CPU Topology, Pierre Morel, 2022/06/20
- [PATCH v8 04/12] s390x/cpu_topology: Adding books to CPU topology, Pierre Morel, 2022/06/20
- [PATCH v8 01/12] Update Linux Headers,
Pierre Morel <=
- [PATCH v8 05/12] s390x/cpu_topology: Adding books to STSI, Pierre Morel, 2022/06/20
- [PATCH v8 03/12] s390x/cpu_topology: implementating Store Topology System Information, Pierre Morel, 2022/06/20
- [PATCH v8 07/12] s390x/cpu_topology: Adding drawers to STSI, Pierre Morel, 2022/06/20
- [PATCH v8 11/12] s390x/cpu_topology: CPU topology migration, Pierre Morel, 2022/06/20
- [PATCH v8 02/12] s390x/cpu_topology: CPU topology objects and structures, Pierre Morel, 2022/06/20