Home
last modified time | relevance | path

Searched refs:vcpus (Results 1 – 25 of 26) sorted by relevance

12

/linux-6.1.9/tools/testing/selftests/kvm/x86_64/
Dset_boot_cpu_id.c77 struct kvm_vcpu *vcpus[]) in create_vm() argument
87 vcpus[i] = vm_vcpu_add(vm, i, i == bsp_vcpu_id ? guest_bsp_vcpu : in create_vm()
94 struct kvm_vcpu *vcpus[2]; in run_vm_bsp() local
97 vm = create_vm(ARRAY_SIZE(vcpus), bsp_vcpu_id, vcpus); in run_vm_bsp()
99 run_vcpu(vcpus[0]); in run_vm_bsp()
100 run_vcpu(vcpus[1]); in run_vm_bsp()
107 struct kvm_vcpu *vcpus[2]; in check_set_bsp_busy() local
110 vm = create_vm(ARRAY_SIZE(vcpus), 0, vcpus); in check_set_bsp_busy()
112 test_set_bsp_busy(vcpus[1], "after adding vcpu"); in check_set_bsp_busy()
114 run_vcpu(vcpus[0]); in check_set_bsp_busy()
[all …]
/linux-6.1.9/tools/testing/selftests/kvm/aarch64/
Dvgic_init.c78 struct kvm_vcpu *vcpus[]) in vm_gic_create_with_vcpus() argument
83 v.vm = vm_create_with_vcpus(nr_vcpus, guest_code, vcpus); in vm_gic_create_with_vcpus()
327 struct kvm_vcpu *vcpus[NR_VCPUS]; in test_vgic_then_vcpus() local
331 v = vm_gic_create_with_vcpus(gic_dev_type, 1, vcpus); in test_vgic_then_vcpus()
337 vcpus[i] = vm_vcpu_add(v.vm, i, guest_code); in test_vgic_then_vcpus()
339 ret = run_vcpu(vcpus[3]); in test_vgic_then_vcpus()
348 struct kvm_vcpu *vcpus[NR_VCPUS]; in test_vcpus_then_vgic() local
352 v = vm_gic_create_with_vcpus(gic_dev_type, NR_VCPUS, vcpus); in test_vcpus_then_vgic()
356 ret = run_vcpu(vcpus[3]); in test_vcpus_then_vgic()
364 struct kvm_vcpu *vcpus[NR_VCPUS]; in test_v3_new_redist_regions() local
[all …]
Darch_timer.c79 static struct kvm_vcpu *vcpus[KVM_MAX_VCPUS]; variable
217 struct kvm_vcpu *vcpu = vcpus[vcpu_idx]; in test_vcpu_run()
351 vcpu_device_attr_get(vcpus[0], KVM_ARM_VCPU_TIMER_CTRL, in test_init_timer_irq()
353 vcpu_device_attr_get(vcpus[0], KVM_ARM_VCPU_TIMER_CTRL, in test_init_timer_irq()
370 vm = vm_create_with_vcpus(nr_vcpus, guest_code, vcpus); in test_vm_create()
376 vcpu_init_descriptor_tables(vcpus[i]); in test_vm_create()
/linux-6.1.9/tools/testing/selftests/kvm/
Dmax_guest_memory_test.c91 static pthread_t *spawn_workers(struct kvm_vm *vm, struct kvm_vcpu **vcpus, in spawn_workers() argument
110 info[i].vcpu = vcpus[i]; in spawn_workers()
173 struct kvm_vcpu **vcpus; in main() local
217 vcpus = malloc(nr_vcpus * sizeof(*vcpus)); in main()
218 TEST_ASSERT(vcpus, "Failed to allocate vCPU array"); in main()
220 vm = vm_create_with_vcpus(nr_vcpus, guest_code, vcpus); in main()
257 threads = spawn_workers(vm, vcpus, start_gpa, gpa); in main()
259 free(vcpus); in main()
260 vcpus = NULL; in main()
Dkvm_page_table_test.c58 struct kvm_vcpu *vcpus[KVM_MAX_VCPUS]; member
258 guest_code, test_args.vcpus); in pre_init_before_test()
322 int vcpus; in vcpus_complete_new_stage() local
325 for (vcpus = 0; vcpus < nr_vcpus; vcpus++) { in vcpus_complete_new_stage()
332 for (vcpus = 0; vcpus < nr_vcpus; vcpus++) { in vcpus_complete_new_stage()
337 vcpus + 1, test_stage_string[stage]); in vcpus_complete_new_stage()
363 test_args.vcpus[i]); in run_test()
Dsteal_time.c244 struct kvm_vcpu *vcpus[NR_VCPUS]; in main() local
265 vm = vm_create_with_vcpus(NR_VCPUS, guest_code, vcpus); in main()
271 TEST_REQUIRE(is_steal_time_supported(vcpus[0])); in main()
275 steal_time_init(vcpus[i], i); in main()
277 vcpu_args_set(vcpus[i], 1, i); in main()
280 run_vcpu(vcpus[i]); in main()
283 run_vcpu(vcpus[i]); in main()
304 run_vcpu(vcpus[i]); in main()
Dkvm_binary_stats_test.c210 struct kvm_vcpu **vcpus; in main() local
234 vcpus = malloc(sizeof(struct kvm_vcpu *) * max_vm * max_vcpu); in main()
235 TEST_ASSERT(vcpus, "Allocate memory for storing vCPU pointers"); in main()
240 vcpus[i * max_vcpu + j] = __vm_vcpu_add(vms[i], j); in main()
247 vcpu_stats_test(vcpus[i * max_vcpu + j]); in main()
/linux-6.1.9/tools/testing/selftests/kvm/lib/
Dperf_test_util.c39 static struct kvm_vcpu *vcpus[KVM_MAX_VCPUS]; variable
74 struct kvm_vcpu *vcpus[], in perf_test_setup_vcpus() argument
85 vcpu_args->vcpu = vcpus[i]; in perf_test_setup_vcpus()
101 vcpu_args_set(vcpus[i], 1, i); in perf_test_setup_vcpus()
156 perf_test_guest_code, vcpus); in perf_test_create_vm()
204 perf_test_setup_vcpus(vm, nr_vcpus, vcpus, vcpu_memory_bytes, in perf_test_create_vm()
209 perf_test_setup_nested(vm, nr_vcpus, vcpus); in perf_test_create_vm()
237 void __weak perf_test_setup_nested(struct kvm_vm *vm, int nr_vcpus, struct kvm_vcpu **vcpus) in perf_test_setup_nested() argument
Dkvm_util.c198 INIT_LIST_HEAD(&vm->vcpus); in ____vm_create()
370 void *guest_code, struct kvm_vcpu *vcpus[]) in __vm_create_with_vcpus() argument
375 TEST_ASSERT(!nr_vcpus || vcpus, "Must provide vCPU array"); in __vm_create_with_vcpus()
380 vcpus[i] = vm_vcpu_add(vm, i, guest_code); in __vm_create_with_vcpus()
389 struct kvm_vcpu *vcpus[1]; in __vm_create_with_one_vcpu() local
393 guest_code, vcpus); in __vm_create_with_one_vcpu()
395 *vcpu = vcpus[0]; in __vm_create_with_one_vcpu()
561 list_for_each_entry_safe(vcpu, tmp, &vmp->vcpus, list) in kvm_vm_release()
1092 list_for_each_entry(vcpu, &vm->vcpus, list) { in vcpu_exists()
1129 list_add(&vcpu->list, &vm->vcpus); in __vm_vcpu_add()
[all …]
/linux-6.1.9/tools/testing/selftests/kvm/lib/x86_64/
Dperf_test_util.c80 void perf_test_setup_nested(struct kvm_vm *vm, int nr_vcpus, struct kvm_vcpu *vcpus[]) in perf_test_setup_nested() argument
106 vcpu_regs_get(vcpus[vcpu_id], &regs); in perf_test_setup_nested()
108 vcpu_regs_set(vcpus[vcpu_id], &regs); in perf_test_setup_nested()
109 vcpu_args_set(vcpus[vcpu_id], 2, vmx_gva, vcpu_id); in perf_test_setup_nested()
Dvmx.c552 vcpu = list_first_entry(&vm->vcpus, struct kvm_vcpu, list); in kvm_vm_has_ept()
/linux-6.1.9/tools/testing/selftests/kvm/include/
Dperf_test_util.h56 void perf_test_start_vcpu_threads(int vcpus, void (*vcpu_fn)(struct perf_test_vcpu_args *));
57 void perf_test_join_vcpu_threads(int vcpus);
61 void perf_test_setup_nested(struct kvm_vm *vm, int nr_vcpus, struct kvm_vcpu *vcpus[]);
Dkvm_util_base.h78 struct list_head vcpus; member
100 if (!((vcpu) = vm->vcpus[i])) \
665 void *guest_code, struct kvm_vcpu *vcpus[]);
669 struct kvm_vcpu *vcpus[]) in vm_create_with_vcpus() argument
672 guest_code, vcpus); in vm_create_with_vcpus()
/linux-6.1.9/Documentation/powerpc/
Dvcpudispatch_stats.rst8 static mapping of the LPAR processors (vcpus) to physical processor
9 chips (representing the "home" node) and tries to always dispatch vcpus
11 scenarios, vcpus may be dispatched on a different processor chip (away
/linux-6.1.9/Documentation/translations/zh_CN/virt/
Dguest-halt-polling.rst19 cpuidle_haltpoll驱动,与haltpoll管理器一起,允许客户机vcpus在停机前轮询
/linux-6.1.9/arch/s390/hypfs/
Dhypfs_vm.c38 __u32 vcpus; member
150 ATTRIBUTE(cpus_dir, "count", data->vcpus); in hypfs_vm_create_guest()
/linux-6.1.9/tools/testing/selftests/kvm/lib/aarch64/
Dvgic.c47 list_for_each(iter, &vm->vcpus) in vgic_v3_setup()
/linux-6.1.9/tools/perf/Documentation/
Dperf-kvm.txt92 analyze events which occur on this vcpu. (default: all vcpus)
126 analyze events which occur on this vcpu. (default: all vcpus)
/linux-6.1.9/Documentation/virt/
Dguest-halt-polling.rst6 the guest vcpus to poll for a specified amount of time before
/linux-6.1.9/Documentation/virt/kvm/devices/
Darm-vgic-its.rst128 a) restore all guest memory and create vcpus
139 Then vcpus can be started.
Dvcpu.rst40 all vcpus, while as an SPI it must be a separate number per vcpu.
Dvm.rst99 :Returns: -EBUSY in case 1 or more vcpus are already activated (only in write case);
/linux-6.1.9/Documentation/virt/kvm/
Dhalt-polling.rst11 vcpus of a single vcore have ceded, the host kernel polls for wakeup conditions
Dapi.rst19 create virtual cpus (vcpus) and devices.
48 to control the vcpu or device. For vcpus, this includes the important
220 not returned in the MSR list, as different vcpus can have a different number
315 On powerpc using book3s_hv mode, the vcpus are mapped onto virtual
319 of vcpus per virtual core (vcore). The vcore id is obtained by
320 dividing the vcpu id by the number of vcpus per vcore. The vcpus in a
325 single-threaded guest vcpus, it should make all vcpu ids be a multiple
326 of the number of vcpus per vcore.
828 future vcpus to have a local APIC. IRQ routing for GSIs 0-15 is set to both
2566 .. [1] These encodings are not accepted for SVE-enabled vcpus. See
[all …]
/linux-6.1.9/Documentation/admin-guide/mm/
Duserfaultfd.rst239 the guest vcpus.

12