Lines Matching full:node

28     cli = make_cli(data, "-machine smp.cpus=8 -numa node,nodeid=0,memdev=ram,cpus=0-3 "  in test_mon_explicit()
29 "-numa node,nodeid=1,cpus=4-7"); in test_mon_explicit()
33 g_assert(strstr(s, "node 0 cpus: 0 1 2 3")); in test_mon_explicit()
34 g_assert(strstr(s, "node 1 cpus: 4 5 6 7")); in test_mon_explicit()
46 "-numa node,memdev=ram -numa node"); in test_def_cpu_split()
50 g_assert(strstr(s, "node 0 cpus: 0 2 4 6")); in test_def_cpu_split()
51 g_assert(strstr(s, "node 1 cpus: 1 3 5 7")); in test_def_cpu_split()
63 "-numa node,nodeid=0,memdev=ram,cpus=0-1 " in test_mon_partial()
64 "-numa node,nodeid=1,cpus=4-5 "); in test_mon_partial()
68 g_assert(strstr(s, "node 0 cpus: 0 1 2 3 6 7")); in test_mon_partial()
69 g_assert(strstr(s, "node 1 cpus: 4 5")); in test_mon_partial()
90 cli = make_cli(data, "-machine smp.cpus=8 -numa node,memdev=ram,cpus=0-3 " in test_query_cpus()
91 "-numa node,cpus=4-7"); in test_query_cpus()
98 int64_t cpu_idx, node; in test_query_cpus() local
106 g_assert(qdict_haskey(props, "node-id")); in test_query_cpus()
107 node = qdict_get_int(props, "node-id"); in test_query_cpus()
109 g_assert_cmpint(node, ==, 0); in test_query_cpus()
111 g_assert_cmpint(node, ==, 1); in test_query_cpus()
130 "-numa node,nodeid=0,memdev=ram -numa node,nodeid=1 " in pc_numa_cpu()
131 "-numa cpu,node-id=1,socket-id=0 " in pc_numa_cpu()
132 "-numa cpu,node-id=0,socket-id=1,core-id=0 " in pc_numa_cpu()
133 "-numa cpu,node-id=0,socket-id=1,core-id=1,thread-id=0 " in pc_numa_cpu()
134 "-numa cpu,node-id=1,socket-id=1,core-id=1,thread-id=1"); in pc_numa_cpu()
141 int64_t socket, core, thread, node; in pc_numa_cpu() local
147 g_assert(qdict_haskey(props, "node-id")); in pc_numa_cpu()
148 node = qdict_get_int(props, "node-id"); in pc_numa_cpu()
157 g_assert_cmpint(node, ==, 1); in pc_numa_cpu()
159 g_assert_cmpint(node, ==, 0); in pc_numa_cpu()
161 g_assert_cmpint(node, ==, 0); in pc_numa_cpu()
163 g_assert_cmpint(node, ==, 1); in pc_numa_cpu()
183 "-numa node,nodeid=0,memdev=ram -numa node,nodeid=1 " in spapr_numa_cpu()
184 "-numa cpu,node-id=0,core-id=0 " in spapr_numa_cpu()
185 "-numa cpu,node-id=0,core-id=1 " in spapr_numa_cpu()
186 "-numa cpu,node-id=0,core-id=2 " in spapr_numa_cpu()
187 "-numa cpu,node-id=1,core-id=3"); in spapr_numa_cpu()
194 int64_t core, node; in spapr_numa_cpu() local
200 g_assert(qdict_haskey(props, "node-id")); in spapr_numa_cpu()
201 node = qdict_get_int(props, "node-id"); in spapr_numa_cpu()
206 g_assert_cmpint(node, ==, 0); in spapr_numa_cpu()
208 g_assert_cmpint(node, ==, 1); in spapr_numa_cpu()
229 "-numa node,nodeid=0,memdev=ram -numa node,nodeid=1 " in aarch64_numa_cpu()
230 "-numa cpu,node-id=0,socket-id=1,cluster-id=0,core-id=0,thread-id=0 " in aarch64_numa_cpu()
231 "-numa cpu,node-id=1,socket-id=0,cluster-id=0,core-id=0,thread-id=0"); in aarch64_numa_cpu()
238 int64_t socket, cluster, core, thread, node; in aarch64_numa_cpu() local
244 g_assert(qdict_haskey(props, "node-id")); in aarch64_numa_cpu()
245 node = qdict_get_int(props, "node-id"); in aarch64_numa_cpu()
256 g_assert_cmpint(node, ==, 1); in aarch64_numa_cpu()
258 g_assert_cmpint(node, ==, 0); in aarch64_numa_cpu()
279 "-numa node,nodeid=0,memdev=ram -numa node,nodeid=1 " in loongarch64_numa_cpu()
280 "-numa cpu,node-id=0,socket-id=1,core-id=0,thread-id=0 " in loongarch64_numa_cpu()
281 "-numa cpu,node-id=1,socket-id=0,core-id=0,thread-id=0"); in loongarch64_numa_cpu()
288 int64_t socket, core, thread, node; in loongarch64_numa_cpu() local
294 g_assert(qdict_haskey(props, "node-id")); in loongarch64_numa_cpu()
295 node = qdict_get_int(props, "node-id"); in loongarch64_numa_cpu()
304 g_assert_cmpint(node, ==, 1); in loongarch64_numa_cpu()
306 g_assert_cmpint(node, ==, 0); in loongarch64_numa_cpu()
330 g_assert(!qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_dynamic_cpu_cfg()
331 " 'arguments': { 'type': 'node', 'nodeid': 0, 'memdev': 'ram' } }"))); in pc_dynamic_cpu_cfg()
332 g_assert(!qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_dynamic_cpu_cfg()
333 " 'arguments': { 'type': 'node', 'nodeid': 1 } }"))); in pc_dynamic_cpu_cfg()
338 g_assert(!qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_dynamic_cpu_cfg()
339 " 'arguments': { 'type': 'cpu', 'node-id': 0, 'socket-id': 1 } }"))); in pc_dynamic_cpu_cfg()
340 g_assert(!qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_dynamic_cpu_cfg()
341 " 'arguments': { 'type': 'cpu', 'node-id': 1, 'socket-id': 0 } }"))); in pc_dynamic_cpu_cfg()
354 int64_t socket, node; in pc_dynamic_cpu_cfg() local
360 g_assert(qdict_haskey(props, "node-id")); in pc_dynamic_cpu_cfg()
361 node = qdict_get_int(props, "node-id"); in pc_dynamic_cpu_cfg()
366 g_assert_cmpint(node, ==, 1); in pc_dynamic_cpu_cfg()
368 g_assert_cmpint(node, ==, 0); in pc_dynamic_cpu_cfg()
389 "-numa node,nodeid=0,memdev=m0 " in pc_hmat_build_cfg()
390 "-numa node,nodeid=1,memdev=m1,initiator=0 " in pc_hmat_build_cfg()
391 "-numa cpu,node-id=0,socket-id=0 " in pc_hmat_build_cfg()
392 "-numa cpu,node-id=0,socket-id=1"); in pc_hmat_build_cfg()
396 g_assert_true(qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_hmat_build_cfg()
401 g_assert_true(qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_hmat_build_cfg()
406 g_assert_true(qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_hmat_build_cfg()
411 g_assert_true(qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_hmat_build_cfg()
415 g_assert_true(qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_hmat_build_cfg()
421 g_assert_true(qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_hmat_build_cfg()
427 g_assert_false(qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_hmat_build_cfg()
431 g_assert_true(qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_hmat_build_cfg()
435 g_assert_false(qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_hmat_build_cfg()
439 g_assert_false(qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_hmat_build_cfg()
443 g_assert_false(qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_hmat_build_cfg()
449 g_assert_true(qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_hmat_build_cfg()
450 " 'arguments': { 'type': 'hmat-cache', 'node-id': 2, 'size': 10240," in pc_hmat_build_cfg()
455 g_assert_true(qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_hmat_build_cfg()
456 " 'arguments': { 'type': 'hmat-cache', 'node-id': 0, 'size': 10240," in pc_hmat_build_cfg()
461 g_assert_true(qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_hmat_build_cfg()
462 " 'arguments': { 'type': 'hmat-cache', 'node-id': 0, 'size': 10240," in pc_hmat_build_cfg()
466 g_assert_true(qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_hmat_build_cfg()
467 " 'arguments': { 'type': 'hmat-cache', 'node-id': 0, 'size': 10240," in pc_hmat_build_cfg()
471 g_assert_true(qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_hmat_build_cfg()
472 " 'arguments': { 'type': 'hmat-cache', 'node-id': 0, 'size': 10240," in pc_hmat_build_cfg()
477 g_assert_false(qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_hmat_build_cfg()
478 " 'arguments': { 'type': 'hmat-cache', 'node-id': 0, 'size': 10240," in pc_hmat_build_cfg()
481 g_assert_true(qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_hmat_build_cfg()
482 " 'arguments': { 'type': 'hmat-cache', 'node-id': 0, 'size': 10240," in pc_hmat_build_cfg()
486 g_assert_true(qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_hmat_build_cfg()
487 " 'arguments': { 'type': 'hmat-cache', 'node-id': 0, 'size': 10240," in pc_hmat_build_cfg()
491 g_assert_true(qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_hmat_build_cfg()
492 " 'arguments': { 'type': 'hmat-cache', 'node-id': 0, 'size': 10240," in pc_hmat_build_cfg()
495 g_assert_false(qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_hmat_build_cfg()
496 " 'arguments': { 'type': 'hmat-cache', 'node-id': 1, 'size': 10240," in pc_hmat_build_cfg()
518 "-numa node,nodeid=0,memdev=m0"); in pc_hmat_off_cfg()
525 g_assert_true(qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_hmat_off_cfg()
526 " 'arguments': { 'type': 'node', 'nodeid': 1, 'memdev': \"m1\"," in pc_hmat_off_cfg()
528 g_assert_false(qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_hmat_off_cfg()
529 " 'arguments': { 'type': 'node', 'nodeid': 1, 'memdev': \"m1\" } }"))); in pc_hmat_off_cfg()
530 g_assert_true(qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_hmat_off_cfg()
534 g_assert_true(qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_hmat_off_cfg()
535 " 'arguments': { 'type': 'hmat-cache', 'node-id': 0, 'size': 10240," in pc_hmat_off_cfg()
557 "-numa node,nodeid=0,memdev=m0 " in pc_hmat_erange_cfg()
558 "-numa node,nodeid=1,memdev=m1,initiator=0 " in pc_hmat_erange_cfg()
559 "-numa cpu,node-id=0,socket-id=0 " in pc_hmat_erange_cfg()
560 "-numa cpu,node-id=0,socket-id=1"); in pc_hmat_erange_cfg()
564 g_assert_false(qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_hmat_erange_cfg()
568 g_assert_true(qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_hmat_erange_cfg()
574 g_assert_false(qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_hmat_erange_cfg()
579 g_assert_true(qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_hmat_erange_cfg()
580 " 'arguments': { 'type': 'hmat-cache', 'node-id': 0, 'size': 10240," in pc_hmat_erange_cfg()
585 g_assert_true(qmp_rsp_is_err(qtest_qmp(qs, "{ 'execute': 'set-numa-node'," in pc_hmat_erange_cfg()