Searched refs:max_vcpus (Results 1 – 10 of 10) sorted by relevance
/Linux-v5.15/tools/testing/selftests/kvm/ |
D | memslot_modification_stress_test.c | 169 int max_vcpus = kvm_check_cap(KVM_CAP_MAX_VCPUS); in main() local 195 TEST_ASSERT(nr_vcpus > 0 && nr_vcpus <= max_vcpus, in main() 197 max_vcpus); in main()
|
D | dirty_log_perf_test.c | 344 int max_vcpus = kvm_check_cap(KVM_CAP_MAX_VCPUS); in main() local 382 TEST_ASSERT(nr_vcpus > 0 && nr_vcpus <= max_vcpus, in main() 383 "Invalid number of vcpus, must be between 1 and %d", max_vcpus); in main()
|
D | kvm_page_table_test.c | 465 int max_vcpus = kvm_check_cap(KVM_CAP_MAX_VCPUS); in main() local 487 TEST_ASSERT(nr_vcpus > 0 && nr_vcpus <= max_vcpus, in main() 488 "Invalid number of vcpus, must be between 1 and %d", max_vcpus); in main()
|
D | demand_paging_test.c | 439 int max_vcpus = kvm_check_cap(KVM_CAP_MAX_VCPUS); in main() local 472 TEST_ASSERT(nr_vcpus > 0 && nr_vcpus <= max_vcpus, in main() 473 "Invalid number of vcpus, must be between 1 and %d", max_vcpus); in main()
|
/Linux-v5.15/arch/powerpc/include/asm/ |
D | xive.h | 109 u32 xive_native_alloc_vp_block(u32 max_vcpus); 164 static inline u32 xive_native_alloc_vp_block(u32 max_vcpus) { return XIVE_INVALID_VP; } in xive_native_alloc_vp_block() argument
|
/Linux-v5.15/arch/arm64/kvm/vgic/ |
D | vgic-init.c | 100 kvm->arch.max_vcpus = VGIC_V2_MAX_CPUS; in kvm_vgic_create() 102 kvm->arch.max_vcpus = VGIC_V3_MAX_CPUS; in kvm_vgic_create() 104 if (atomic_read(&kvm->online_vcpus) > kvm->arch.max_vcpus) { in kvm_vgic_create()
|
/Linux-v5.15/arch/powerpc/sysdev/xive/ |
D | native.c | 653 u32 xive_native_alloc_vp_block(u32 max_vcpus) in xive_native_alloc_vp_block() argument 658 order = fls(max_vcpus) - 1; in xive_native_alloc_vp_block() 659 if (max_vcpus > (1 << order)) in xive_native_alloc_vp_block() 663 max_vcpus, order); in xive_native_alloc_vp_block()
|
/Linux-v5.15/arch/arm64/kvm/ |
D | arm.c | 156 kvm->arch.max_vcpus = kvm_arm_default_max_vcpus(); in kvm_arch_init_vm() 231 r = kvm->arch.max_vcpus; in kvm_vm_ioctl_check_extension() 313 if (id >= kvm->arch.max_vcpus) in kvm_arch_vcpu_precreate()
|
/Linux-v5.15/arch/arm64/include/asm/ |
D | kvm_host.h | 111 int max_vcpus; member
|
/Linux-v5.15/Documentation/virt/kvm/ |
D | api.rst | 302 This API adds a vcpu to a virtual machine. No more than max_vcpus may be added. 305 The recommended max_vcpus value can be retrieved using the KVM_CAP_NR_VCPUS of 307 The maximum possible value for max_vcpus can be retrieved using the 310 If the KVM_CAP_NR_VCPUS does not exist, you should assume that max_vcpus is 4 312 If the KVM_CAP_MAX_VCPUS does not exist, you should assume that max_vcpus is 3701 and it must not exceed (max_vcpus + 32) * sizeof(struct kvm_s390_irq),
|