Home
last modified time | relevance | path

Searched refs:kvm_max_vcpu_id (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/tools/testing/selftests/kvm/
H A Dkvm_create_max_vcpus.c42 int kvm_max_vcpu_id = kvm_check_cap(KVM_CAP_MAX_VCPU_ID); in main() local
51 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()
/openbmc/qemu/accel/kvm/
H A Dkvm-all.c2419 static int kvm_max_vcpu_id(KVMState *s) in kvm_max_vcpu_id() function
2428 return vcpu_id >= 0 && vcpu_id < kvm_max_vcpu_id(s); in kvm_vcpu_id_is_valid()