Lines Matching refs:max_vcpus
162 unsigned int i, max_vcpus, limit; in dom0_max_vcpus() local
192 max_vcpus = cpumask_weight(&dom0_cpus); in dom0_max_vcpus()
193 if ( opt_dom0_max_vcpus_min > max_vcpus ) in dom0_max_vcpus()
194 max_vcpus = opt_dom0_max_vcpus_min; in dom0_max_vcpus()
195 if ( opt_dom0_max_vcpus_max < max_vcpus ) in dom0_max_vcpus()
196 max_vcpus = opt_dom0_max_vcpus_max; in dom0_max_vcpus()
198 if ( max_vcpus > limit ) in dom0_max_vcpus()
199 max_vcpus = limit; in dom0_max_vcpus()
201 return max_vcpus; in dom0_max_vcpus()
206 unsigned int max_vcpus = dom0_max_vcpus(); in alloc_dom0_vcpu0() local
211 dom0->vcpu = xzalloc_array(struct vcpu *, max_vcpus); in alloc_dom0_vcpu0()
214 dom0->max_vcpus = max_vcpus; in alloc_dom0_vcpu0()
272 memkb = 4 * (256 * d->max_vcpus + 2 * (memkb / 1024)); in dom0_paging_pages()
289 avail -= (d->max_vcpus - 1UL) in dom0_compute_nr_pages()
293 avail -= d->max_vcpus - 1; in dom0_compute_nr_pages()