Searched refs:kvm_max_vcpu_id (Results 1 – 2 of 2) sorted by relevance
42 int kvm_max_vcpu_id = kvm_check_cap(KVM_CAP_MAX_VCPU_ID); in main() local51 pr_info("KVM_CAP_MAX_VCPU_ID: %d\n", kvm_max_vcpu_id); in main()80 if (!kvm_max_vcpu_id) in main()81 kvm_max_vcpu_id = kvm_max_vcpus; in main()83 TEST_ASSERT(kvm_max_vcpu_id >= kvm_max_vcpus, in main()85 kvm_max_vcpu_id, kvm_max_vcpus); in main()89 if (kvm_max_vcpu_id > kvm_max_vcpus) in main()91 kvm_max_vcpu_id - kvm_max_vcpus, kvm_max_vcpus); in main()
2419 static int kvm_max_vcpu_id(KVMState *s) in kvm_max_vcpu_id() function2428 return vcpu_id >= 0 && vcpu_id < kvm_max_vcpu_id(s); in kvm_vcpu_id_is_valid()