[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC v2 11/15] hw/core: Support topology tree in none machine for compat
From: |
Zhao Liu |
Subject: |
[RFC v2 11/15] hw/core: Support topology tree in none machine for compatibility |
Date: |
Thu, 19 Sep 2024 09:55:29 +0800 |
None machine accepts any CPU types, even some CPUs may have the
bus_type.
To address this, set topo_tree_supported as true for none machine, then
none machine will have a CPU slot with CPU bus to collect any topology
device with bus_type specified.
And since arch_id_topo_level is not set, the topology devices will be
directly inserted under the CPU slot without being organized into a tree
structure.
For the CPUs without bus_type, topo_tree_supported will not affect them.
Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
---
hw/core/null-machine.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/hw/core/null-machine.c b/hw/core/null-machine.c
index f586a4bef543..101649f3e8c1 100644
--- a/hw/core/null-machine.c
+++ b/hw/core/null-machine.c
@@ -54,6 +54,11 @@ static void machine_none_machine_init(MachineClass *mc)
mc->no_floppy = 1;
mc->no_cdrom = 1;
mc->no_sdcard = 1;
+ /*
+ * For compatibility with arches and CPUs that already
+ * support topology tree.
+ */
+ mc->smp_props.topo_tree_supported = true;
}
DEFINE_MACHINE("none", machine_none_machine_init)
--
2.34.1
- [RFC v2 01/15] qdev: Add pointer to BusChild in DeviceState, (continued)
- [RFC v2 01/15] qdev: Add pointer to BusChild in DeviceState, Zhao Liu, 2024/09/18
- [RFC v2 02/15] qdev: Add the interface to reparent the device, Zhao Liu, 2024/09/18
- [RFC v2 03/15] hw/cpu: Introduce CPU topology device and CPU bus, Zhao Liu, 2024/09/18
- [RFC v2 04/15] hw/cpu: Introduce CPU slot to manage CPU topology, Zhao Liu, 2024/09/18
- [RFC v2 05/15] qdev: Add method in BusClass to customize device index, Zhao Liu, 2024/09/18
- [RFC v2 06/15] hw/core: Create CPU slot in MachineState to manage CPU topology tree, Zhao Liu, 2024/09/18
- [RFC v2 07/15] hw/core/cpu: Convert CPU from general device to topology device, Zhao Liu, 2024/09/18
- [RFC v2 08/15] hw/cpu/core: Convert cpu-core from general device to topology device, Zhao Liu, 2024/09/18
- [RFC v2 09/15] hw/cpu: Abstract module/die/socket levels as topology devices, Zhao Liu, 2024/09/18
- [RFC v2 10/15] hw/machine: Build smp topology tree from -smp, Zhao Liu, 2024/09/18
- [RFC v2 11/15] hw/core: Support topology tree in none machine for compatibility,
Zhao Liu <=
- [RFC v2 12/15] hw/i386: Allow i386 to create new CPUs in topology tree, Zhao Liu, 2024/09/18
- [RFC v2 13/15] system/qdev-monitor: Introduce bus-finder interface for compatibility with bus-less plug behavior, Zhao Liu, 2024/09/18
- [RFC v2 14/15] i386/cpu: Support CPU plugged in topology tree via bus-finder, Zhao Liu, 2024/09/18
- [RFC v2 15/15] i386: Support topology device tree, Zhao Liu, 2024/09/18