Home
last modified time | relevance | path

Searched refs:cpumap (Results 1 – 25 of 31) sorted by relevance

12

/xen/tools/libxl/
A Dcheck-xl-vcpupin-parse.data-example13 all*0*cpumap: all
14 nodes:all*0*cpumap: all
18 ^0*0*cpumap: none
20 0*0*cpumap: 0
21 9*0*cpumap: 9
22 6*0*cpumap: 6
23 0*0*cpumap: 0
30 13-15*0*cpumap: 13-15
31 7*0*cpumap: 7
32 3-5*0*cpumap: 3-5
[all …]
A Dlibxl_cpupool.c59 memcpy(info->cpumap.map, xcinfo->cpumap, info->cpumap.size); in cpupool_info()
122 if (cpumap->map == NULL) in libxl_get_freecpus()
125 cpumap->size = (ncpus + 7) / 8; in libxl_get_freecpus()
163 libxl_for_each_bit(i, cpumap) in libxl_cpupool_create()
164 if (libxl_bitmap_test(&cpumap, i)) { in libxl_cpupool_create()
198 libxl_bitmap cpumap; in libxl_cpupool_destroy() local
214 memcpy(cpumap.map, info->cpumap, cpumap.size); in libxl_cpupool_destroy()
215 libxl_for_each_bit(i, cpumap) in libxl_cpupool_destroy()
244 libxl_bitmap_dispose(&cpumap); in libxl_cpupool_destroy()
315 libxl_for_each_set_bit(c, *cpumap) { in libxl_cpupool_cpuadd_cpumap()
[all …]
A Dlibxl_vnuma.c95 libxl_bitmap cpumap; in libxl__vnuma_config_check() local
98 libxl_bitmap_init(&cpumap); in libxl__vnuma_config_check()
129 libxl_cpu_bitmap_alloc(CTX, &cpumap, b_info->max_vcpus); in libxl__vnuma_config_check()
133 if (!libxl_bitmap_test(&cpumap, j)) in libxl__vnuma_config_check()
134 libxl_bitmap_set(&cpumap, j); in libxl__vnuma_config_check()
143 if (!libxl_bitmap_test(&cpumap, i)) { in libxl__vnuma_config_check()
209 libxl_bitmap_dispose(&cpumap); in libxl__vnuma_config_check()
A Dlibxl_utils.h157 int libxl_cpu_bitmap_alloc(libxl_ctx *ctx, libxl_bitmap *cpumap, int max_cpus);
168 libxl_bitmap *cpumap);
171 libxl_bitmap *cpumap);
174 const libxl_bitmap *cpumap,
A Dlibxl_dom.c148 libxl_bitmap cpumap, cpupool_nodemap, *map; in numa_place_domain() local
154 libxl_bitmap_init(&cpumap); in numa_place_domain()
169 map = &cpupool_info.cpumap; in numa_place_domain()
187 &cpupool_info.cpumap); in numa_place_domain()
192 if (libxl_bitmap_is_empty(&cpumap)) { in numa_place_domain()
224 rc = libxl_cpumap_to_nodemap(CTX, &cpupool_info.cpumap, in numa_place_domain()
241 libxl_bitmap_dispose(&cpumap); in numa_place_domain()
402 libxl_bitmap cpumap; in set_vnuma_affinity() local
407 libxl_bitmap_init(&cpumap); in set_vnuma_affinity()
409 rc = libxl_cpu_bitmap_alloc(CTX, &cpumap, 0); in set_vnuma_affinity()
[all …]
A Dlibxl_utils.c807 int libxl_cpu_bitmap_alloc(libxl_ctx *ctx, libxl_bitmap *cpumap, int max_cpus) in libxl_cpu_bitmap_alloc() argument
825 libxl_bitmap_alloc(ctx, cpumap, max_cpus); in libxl_cpu_bitmap_alloc()
929 libxl_bitmap *cpumap) in libxl_nodemap_to_cpumap() argument
940 libxl_bitmap_set_none(cpumap); in libxl_nodemap_to_cpumap()
943 libxl_bitmap_set(cpumap, i); in libxl_nodemap_to_cpumap()
951 libxl_bitmap *cpumap) in libxl_node_to_cpumap() argument
965 rc = libxl_nodemap_to_cpumap(ctx, &nodemap, cpumap); in libxl_node_to_cpumap()
973 const libxl_bitmap *cpumap, in libxl_cpumap_to_nodemap() argument
986 libxl_for_each_set_bit(i, *cpumap) { in libxl_cpumap_to_nodemap()
A Dlibxl.h2445 libxl_bitmap *cpumap,
2451 libxl_bitmap *cpumap) in libxl_set_vcpuonline_0x041200() argument
2453 return libxl_set_vcpuonline(ctx, domid, cpumap, NULL); in libxl_set_vcpuonline_0x041200()
2555 int libxl_get_freecpus(libxl_ctx *ctx, libxl_bitmap *cpumap);
2564 libxl_bitmap cpumap, libxl_uuid *uuid,
2571 const libxl_bitmap *cpumap);
2575 const libxl_bitmap *cpumap);
A Dlibxl_domain.c1682 libxl_bitmap_init(&ptr->cpumap); in libxl_list_vcpu()
1683 if (libxl_cpu_bitmap_alloc(ctx, &ptr->cpumap, 0)) in libxl_list_vcpu()
1694 ptr->cpumap.map, ptr->cpumap_soft.map, in libxl_list_vcpu()
1710 libxl_bitmap_dispose(&ptr->cpumap); in libxl_list_vcpu()
1718 const libxl_bitmap *cpumap, in libxl__set_vcpuonline_xenstore() argument
1775 const libxl_bitmap *cpumap; member
1791 libxl_bitmap *cpumap, in libxl_set_vcpuonline() argument
1804 svos->cpumap = cpumap; in libxl_set_vcpuonline()
1818 maxcpus = libxl_bitmap_count_set(cpumap); in libxl_set_vcpuonline()
1882 libxl_bitmap_copy_alloc(CTX, final_map, svos->cpumap); in set_vcpuonline_qmp_cpus_queried()
[all …]
A Dlibxl_numa.c241 libxl_for_each_set_bit(k, vinfo[j].cpumap) { in nr_vcpus_on_nodes()
247 libxl_bitmap_test(&cpupool_info.cpumap, k) && in nr_vcpus_on_nodes()
/xen/tools/xl/
A Dxl_cpupool.c50 libxl_bitmap cpumap; in main_cpupoolcreate() local
65 libxl_bitmap_init(&cpumap); in main_cpupoolcreate()
231 libxl_bitmap_dispose(&cpumap); in main_cpupoolcreate()
363 libxl_bitmap cpumap; in main_cpupoolcpuadd() local
370 libxl_bitmap_init(&cpumap); in main_cpupoolcpuadd()
392 libxl_bitmap_dispose(&cpumap); in main_cpupoolcpuadd()
401 libxl_bitmap cpumap; in main_cpupoolcpuremove() local
404 libxl_bitmap_init(&cpumap); in main_cpupoolcpuremove()
432 libxl_bitmap_dispose(&cpumap); in main_cpupoolcpuremove()
483 libxl_bitmap cpumap; in main_cpupoolnumasplit() local
[all …]
A Dxl_vcpu.c49 print_bitmap(vcpuinfo->cpumap.map, nr_cpus, stdout); in print_vcpuinfo()
333 libxl_bitmap cpumap; in vcpuset() local
336 libxl_bitmap_init(&cpumap); in vcpuset()
364 rc = libxl_cpu_bitmap_alloc(ctx, &cpumap, max_vcpus); in vcpuset()
370 libxl_bitmap_set(&cpumap, i); in vcpuset()
372 rc = libxl_set_vcpuonline(ctx, domid, &cpumap, NULL); in vcpuset()
379 libxl_bitmap_dispose(&cpumap); in vcpuset()
A Dxl_parse.h34 int parse_cpurange(const char *cpu, libxl_bitmap *cpumap);
A Dxl_info.c194 libxl_bitmap cpumap; in output_physinfo() local
232 if (!libxl_get_freecpus(ctx, &cpumap)) { in output_physinfo()
233 libxl_for_each_bit(i, cpumap) in output_physinfo()
234 if (libxl_bitmap_test(&cpumap, i)) in output_physinfo()
237 free(cpumap.map); in output_physinfo()
A Dxl_parse.c166 static int update_cpumap_range(const char *str, libxl_bitmap *cpumap) in update_cpumap_range() argument
197 libxl_bitmap_set_any(cpumap); in update_cpumap_range()
221 is_not ? libxl_bitmap_reset(cpumap, i) : in update_cpumap_range()
222 libxl_bitmap_set(cpumap, i); in update_cpumap_range()
226 is_not ? libxl_bitmap_reset(cpumap, ida) : in update_cpumap_range()
227 libxl_bitmap_set(cpumap, ida); in update_cpumap_range()
242 int parse_cpurange(const char *cpu, libxl_bitmap *cpumap) in parse_cpurange() argument
249 rc = update_cpumap_range(ptr, cpumap); in parse_cpurange()
/xen/tools/libxc/
A Dxc_cpupool.c93 sysctl.u.cpupool_op.cpumap.nr_bits = local_size * 8; in xc_cpupool_getinfo()
104 info->cpumap = xc_cpumap_alloc(xch); in xc_cpupool_getinfo()
105 if (!info->cpumap) { in xc_cpupool_getinfo()
113 memcpy(info->cpumap, local, local_size); in xc_cpupool_getinfo()
124 free(info->cpumap); in xc_cpupool_infofree()
185 xc_cpumap_t cpumap = NULL; in xc_cpupool_freeinfo() local
203 sysctl.u.cpupool_op.cpumap.nr_bits = mapsize * 8; in xc_cpupool_freeinfo()
210 cpumap = xc_cpumap_alloc(xch); in xc_cpupool_freeinfo()
211 if (cpumap == NULL) in xc_cpupool_freeinfo()
214 memcpy(cpumap, local, mapsize); in xc_cpupool_freeinfo()
[all …]
A Dxc_misc.c369 xc_cpumap_t cpumap, unsigned int nr_bits) in xc_mca_op_inject_v2() argument
375 DECLARE_HYPERCALL_BOUNCE(cpumap, 0, XC_HYPERCALL_BUFFER_BOUNCE_IN); in xc_mca_op_inject_v2()
380 if ( cpumap ) in xc_mca_op_inject_v2()
388 HYPERCALL_BOUNCE_SET_SIZE(cpumap, (nr_bits + 7) / 8); in xc_mca_op_inject_v2()
389 if ( xc_hypercall_bounce_pre(xch, cpumap) ) in xc_mca_op_inject_v2()
394 set_xen_guest_handle(inject->cpumap.bitmap, cpumap); in xc_mca_op_inject_v2()
395 inject->cpumap.nr_bits = nr_bits; in xc_mca_op_inject_v2()
412 if ( cpumap ) in xc_mca_op_inject_v2()
413 xc_hypercall_bounce_post(xch, cpumap); in xc_mca_op_inject_v2()
/xen/tools/tests/mce-test/tools/
A Dxen-mceinj.c200 mc.u.mc_inject_v2.cpumap.nr_bits = nr_cpus; in inject_cmci()
220 uint8_t *cpumap = NULL; in inject_lmce() local
232 cpumap = malloc(cpumap_size); in inject_lmce()
233 if ( !cpumap ) in inject_lmce()
235 memset(cpumap, 0, cpumap_size); in inject_lmce()
238 memset(cpumap + line, 1 << shift, 1); in inject_lmce()
241 cpumap, cpumap_size * 8); in inject_lmce()
243 free(cpumap); in inject_lmce()
/xen/tools/python/xen/lowlevel/xc/
A Dxc.c252 xc_cpumap_t cpumap; in pyxc_vcpu_setaffinity() local
267 if(cpumap == NULL) in pyxc_vcpu_setaffinity()
289 free(cpumap); in pyxc_vcpu_setaffinity()
293 free(cpumap); in pyxc_vcpu_setaffinity()
414 xc_cpumap_t cpumap; in pyxc_vcpu_getinfo() local
432 if(cpumap == NULL) in pyxc_vcpu_getinfo()
439 free(cpumap); in pyxc_vcpu_getinfo()
461 free(cpumap); in pyxc_vcpu_getinfo()
1575 cpumap++; in cpumap_to_cpulist()
1713 if (!cpumap) in pyxc_cpupool_freeinfo()
[all …]
/xen/xen/arch/x86/cpu/mcheck/
A Dmce.c1579 const cpumask_t *cpumap; in do_mca() local
1587 cpumap = &cpu_online_map; in do_mca()
1593 cpumap = cmv; in do_mca()
1594 if ( !cpumask_intersects(cpumap, &cpu_online_map) ) in do_mca()
1600 if ( !cpumask_subset(cpumap, &cpu_online_map) ) in do_mca()
1605 for_each_cpu(target, cpumap) in do_mca()
1619 !cpumask_equal(cpumap, &cpu_online_map) ) in do_mca()
1621 on_selected_cpus(cpumap, x86_mc_mceinject, NULL, 1); in do_mca()
1631 send_IPI_mask(cpumap, cmci_apic_vector); in do_mca()
1647 if ( nr_cpu_ids > cpumask_next(cpumask_first(cpumap), cpumap) ) in do_mca()
[all …]
/xen/xen/arch/x86/
A Dplatform_hypercall.c454 cpumask_var_t cpumap; in do_platform_op() local
466 if ( (ret = xenctl_bitmap_to_cpumask(&cpumap, &ctlmap)) != 0 ) in do_platform_op()
470 for_each_cpu ( cpu, cpumap ) in do_platform_op()
476 __cpumask_clear_cpu(cpu, cpumap); in do_platform_op()
489 ret = cpumask_to_xenctl_bitmap(&ctlmap, cpumap); in do_platform_op()
490 free_cpumask_var(cpumap); in do_platform_op()
/xen/tools/ocaml/libs/xc/
A Dxenctrl_stubs.c509 static int get_cpumap_len(value xch, value cpumap) in get_cpumap_len() argument
511 int ml_len = Wosize_val(cpumap); in get_cpumap_len()
521 value vcpu, value cpumap) in stub_xc_vcpu_setaffinity() argument
523 CAMLparam4(xch, domid, vcpu, cpumap); in stub_xc_vcpu_setaffinity()
524 int i, len = get_cpumap_len(xch, cpumap); in stub_xc_vcpu_setaffinity()
533 if (Bool_val(Field(cpumap, i))) in stub_xc_vcpu_setaffinity()
A Dxenctrl.ml28 cpumap: int32; RecordField
A Dxenctrl.mli23 cpumap : int32; RecordField
/xen/xen/include/public/arch-x86/
A Dxen-mca.h425 struct xenctl_bitmap cpumap; member
/xen/xen/common/sched/
A Dcpupool.c802 ret = cpumask_to_xenctl_bitmap(&op->cpumap, c->cpu_valid); in cpupool_do_sysctl()
906 &op->cpumap, &cpupool_free_cpus); in cpupool_do_sysctl()

Completed in 52 milliseconds

12