Lines Matching refs:num_vcpus
494 uint32_t num_vcpus; in sched_rtds_vcpu_get() local
506 if (scinfo->num_vcpus <= 0) { in sched_rtds_vcpu_get()
510 num_vcpus = scinfo->num_vcpus; in sched_rtds_vcpu_get()
511 GCNEW_ARRAY(vcpus, num_vcpus); in sched_rtds_vcpu_get()
512 for (i = 0; i < num_vcpus; i++) { in sched_rtds_vcpu_get()
525 r = xc_sched_rtds_vcpu_get(CTX->xch, domid, vcpus, num_vcpus); in sched_rtds_vcpu_get()
532 for (i = 0; i < num_vcpus; i++) { in sched_rtds_vcpu_get()
548 uint32_t num_vcpus; in sched_rtds_vcpu_get_all() local
560 if (scinfo->num_vcpus > 0) { in sched_rtds_vcpu_get_all()
564 num_vcpus = info.max_vcpu_id + 1; in sched_rtds_vcpu_get_all()
565 GCNEW_ARRAY(vcpus, num_vcpus); in sched_rtds_vcpu_get_all()
566 for (i = 0; i < num_vcpus; i++) in sched_rtds_vcpu_get_all()
570 r = xc_sched_rtds_vcpu_get(CTX->xch, domid, vcpus, num_vcpus); in sched_rtds_vcpu_get_all()
577 scinfo->num_vcpus = num_vcpus; in sched_rtds_vcpu_get_all()
578 scinfo->vcpus = libxl__calloc(NOGC, num_vcpus, in sched_rtds_vcpu_get_all()
581 for (i = 0; i < num_vcpus; i++) { in sched_rtds_vcpu_get_all()
611 if (scinfo->num_vcpus <= 0) { in sched_rtds_vcpu_set()
615 for (i = 0; i < scinfo->num_vcpus; i++) { in sched_rtds_vcpu_set()
630 GCNEW_ARRAY(vcpus, scinfo->num_vcpus); in sched_rtds_vcpu_set()
631 for (i = 0; i < scinfo->num_vcpus; i++) { in sched_rtds_vcpu_set()
642 vcpus, scinfo->num_vcpus); in sched_rtds_vcpu_set()
662 uint32_t num_vcpus; in sched_rtds_vcpu_set_all() local
672 if (scinfo->num_vcpus != 1) { in sched_rtds_vcpu_set_all()
681 num_vcpus = max_vcpuid + 1; in sched_rtds_vcpu_set_all()
682 GCNEW_ARRAY(vcpus, num_vcpus); in sched_rtds_vcpu_set_all()
683 for (i = 0; i < num_vcpus; i++) { in sched_rtds_vcpu_set_all()
694 vcpus, num_vcpus); in sched_rtds_vcpu_set_all()