Searched refs:max_vcpus (Results 1 – 11 of 11) sorted by relevance
/linux-6.3-rc2/tools/testing/selftests/kvm/ |
A D | memslot_modification_stress_test.c | 139 int max_vcpus = kvm_check_cap(KVM_CAP_MAX_VCPUS); in main() local 162 TEST_ASSERT(nr_vcpus <= max_vcpus, in main() 164 max_vcpus); in main()
|
A D | demand_paging_test.c | 230 int max_vcpus = kvm_check_cap(KVM_CAP_MAX_VCPUS); in main() local 263 TEST_ASSERT(nr_vcpus <= max_vcpus, in main() 264 "Invalid number of vcpus, must be between 1 and %d", max_vcpus); in main()
|
A D | kvm_page_table_test.c | 441 int max_vcpus = kvm_check_cap(KVM_CAP_MAX_VCPUS); in main() local 463 TEST_ASSERT(nr_vcpus <= max_vcpus, in main() 464 "Invalid number of vcpus, must be between 1 and %d", max_vcpus); in main()
|
A D | dirty_log_perf_test.c | 422 int max_vcpus = kvm_check_cap(KVM_CAP_MAX_VCPUS); in main() local 485 TEST_ASSERT(nr_vcpus <= max_vcpus, in main() 486 "Invalid number of vcpus, must be between 1 and %d", max_vcpus); in main()
|
/linux-6.3-rc2/arch/powerpc/include/asm/ |
A 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-6.3-rc2/arch/arm64/kvm/vgic/ |
A D | vgic-init.c | 101 kvm->max_vcpus = VGIC_V2_MAX_CPUS; in kvm_vgic_create() 103 kvm->max_vcpus = VGIC_V3_MAX_CPUS; in kvm_vgic_create() 105 if (atomic_read(&kvm->online_vcpus) > kvm->max_vcpus) { in kvm_vgic_create()
|
/linux-6.3-rc2/arch/powerpc/sysdev/xive/ |
A D | native.c | 671 u32 xive_native_alloc_vp_block(u32 max_vcpus) in xive_native_alloc_vp_block() argument 676 order = fls(max_vcpus) - 1; in xive_native_alloc_vp_block() 677 if (max_vcpus > (1 << order)) in xive_native_alloc_vp_block() 681 max_vcpus, order); in xive_native_alloc_vp_block()
|
/linux-6.3-rc2/arch/arm64/kvm/ |
A D | arm.c | 152 kvm->max_vcpus = kvm_arm_default_max_vcpus(); in kvm_arch_init_vm() 243 r = kvm->max_vcpus; in kvm_vm_ioctl_check_extension() 319 if (id >= kvm->max_vcpus) in kvm_arch_vcpu_precreate()
|
/linux-6.3-rc2/include/linux/ |
A D | kvm_host.h | 748 int max_vcpus; member
|
/linux-6.3-rc2/virt/kvm/ |
A D | kvm_main.c | 1150 kvm->max_vcpus = KVM_MAX_VCPUS; in kvm_create_vm() 3907 if (kvm->created_vcpus >= kvm->max_vcpus) { in kvm_vm_ioctl_create_vcpu()
|
/linux-6.3-rc2/Documentation/virt/kvm/ |
A D | api.rst | 284 This API adds a vcpu to a virtual machine. No more than max_vcpus may be added. 287 The recommended max_vcpus value can be retrieved using the KVM_CAP_NR_VCPUS of 289 The maximum possible value for max_vcpus can be retrieved using the 292 If the KVM_CAP_NR_VCPUS does not exist, you should assume that max_vcpus is 4 294 If the KVM_CAP_MAX_VCPUS does not exist, you should assume that max_vcpus is 4065 and it must not exceed (max_vcpus + 32) * sizeof(struct kvm_s390_irq),
|
Completed in 45 milliseconds