Re: [PATCH] Fix QEMU crash caused when NUMA nodes exceed available CPUs

2023-05-09 Thread Igor Mammedov
On Tue, 9 May 2023 14:44:52 +0800 Yin Wang wrote: > command "qemu-system-riscv64 -machine virt > -m 2G -smp 1 -numa node,mem=1G -numa node,mem=1G" > would trigger this problem. > This commit fixes the issue by adding parameter checks. It seems wrong to apply this to all targets (that potentiall

[PATCH] Fix QEMU crash caused when NUMA nodes exceed available CPUs

2023-05-08 Thread Yin Wang
command "qemu-system-riscv64 -machine virt -m 2G -smp 1 -numa node,mem=1G -numa node,mem=1G" would trigger this problem. This commit fixes the issue by adding parameter checks. Signed-off-by: Yin Wang --- hw/core/numa.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/hw/core/numa.c b/