xemu/hw/loongarch
Bibo Mao f532cf0131 hw/loongarch: Refine default numa id calculation
With numa_test test case, there is subcase named test_def_cpu_split(),
there are 8 sockets and 2 numa nodes. Here is command line:
"-machine smp.cpus=8,smp.sockets=8 -numa node,memdev=ram -numa node"

The required result is:
  node 0 cpus: 0 2 4 6
  node 1 cpus: 1 3 5 7
Test case numa_test fails on LoongArch, since the actual result is:
  node 0 cpus: 0 1 2 3
  node 1 cpus: 4 5 6 7

It will be better if all the cpus in one socket share the same numa
node. Here socket id is used to calculate numa id in function
virt_get_default_cpu_node_id().

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20240319022606.2994565-1-maobibo@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
2024-05-09 15:17:56 +08:00
..
Kconfig loongarch: switch boards to "default y" 2024-05-03 15:47:47 +02:00
acpi-build.c loongarch: Change the UEFI loading mode to loongarch 2024-02-29 19:32:45 +08:00
boot.c hw/loongarch: Init efi_fdt table 2024-04-29 10:25:56 +08:00
fw_cfg.c hw/loongarch: Support fw_cfg dma function 2022-09-19 20:01:40 +08:00
fw_cfg.h hw/loongarch: Add fw_cfg table support 2022-07-19 22:55:10 +05:30
meson.build hw/loongarch: Move boot functions to boot.c 2024-04-29 10:25:56 +08:00
virt.c hw/loongarch: Refine default numa id calculation 2024-05-09 15:17:56 +08:00