[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 4/4] hw/riscv: Validate socket and NUMA node boundary
From: |
Gavin Shan |
Subject: |
[PATCH v2 4/4] hw/riscv: Validate socket and NUMA node boundary |
Date: |
Thu, 23 Feb 2023 16:14:01 +0800 |
There are two RISCV machines where NUMA is aware: 'virt' and 'spike'.
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/riscv/spike.c | 1 +
hw/riscv/virt.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/hw/riscv/spike.c b/hw/riscv/spike.c
index cc3f6dac17..fba0cbec29 100644
--- a/hw/riscv/spike.c
+++ b/hw/riscv/spike.c
@@ -342,6 +342,7 @@ static void spike_board_init(MachineState *machine)
static void spike_machine_instance_init(Object *obj)
{
+ set_numa_socket_boundary(MACHINE(obj));
}
static void spike_machine_class_init(ObjectClass *oc, void *data)
diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c
index b81081c70b..ed79becb96 100644
--- a/hw/riscv/virt.c
+++ b/hw/riscv/virt.c
@@ -1521,6 +1521,7 @@ static void virt_machine_init(MachineState *machine)
static void virt_machine_instance_init(Object *obj)
{
+ set_numa_socket_boundary(MACHINE(obj));
}
static char *virt_get_aia_guests(Object *obj, Error **errp)
--
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, 2023/02/23
- [PATCH v2 4/4] hw/riscv: Validate socket and NUMA node boundary,
Gavin Shan <=
- 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