From 022529f6d0ee306da857825c72a98bf7ddf5de22 Mon Sep 17 00:00:00 2001 From: Gavin Shan Date: Tue, 27 Jun 2023 20:20:09 +1000 Subject: [PATCH 3/6] hw/arm/virt: Validate cluster and NUMA node boundary for RHEL machines RH-Author: Gavin Shan RH-MergeRequest: 175: hw/arm: Validate CPU cluster and NUMA node boundary for RHEL machines RH-Bugzilla: 2171363 RH-Acked-by: Cornelia Huck RH-Acked-by: Eric Auger RH-Commit: [3/3] a396c499259b566861ca007b01f8539bf6113711 Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2171363 Upstream Status: RHEL only Set mc->cpu_cluster_has_numa_boundary to true so that the boundary of CPU cluster and NUMA node will be validated for 'virt-rhel*' machines. A warning message will be printed if the boundary is broken. Signed-off-by: Gavin Shan --- hw/arm/virt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index df6a0231bc..faf68488d5 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -3530,6 +3530,8 @@ static void rhel_machine_class_init(ObjectClass *oc, void *data) mc->smp_props.clusters_supported = true; mc->auto_enable_numa_with_memhp = true; mc->auto_enable_numa_with_memdev = true; + /* platform instead of architectural choice */ + mc->cpu_cluster_has_numa_boundary = true; mc->default_ram_id = "mach-virt.ram"; object_class_property_add(oc, "acpi", "OnOffAuto", -- 2.39.3