Lines Matching refs:num_cpus
312 int num_cpus, bool is_hard) in parse_vcpu_affinity() argument
328 if (buf || num_cpus > b_info->max_vcpus) in parse_vcpu_affinity()
329 num_cpus = b_info->max_vcpus; in parse_vcpu_affinity()
332 b_info->num_vcpu_hard_affinity = num_cpus; in parse_vcpu_affinity()
333 b_info->vcpu_hard_affinity = xmalloc(num_cpus * sizeof(libxl_bitmap)); in parse_vcpu_affinity()
336 b_info->num_vcpu_soft_affinity = num_cpus; in parse_vcpu_affinity()
337 b_info->vcpu_soft_affinity = xmalloc(num_cpus * sizeof(libxl_bitmap)); in parse_vcpu_affinity()
344 while ((buf = xlu_cfg_get_listitem(cpus, j)) != NULL && j < num_cpus) { in parse_vcpu_affinity()
866 int num_ioports, num_irqs, num_iomem, num_cpus, num_viridian, num_mca_caps; in parse_config_data() local
1043 if (!xlu_cfg_get_list (config, "cpus", &cpus, &num_cpus, 1) || in parse_config_data()
1045 parse_vcpu_affinity(b_info, cpus, buf, num_cpus, /* is_hard */ true); in parse_config_data()
1048 if (!xlu_cfg_get_list (config, "cpus_soft", &cpus, &num_cpus, 1) || in parse_config_data()
1050 parse_vcpu_affinity(b_info, cpus, buf, num_cpus, false); in parse_config_data()