Home
last modified time | relevance | path

Searched refs:max_vcpus (Results 1 – 25 of 77) sorted by relevance

1234

/xen/tools/xl/
A Dxl_vcpu.c332 unsigned long max_vcpus; in vcpuset() local
337 max_vcpus = strtoul(nr_vcpus, &endptr, 10); in vcpuset()
338 if (nr_vcpus == endptr || max_vcpus > INT_MAX) { in vcpuset()
357 if (max_vcpus > online_vcpus && max_vcpus > host_cpu) { in vcpuset()
360 " continue\n", host_cpu, max_vcpus); in vcpuset()
364 rc = libxl_cpu_bitmap_alloc(ctx, &cpumap, max_vcpus); in vcpuset()
369 for (i = 0; i < max_vcpus; i++) in vcpuset()
377 " rc: %d\n", domid, max_vcpus, rc); in vcpuset()
A Dxl_parse.c330 if (buf || num_cpus > b_info->max_vcpus) in parse_vcpu_affinity()
331 num_cpus = b_info->max_vcpus; in parse_vcpu_affinity()
693 max_vcpus++; in parse_vnuma_config()
719 if (b_info->max_vcpus != 0) { in parse_vnuma_config()
720 if (b_info->max_vcpus != max_vcpus) { in parse_vnuma_config()
732 if (host_cpus < max_vcpus) { in parse_vnuma_config()
738 b_info->max_vcpus = max_vcpus; in parse_vnuma_config()
1379 b_info->max_vcpus = l; in parse_config_data()
1396 if (b_info->max_vcpus == 0) in parse_config_data()
1397 b_info->max_vcpus = vcpus; in parse_config_data()
[all …]
/xen/xen/arch/x86/
A Ddom0_build.c204 unsigned int i, max_vcpus, limit; in dom0_max_vcpus() local
234 max_vcpus = cpumask_weight(&dom0_cpus); in dom0_max_vcpus()
235 if ( opt_dom0_max_vcpus_min > max_vcpus ) in dom0_max_vcpus()
236 max_vcpus = opt_dom0_max_vcpus_min; in dom0_max_vcpus()
237 if ( opt_dom0_max_vcpus_max < max_vcpus ) in dom0_max_vcpus()
238 max_vcpus = opt_dom0_max_vcpus_max; in dom0_max_vcpus()
240 if ( max_vcpus > limit ) in dom0_max_vcpus()
241 max_vcpus = limit; in dom0_max_vcpus()
243 return max_vcpus; in dom0_max_vcpus()
330 avail -= (d->max_vcpus - 1UL) in dom0_compute_nr_pages()
[all …]
A Ddomctl.c610 if ( domctl->u.sendtrigger.vcpu >= d->max_vcpus || in arch_do_domctl()
807 if ( (evc->vcpu >= d->max_vcpus) || in arch_do_domctl()
931 if ( (domctl->u.debug_op.vcpu >= d->max_vcpus) || in arch_do_domctl()
961 if ( domctl->u.gdbsx_pauseunp_vcpu.vcpu >= d->max_vcpus || in arch_do_domctl()
976 if ( domctl->u.gdbsx_pauseunp_vcpu.vcpu >= d->max_vcpus || in arch_do_domctl()
1023 if ( (evc->vcpu >= d->max_vcpus) || in arch_do_domctl()
1230 if ( (vmsrs->vcpu >= d->max_vcpus) || in arch_do_domctl()
A Dnuma.c450 vnuma->nr_vnodes, d->max_vcpus); in dump_numa()
462 for ( j = 0; j < d->max_vcpus; j++ ) in dump_numa()
/xen/tools/libxl/
A Dlibxl_arm_acpi.c79 ACPI_MADT_GICC_SIZE_v5 * info->max_vcpus + in libxl__estimate_madt_size()
84 ACPI_MADT_GICC_SIZE_v5 * info->max_vcpus + in libxl__estimate_madt_size()
310 make_acpi_madt_gicc(table, info->max_vcpus, GUEST_GICC_BASE); in make_acpi_madt()
312 table += ACPI_MADT_GICC_SIZE_v5 * info->max_vcpus; in make_acpi_madt()
317 make_acpi_madt_gicc(table, info->max_vcpus, 0); in make_acpi_madt()
319 table += ACPI_MADT_GICC_SIZE_v5 * info->max_vcpus; in make_acpi_madt()
A Dlibxl_dom.c209 rc = libxl__get_numa_candidate(gc, memkb, info->max_vcpus, in numa_place_domain()
255 if (xc_domain_max_vcpus(ctx->xch, domid, info->max_vcpus) != 0) { in libxl__build_pre()
315 libxl_set_vcpuaffinity_all(ctx, domid, info->max_vcpus, in libxl__build_pre()
473 ents = libxl__calloc(gc, 12 + (info->max_vcpus * 2) + 2, sizeof(char *)); in libxl__build_post()
487 for (i = 0; i < info->max_vcpus; i++) { in libxl__build_post()
522 vcpu_to_vnode = libxl__calloc(gc, info->max_vcpus, in set_vnuma_info()
549 state->num_vmemranges, info->max_vcpus, in set_vnuma_info()
678 dom->max_vcpus = info->max_vcpus; in libxl__build_pv()
751 va_hvm->nr_vcpus = info->max_vcpus; in hvm_build_set_params()
1132 dom->max_vcpus = info->max_vcpus; in libxl__build_hvm()
A Dlibxl_vnuma.c129 libxl_cpu_bitmap_alloc(CTX, &cpumap, b_info->max_vcpus); in libxl__vnuma_config_check()
142 for (i = 0; i < b_info->max_vcpus; i++) { in libxl__vnuma_config_check()
/xen/xen/common/
A Ddomctl.c306 if ( uinfo->nr_vcpus != d->max_vcpus || uinfo->pad != 0 ) in vnuma_init()
309 info = vnuma_alloc(nr_vnodes, uinfo->nr_vmemranges, d->max_vcpus); in vnuma_init()
324 d->max_vcpus) ) in vnuma_init()
328 for ( i = 0; i < d->max_vcpus; ++i ) in vnuma_init()
425 (vcpu >= d->max_vcpus) || ((v = d->vcpu[vcpu]) == NULL) ) in do_domctl()
535 unsigned int i, max = op->u.max_vcpus.max; in do_domctl()
539 (max != d->max_vcpus) ) /* max_vcpus set up in createdomain */ in do_domctl()
666 if ( op->u.vcpucontext.vcpu >= d->max_vcpus || in do_domctl()
715 if ( op->u.getvcpuinfo.vcpu >= d->max_vcpus ) in do_domctl()
A Ddomain.c149 if ( vcpu_id >= d->max_vcpus || d->vcpu[vcpu_id] || in vcpu_create()
326 if ( config->max_vcpus < 1 ) in sanitise_domain_config()
394 d->vcpu = xzalloc_array(struct vcpu *, config->max_vcpus); in domain_create()
398 d->max_vcpus = config->max_vcpus; in domain_create()
531 if ( d->max_vcpus ) in domain_create()
533 d->max_vcpus = 0; in domain_create()
886 for ( i = d->max_vcpus - 1; i >= 0; i-- ) in complete_domain_destroy()
917 for ( i = d->max_vcpus - 1; i >= 0; i-- ) in complete_domain_destroy()
A Dvm_event.c131 for ( i = ved->last_vcpu_wake_up + 1, j = 0; j < d->max_vcpus; i++, j++ ) in vm_event_wake_blocked()
133 k = i % d->max_vcpus; in vm_event_wake_blocked()
300 if( curr->domain == d && avail_req < d->max_vcpus && in vm_event_put_request()
A Devent_channel.c1414 if ( likely(bitmap_empty(d->poll_mask, d->max_vcpus)) ) in evtchn_check_pollers()
1418 for ( vcpuid = find_first_bit(d->poll_mask, d->max_vcpus); in evtchn_check_pollers()
1419 vcpuid < d->max_vcpus; in evtchn_check_pollers()
1420 vcpuid = find_next_bit(d->poll_mask, d->max_vcpus, vcpuid+1) ) in evtchn_check_pollers()
1452 d->poll_mask = xzalloc_array(unsigned long, BITS_TO_LONGS(d->max_vcpus)); in evtchn_init()
1544 " port [p/m/s]\n", d->domain_id, d->max_vcpus, d->poll_mask); in domain_dump_evtchn_info()
/xen/xen/arch/arm/arm32/
A Dproc-caxx.c27 if ( v->domain->max_vcpus > 1 ) in caxx_vcpu_initialise()
/xen/xen/arch/arm/
A Ddomain.c620 unsigned int max_vcpus; in arch_sanitise_domain_config() local
659 max_vcpus = min(vgic_max_vcpus(config->arch.gic_version), MAX_VIRT_CPUS); in arch_sanitise_domain_config()
661 if ( max_vcpus == 0 ) in arch_sanitise_domain_config()
667 if ( config->max_vcpus > max_vcpus ) in arch_sanitise_domain_config()
670 config->max_vcpus, max_vcpus); in arch_sanitise_domain_config()
A Dvgic-v3.c88 if ( vcpu_id >= d->max_vcpus ) in vgic_v3_irouter_to_vcpu()
1037 if ( unlikely(vcpu_id >= d->max_vcpus) ) in get_vcpu_from_rdist()
1124 unsigned int ncpus = min_t(unsigned int, v->domain->max_vcpus, 8); in vgic_v3_distr_mmio_read()
1632 if ( v->vcpu_id == last_cpu || (v->vcpu_id == (d->max_vcpus - 1)) ) in vgic_v3_vcpu_init()
1698 if ( first_cpu >= d->max_vcpus ) in vgic_v3_domain_init()
/xen/xen/arch/arm/vgic/
A Dvgic-mmio-v2.c36 value |= (vcpu->domain->max_vcpus - 1) << GICD_TYPE_CPUS_SHIFT; in vgic_mmio_read_v2_misc()
89 unsigned int nr_vcpus = d->max_vcpus; in vgic_mmio_write_sgir()
151 uint8_t cpu_mask = GENMASK(vcpu->domain->max_vcpus - 1, 0); in vgic_mmio_write_target()
/xen/xen/arch/x86/cpu/mcheck/
A Dvmce.h8 #define dom0_vmce_enabled() (hardware_domain && hardware_domain->max_vcpus \
A Dvmce.c375 if ( vcpuid >= d->max_vcpus || (v = d->vcpu[vcpuid]) == NULL ) in vmce_load_vcpu_ctxt()
477 ASSERT(vmce_vcpuid >= 0 && vmce_vcpuid < d->max_vcpus); in fill_vmsr_data()
/xen/xen/include/asm-x86/
A Dmonitor.h54 if ( d->max_vcpus && d->vcpu[0] && d->vcpu[0]->arch.vm_event ) in arch_monitor_domctl_op()
/xen/xen/arch/x86/cpu/
A Dvpmu.c171 if ( hardware_domain->max_vcpus == 0 ) in choose_hwdom_vcpu()
174 idx = smp_processor_id() % hardware_domain->max_vcpus; in choose_hwdom_vcpu()
622 if ( (params->vcpu >= d->max_vcpus) || (d->vcpu[params->vcpu] == NULL) ) in pvpmu_init()
670 if ( (params->vcpu >= d->max_vcpus) || (d->vcpu[params->vcpu] == NULL) ) in pvpmu_finish()
/xen/tools/helpers/
A Dinit-xenstore-domain.c72 .max_vcpus = 1, in build()
107 rv = xc_domain_max_vcpus(xch, domid, config.max_vcpus); in build()
/xen/tools/flask/policy/policy/
A Dmls77 mlsconstrain domain { setvcpucontext pause unpause resume create max_vcpus destroy setaffinity sche…
/xen/xen/include/xen/
A Dsched.h323 unsigned int max_vcpus; member
910 unsigned int idx = array_index_nospec(vcpu_id, d->max_vcpus); in domain_vcpu()
912 return vcpu_id >= d->max_vcpus ? NULL : d->vcpu[idx]; in domain_vcpu()
/xen/tools/flask/policy/modules/
A Ddom0.te35 setvcpucontext max_vcpus setaffinity getaffinity getscheduler
/xen/xen/arch/x86/hvm/
A Ddom0_build.c765 unsigned int i, max_vcpus; in pvh_setup_acpi_madt() local
776 max_vcpus = dom0_max_vcpus(); in pvh_setup_acpi_madt()
782 size += sizeof(*x2apic) * max_vcpus; in pvh_setup_acpi_madt()
822 for ( i = 0; i < max_vcpus; i++ ) in pvh_setup_acpi_madt()

Completed in 49 milliseconds

1234