/Linux-v6.6/tools/testing/selftests/kvm/x86_64/ |
D | set_boot_cpu_id.c | 77 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 …]
|
D | recalc_apic_map_test.c | 37 struct kvm_vcpu *vcpus[KVM_MAX_VCPUS]; in main() local 51 vm = vm_create_with_vcpus(KVM_MAX_VCPUS, NULL, vcpus); in main() 58 vcpu_set_msr(vcpus[i], MSR_IA32_APICBASE, LAPIC_X2APIC); in main() 60 TEST_ASSERT_EQ(pthread_create(&thread, NULL, race, vcpus[0]), 0); in main() 62 vcpuN = vcpus[KVM_MAX_VCPUS - 1]; in main()
|
D | xapic_state_test.c | 164 struct kvm_vcpu *vcpus[NR_VCPUS]; in test_apic_id() local 169 vm = vm_create_with_vcpus(NR_VCPUS, NULL, vcpus); in test_apic_id() 173 apic_base = vcpu_get_msr(vcpus[i], MSR_IA32_APICBASE); in test_apic_id() 180 __test_apic_id(vcpus[i], apic_base); in test_apic_id() 181 __test_apic_id(vcpus[i], apic_base | X2APIC_ENABLE); in test_apic_id() 182 __test_apic_id(vcpus[i], apic_base); in test_apic_id()
|
/Linux-v6.6/tools/testing/selftests/kvm/aarch64/ |
D | vgic_init.c | 76 struct kvm_vcpu *vcpus[]) in vm_gic_create_with_vcpus() argument 81 v.vm = vm_create_with_vcpus(nr_vcpus, guest_code, vcpus); in vm_gic_create_with_vcpus() 325 struct kvm_vcpu *vcpus[NR_VCPUS]; in test_vgic_then_vcpus() local 329 v = vm_gic_create_with_vcpus(gic_dev_type, 1, vcpus); in test_vgic_then_vcpus() 335 vcpus[i] = vm_vcpu_add(v.vm, i, guest_code); in test_vgic_then_vcpus() 337 ret = run_vcpu(vcpus[3]); in test_vgic_then_vcpus() 346 struct kvm_vcpu *vcpus[NR_VCPUS]; in test_vcpus_then_vgic() local 350 v = vm_gic_create_with_vcpus(gic_dev_type, NR_VCPUS, vcpus); in test_vcpus_then_vgic() 354 ret = run_vcpu(vcpus[3]); in test_vcpus_then_vgic() 362 struct kvm_vcpu *vcpus[NR_VCPUS]; in test_v3_new_redist_regions() local [all …]
|
D | arch_timer.c | 80 static struct kvm_vcpu *vcpus[KVM_MAX_VCPUS]; variable 229 struct kvm_vcpu *vcpu = vcpus[vcpu_idx]; in test_vcpu_run() 359 vcpu_device_attr_get(vcpus[0], KVM_ARM_VCPU_TIMER_CTRL, in test_init_timer_irq() 361 vcpu_device_attr_get(vcpus[0], KVM_ARM_VCPU_TIMER_CTRL, in test_init_timer_irq() 378 vm = vm_create_with_vcpus(nr_vcpus, guest_code, vcpus); in test_vm_create() 391 vcpu_init_descriptor_tables(vcpus[i]); in test_vm_create()
|
/Linux-v6.6/tools/testing/selftests/kvm/ |
D | max_guest_memory_test.c | 92 static pthread_t *spawn_workers(struct kvm_vm *vm, struct kvm_vcpu **vcpus, in spawn_workers() argument 111 info[i].vcpu = vcpus[i]; in spawn_workers() 173 struct kvm_vcpu **vcpus; in main() local 214 vcpus = malloc(nr_vcpus * sizeof(*vcpus)); in main() 215 TEST_ASSERT(vcpus, "Failed to allocate vCPU array"); in main() 217 vm = vm_create_with_vcpus(nr_vcpus, guest_code, vcpus); in main() 254 threads = spawn_workers(vm, vcpus, start_gpa, gpa); in main() 256 free(vcpus); in main() 257 vcpus = NULL; in main()
|
D | kvm_page_table_test.c | 58 struct kvm_vcpu *vcpus[KVM_MAX_VCPUS]; member 258 guest_code, test_args.vcpus); in pre_init_before_test() 321 int vcpus; in vcpus_complete_new_stage() local 324 for (vcpus = 0; vcpus < nr_vcpus; vcpus++) { in vcpus_complete_new_stage() 331 for (vcpus = 0; vcpus < nr_vcpus; vcpus++) { in vcpus_complete_new_stage() 336 vcpus + 1, test_stage_string[stage]); in vcpus_complete_new_stage() 362 test_args.vcpus[i]); in run_test()
|
D | kvm_binary_stats_test.c | 190 struct kvm_vcpu **vcpus; in main() local 218 vcpus = malloc(sizeof(struct kvm_vcpu *) * max_vm * max_vcpu); in main() 219 TEST_ASSERT(vcpus, "Allocate memory for storing vCPU pointers"); in main() 231 vcpus[i * max_vcpu + j] = __vm_vcpu_add(vms[i], 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() 271 free(vcpus); in main()
|
D | steal_time.c | 244 struct kvm_vcpu *vcpus[NR_VCPUS]; in main() local 265 vm = vm_create_with_vcpus(NR_VCPUS, guest_code, vcpus); in main() 270 TEST_REQUIRE(is_steal_time_supported(vcpus[0])); in main() 274 steal_time_init(vcpus[i], i); in main() 276 vcpu_args_set(vcpus[i], 1, i); in main() 279 run_vcpu(vcpus[i]); in main() 282 run_vcpu(vcpus[i]); in main() 303 run_vcpu(vcpus[i]); in main()
|
/Linux-v6.6/tools/testing/selftests/kvm/lib/x86_64/ |
D | memstress.c | 80 void memstress_setup_nested(struct kvm_vm *vm, int nr_vcpus, struct kvm_vcpu *vcpus[]) in memstress_setup_nested() argument 107 vcpu_regs_get(vcpus[vcpu_id], ®s); in memstress_setup_nested() 109 vcpu_regs_set(vcpus[vcpu_id], ®s); in memstress_setup_nested() 110 vcpu_args_set(vcpus[vcpu_id], 2, vmx_gva, vcpu_id); in memstress_setup_nested()
|
/Linux-v6.6/tools/testing/selftests/kvm/lib/ |
D | memstress.c | 42 static struct kvm_vcpu *vcpus[KVM_MAX_VCPUS]; variable 90 struct kvm_vcpu *vcpus[], in memstress_setup_vcpus() argument 101 vcpu_args->vcpu = vcpus[i]; in memstress_setup_vcpus() 117 vcpu_args_set(vcpus[i], 1, i); in memstress_setup_vcpus() 172 memstress_guest_code, vcpus); in memstress_create_vm() 220 memstress_setup_vcpus(vm, nr_vcpus, vcpus, vcpu_memory_bytes, in memstress_create_vm() 225 memstress_setup_nested(vm, nr_vcpus, vcpus); in memstress_create_vm() 262 void __weak memstress_setup_nested(struct kvm_vm *vm, int nr_vcpus, struct kvm_vcpu **vcpus) in memstress_setup_nested() argument
|
D | kvm_util.c | 219 INIT_LIST_HEAD(&vm->vcpus); in ____vm_create() 405 void *guest_code, struct kvm_vcpu *vcpus[]) in __vm_create_with_vcpus() argument 410 TEST_ASSERT(!nr_vcpus || vcpus, "Must provide vCPU array"); in __vm_create_with_vcpus() 415 vcpus[i] = vm_vcpu_add(vm, i, guest_code); in __vm_create_with_vcpus() 424 struct kvm_vcpu *vcpus[1]; in __vm_create_with_one_vcpu() local 428 guest_code, vcpus); in __vm_create_with_one_vcpu() 430 *vcpu = vcpus[0]; in __vm_create_with_one_vcpu() 666 list_for_each_entry_safe(vcpu, tmp, &vmp->vcpus, list) in kvm_vm_release() 1204 list_for_each_entry(vcpu, &vm->vcpus, list) { in vcpu_exists() 1241 list_add(&vcpu->list, &vm->vcpus); in __vm_vcpu_add() [all …]
|
/Linux-v6.6/tools/testing/selftests/kvm/include/ |
D | memstress.h | 68 void memstress_start_vcpu_threads(int vcpus, void (*vcpu_fn)(struct memstress_vcpu_args *)); 69 void memstress_join_vcpu_threads(int vcpus); 73 void memstress_setup_nested(struct kvm_vm *vm, int nr_vcpus, struct kvm_vcpu *vcpus[]);
|
D | kvm_util_base.h | 101 struct list_head vcpus; member 151 if (!((vcpu) = vm->vcpus[i])) \ 732 void *guest_code, struct kvm_vcpu *vcpus[]); 736 struct kvm_vcpu *vcpus[]) in vm_create_with_vcpus() argument 739 guest_code, vcpus); in vm_create_with_vcpus()
|
/Linux-v6.6/Documentation/powerpc/ |
D | vcpudispatch_stats.rst | 8 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-v6.6/arch/arm64/kvm/hyp/nvhe/ |
D | pkvm.c | 270 hyp_vcpu = hyp_vm->vcpus[vcpu_idx]; in pkvm_load_hyp_vcpu() 565 hyp_vm->vcpus[idx] = hyp_vcpu; in __pkvm_init_vcpu() 619 unpin_host_vcpus(hyp_vm->vcpus, hyp_vm->nr_vcpus); in __pkvm_teardown_vm() 623 struct pkvm_hyp_vcpu *hyp_vcpu = hyp_vm->vcpus[idx]; in __pkvm_teardown_vm()
|
/Linux-v6.6/arch/arm64/kvm/hyp/include/nvhe/ |
D | pkvm.h | 47 struct pkvm_hyp_vcpu *vcpus[]; member
|
/Linux-v6.6/arch/s390/hypfs/ |
D | hypfs_vm.h | 25 __u32 vcpus; member
|
D | hypfs_vm_fs.c | 54 ATTRIBUTE(cpus_dir, "count", data->vcpus); in hypfs_vm_create_guest()
|
/Linux-v6.6/Documentation/translations/zh_CN/virt/ |
D | guest-halt-polling.rst | 19 cpuidle_haltpoll驱动,与haltpoll管理器一起,允许客户机vcpus在停机前轮询
|
/Linux-v6.6/tools/testing/selftests/kvm/lib/aarch64/ |
D | vgic.c | 47 list_for_each(iter, &vm->vcpus) in vgic_v3_setup()
|
/Linux-v6.6/tools/perf/Documentation/ |
D | perf-kvm.txt | 94 analyze events which occur on this vcpu. (default: all vcpus) 131 analyze events which occur on this vcpu. (default: all vcpus)
|
/Linux-v6.6/Documentation/virt/ |
D | guest-halt-polling.rst | 6 the guest vcpus to poll for a specified amount of time before
|
/Linux-v6.6/Documentation/virt/kvm/devices/ |
D | arm-vgic-its.rst | 131 a) restore all guest memory and create vcpus 142 Then vcpus can be started.
|
/Linux-v6.6/Documentation/virt/kvm/ |
D | halt-polling.rst | 11 vcpus of a single vcore have ceded, the host kernel polls for wakeup conditions
|