[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 3/4] hw/arm: Validate socket and NUMA node boundary
From: |
Gavin Shan |
Subject: |
[PATCH v2 3/4] hw/arm: Validate socket and NUMA node boundary |
Date: |
Thu, 23 Feb 2023 16:14:00 +0800 |
There are two ARM machines where NUMA is aware: 'virt' and 'sbsa-ref'.
Both of them are required to follow socket-NUMA-node boundary. To
enable the validation to reject incorrect configuration.
Signed-off-by: Gavin Shan <gshan@redhat.com>
---
hw/arm/sbsa-ref.c | 2 ++
hw/arm/virt.c | 2 ++
2 files changed, 4 insertions(+)
diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c
index f778cb6d09..1a87437017 100644
--- a/hw/arm/sbsa-ref.c
+++ b/hw/arm/sbsa-ref.c
@@ -844,6 +844,8 @@ static void sbsa_ref_instance_init(Object *obj)
SBSAMachineState *sms = SBSA_MACHINE(obj);
sbsa_flash_create(sms);
+
+ set_numa_socket_boundary(MACHINE(obj));
}
static void sbsa_ref_class_init(ObjectClass *oc, void *data)
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index ac626b3bef..9d9f26626c 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -3210,6 +3210,8 @@ static void virt_instance_init(Object *obj)
vms->oem_id = g_strndup(ACPI_BUILD_APPNAME6, 6);
vms->oem_table_id = g_strndup(ACPI_BUILD_APPNAME8, 8);
+
+ set_numa_socket_boundary(MACHINE(obj));
}
static const TypeInfo virt_machine_info = {
--
2.23.0
- [PATCH v2 0/4] NUMA: Apply socket-NUMA-node boundary for aarch64 and RiscV machines, Gavin Shan, 2023/02/23
- [PATCH v2 1/4] qtest/numa-test: Follow socket-NUMA-node boundary for aarch64, Gavin Shan, 2023/02/23
- [PATCH v2 2/4] numa: Validate socket and NUMA node boundary if required, Gavin Shan, 2023/02/23
- [PATCH v2 3/4] hw/arm: Validate socket and NUMA node boundary,
Gavin Shan <=
- [PATCH v2 4/4] hw/riscv: Validate socket and NUMA node boundary, Gavin Shan, 2023/02/23
- Re: [PATCH v2 0/4] NUMA: Apply socket-NUMA-node boundary for aarch64 and RiscV machines, Andrew Jones, 2023/02/23
- Re: [PATCH v2 0/4] NUMA: Apply socket-NUMA-node boundary for aarch64 and RiscV machines, Daniel P . Berrangé, 2023/02/23
- Re: [PATCH v2 0/4] NUMA: Apply socket-NUMA-node boundary for aarch64 and RiscV machines, Daniel Henrique Barboza, 2023/02/23