Searched refs:max_vcpu (Results 1 – 3 of 3) sorted by relevance
193 int max_vcpu = DEFAULT_NUM_VCPU; in main() local202 max_vcpu = strtol(argv[2], NULL, 0); in main()203 if (max_vcpu <= 0) in main()204 max_vcpu = DEFAULT_NUM_VCPU; in main()218 vcpus = malloc(sizeof(struct kvm_vcpu *) * max_vm * max_vcpu); in main()230 for (j = 0; j < max_vcpu; ++j) in main()231 vcpus[i * max_vcpu + j] = __vm_vcpu_add(vms[i], j); in main()249 for (j = 0; j < max_vcpu; ++j) { in main()250 vcpu_stats_fds[j] = vcpu_get_stats_fd(vcpus[i * max_vcpu + j]); in main()252 stats_test(vcpu_get_stats_fd(vcpus[i * max_vcpu + j])); in main()[all …]
50 int max_vcpu; member
62 if (vcpu >= event->max_vcpu) \722 for (i = 0; i < event->max_vcpu; ++i) { in clear_events_cache_stats()732 int old_max_vcpu = event->max_vcpu; in kvm_event_expand()735 if (vcpu_id < event->max_vcpu) in kvm_event_expand()738 while (event->max_vcpu <= vcpu_id) in kvm_event_expand()739 event->max_vcpu += DEFAULT_VCPU_NUM; in kvm_event_expand()743 event->max_vcpu * sizeof(*event->vcpu)); in kvm_event_expand()751 (event->max_vcpu - old_max_vcpu) * sizeof(*event->vcpu)); in kvm_event_expand()