Searched refs:max_vcpus (Results 1 – 12 of 12) sorted by relevance
| /linux/tools/testing/selftests/kvm/ |
| H A D | memslot_modification_stress_test.c | 140 int max_vcpus = kvm_check_cap(KVM_CAP_MAX_VCPUS); in main() local 163 TEST_ASSERT(nr_vcpus <= max_vcpus, in main() 165 max_vcpus); in main()
|
| H A D | demand_paging_test.c | 272 int max_vcpus = kvm_check_cap(KVM_CAP_MAX_VCPUS); in main() local 311 TEST_ASSERT(nr_vcpus <= max_vcpus, in main() 312 "Invalid number of vcpus, must be between 1 and %d", max_vcpus); in main()
|
| H A D | dirty_log_perf_test.c | 302 int max_vcpus = kvm_check_cap(KVM_CAP_MAX_VCPUS); in main() local 367 TEST_ASSERT(nr_vcpus <= max_vcpus, in main() 368 "Invalid number of vcpus, must be between 1 and %d", max_vcpus); in main()
|
| H A D | kvm_page_table_test.c | 436 int max_vcpus = kvm_check_cap(KVM_CAP_MAX_VCPUS); in main() local 458 TEST_ASSERT(nr_vcpus <= max_vcpus, in main() 459 "Invalid number of vcpus, must be between 1 and %d", max_vcpus); in main()
|
| /linux/arch/powerpc/include/asm/ |
| H A D | xive.h | 109 u32 xive_native_alloc_vp_block(u32 max_vcpus); 163 static inline u32 xive_native_alloc_vp_block(u32 max_vcpus) { return XIVE_INVALID_VP; } in xive_native_alloc_vp_block() argument
|
| /linux/arch/arm64/kvm/vgic/ |
| H A D | vgic-init.c | 133 kvm->max_vcpus = VGIC_V2_MAX_CPUS; in kvm_vgic_create() 135 kvm->max_vcpus = VGIC_V3_MAX_CPUS; in kvm_vgic_create() 137 kvm->max_vcpus = min(VGIC_V5_MAX_CPUS, in kvm_vgic_create() 140 if (atomic_read(&kvm->online_vcpus) > kvm->max_vcpus) { in kvm_vgic_create()
|
| /linux/arch/powerpc/sysdev/xive/ |
| H A D | native.c | 667 u32 xive_native_alloc_vp_block(u32 max_vcpus) in xive_native_alloc_vp_block() argument 672 order = fls(max_vcpus) - 1; in xive_native_alloc_vp_block() 673 if (max_vcpus > (1 << order)) in xive_native_alloc_vp_block() 677 max_vcpus, order); in xive_native_alloc_vp_block()
|
| /linux/arch/arm64/kvm/ |
| H A D | arm.c | 258 kvm->max_vcpus = kvm_arm_default_max_vcpus(); in kvm_arch_init_vm() 414 r = kvm->max_vcpus; in kvm_vm_ioctl_check_extension() 515 if (id >= kvm->max_vcpus) in kvm_arch_vcpu_precreate()
|
| /linux/include/linux/ |
| H A D | kvm_host.h | 816 int max_vcpus; member
|
| /linux/virt/kvm/ |
| H A D | kvm_main.c | 1126 kvm->max_vcpus = KVM_MAX_VCPUS; in kvm_create_vm() 4170 if (kvm->created_vcpus >= kvm->max_vcpus) { in kvm_vm_ioctl_create_vcpu()
|
| /linux/Documentation/virt/kvm/ |
| H A D | api.rst | 316 This API adds a vcpu to a virtual machine. No more than max_vcpus may be added. 319 The recommended max_vcpus value can be retrieved using the KVM_CAP_NR_VCPUS of 321 The maximum possible value for max_vcpus can be retrieved using the 324 If the KVM_CAP_NR_VCPUS does not exist, you should assume that max_vcpus is 4 326 If the KVM_CAP_MAX_VCPUS does not exist, you should assume that max_vcpus is 4193 and it must not exceed (max_vcpus + 32) * sizeof(struct kvm_s390_irq),
|
| /linux/arch/x86/kvm/ |
| H A D | x86.c | 4929 r = kvm->max_vcpus; in kvm_vm_ioctl_check_extension()
|