Lines Matching full:vcpus
75 struct kvm_vcpu *vcpus[]) in vm_gic_create_with_vcpus() argument
80 v.vm = vm_create_with_vcpus(nr_vcpus, guest_code, vcpus); in vm_gic_create_with_vcpus()
137 * DIST/REDIST (or DIST/CPUIF for GICv2). Assumption is 4 vcpus are going to be
336 struct kvm_vcpu *vcpus[NR_VCPUS]; in test_vgic_then_vcpus() local
340 v = vm_gic_create_with_vcpus(gic_dev_type, 1, vcpus); in test_vgic_then_vcpus()
344 /* Add the rest of the VCPUs */ in test_vgic_then_vcpus()
346 vcpus[i] = vm_vcpu_add(v.vm, i, guest_code); in test_vgic_then_vcpus()
348 ret = run_vcpu(vcpus[3]); in test_vgic_then_vcpus()
354 /* All the VCPUs are created before the VGIC KVM device gets initialized */
357 struct kvm_vcpu *vcpus[NR_VCPUS]; in test_vcpus_then_vgic() local
361 v = vm_gic_create_with_vcpus(gic_dev_type, NR_VCPUS, vcpus); in test_vcpus_then_vgic()
365 ret = run_vcpu(vcpus[3]); in test_vcpus_then_vgic()
407 struct kvm_vcpu *vcpus[NR_VCPUS]; in test_v3_new_redist_regions() local
413 v = vm_gic_create_with_vcpus(KVM_DEV_TYPE_ARM_VGIC_V3, NR_VCPUS, vcpus); in test_v3_new_redist_regions()
418 ret = run_vcpu(vcpus[3]); in test_v3_new_redist_regions()
424 v = vm_gic_create_with_vcpus(KVM_DEV_TYPE_ARM_VGIC_V3, NR_VCPUS, vcpus); in test_v3_new_redist_regions()
431 ret = run_vcpu(vcpus[3]); in test_v3_new_redist_regions()
438 v = vm_gic_create_with_vcpus(KVM_DEV_TYPE_ARM_VGIC_V3, NR_VCPUS, vcpus); in test_v3_new_redist_regions()
444 "register a third region allowing to cover the 4 vcpus"); in test_v3_new_redist_regions()
453 ret = run_vcpu(vcpus[3]); in test_v3_new_redist_regions()
605 struct kvm_vcpu *vcpus[NR_VCPUS]; in test_v3_redist_ipa_range_check_at_vcpu_run() local
610 v = vm_gic_create_with_vcpus(KVM_DEV_TYPE_ARM_VGIC_V3, 1, vcpus); in test_v3_redist_ipa_range_check_at_vcpu_run()
621 /* Add the rest of the VCPUs */ in test_v3_redist_ipa_range_check_at_vcpu_run()
623 vcpus[i] = vm_vcpu_add(v.vm, i, guest_code); in test_v3_redist_ipa_range_check_at_vcpu_run()
629 ret = run_vcpu(vcpus[2]); in test_v3_redist_ipa_range_check_at_vcpu_run()
638 struct kvm_vcpu *vcpus[NR_VCPUS]; in test_v3_its_region() local
643 v = vm_gic_create_with_vcpus(KVM_DEV_TYPE_ARM_VGIC_V3, NR_VCPUS, vcpus); in test_v3_its_region()
683 struct kvm_vcpu *vcpus[NR_VCPUS]; in test_kvm_device() local
688 v.vm = vm_create_with_vcpus(NR_VCPUS, guest_code, vcpus); in test_kvm_device()