[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v9 03/21] hw/core: Introduce module-id as the topology subindex
From: |
Zhao Liu |
Subject: |
[PATCH v9 03/21] hw/core: Introduce module-id as the topology subindex |
Date: |
Tue, 27 Feb 2024 18:32:13 +0800 |
From: Zhao Liu <zhao1.liu@intel.com>
Add module-id in CpuInstanceProperties, to locate the CPU with module
level.
Suggested-by: Xiaoyao Li <xiaoyao.li@intel.com>
Tested-by: Yongwei Ma <yongwei.ma@intel.com>
Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
---
Changes since v7:
* New commit to introduce module_id to locate the CPU with module
level.
---
hw/core/machine-hmp-cmds.c | 4 ++++
qapi/machine.json | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/hw/core/machine-hmp-cmds.c b/hw/core/machine-hmp-cmds.c
index a6ff6a487583..8701f00cc7cc 100644
--- a/hw/core/machine-hmp-cmds.c
+++ b/hw/core/machine-hmp-cmds.c
@@ -87,6 +87,10 @@ void hmp_hotpluggable_cpus(Monitor *mon, const QDict *qdict)
monitor_printf(mon, " cluster-id: \"%" PRIu64 "\"\n",
c->cluster_id);
}
+ if (c->has_module_id) {
+ monitor_printf(mon, " module-id: \"%" PRIu64 "\"\n",
+ c->module_id);
+ }
if (c->has_core_id) {
monitor_printf(mon, " core-id: \"%" PRIu64 "\"\n", c->core_id);
}
diff --git a/qapi/machine.json b/qapi/machine.json
index 5233a8947556..32b583ad187f 100644
--- a/qapi/machine.json
+++ b/qapi/machine.json
@@ -933,6 +933,9 @@
# @cluster-id: cluster number within the parent container the CPU
# belongs to (since 7.1)
#
+# @module-id: module number within the parent container the CPU
+# belongs to (since 9.0)
+#
# @core-id: core number within the parent container the CPU
# belongs to
#
@@ -951,6 +954,7 @@
'*socket-id': 'int',
'*die-id': 'int',
'*cluster-id': 'int',
+ '*module-id': 'int',
'*core-id': 'int',
'*thread-id': 'int'
}
--
2.34.1
- [PATCH v9 00/21] Introduce smp.modules for x86 in QEMU, Zhao Liu, 2024/02/27
- [PATCH v9 01/21] hw/core/machine: Introduce the module as a CPU topology level, Zhao Liu, 2024/02/27
- [PATCH v9 02/21] hw/core/machine: Support modules in -smp, Zhao Liu, 2024/02/27
- [PATCH v9 03/21] hw/core: Introduce module-id as the topology subindex,
Zhao Liu <=
- [PATCH v9 04/21] hw/core: Support module-id in numa configuration, Zhao Liu, 2024/02/27
- [PATCH v9 05/21] i386/cpu: Fix i/d-cache topology to core level for Intel CPU, Zhao Liu, 2024/02/27
- [PATCH v9 06/21] i386/cpu: Use APIC ID info to encode cache topo in CPUID[4], Zhao Liu, 2024/02/27
- [PATCH v9 09/21] i386/cpu: Introduce bitmap to cache available CPU topology levels, Zhao Liu, 2024/02/27
- [PATCH v9 10/21] i386: Split topology types of CPUID[0x1F] from the definitions of CPUID[0xB], Zhao Liu, 2024/02/27
- [PATCH v9 11/21] i386/cpu: Decouple CPUID[0x1F] subleaf with specific topology level, Zhao Liu, 2024/02/27
- [PATCH v9 08/21] i386/cpu: Consolidate the use of topo_info in cpu_x86_cpuid(), Zhao Liu, 2024/02/27
- [PATCH v9 07/21] i386/cpu: Use APIC ID info get NumSharingCache for CPUID[0x8000001D].EAX[bits 25:14], Zhao Liu, 2024/02/27