Home
last modified time | relevance | path

Searched refs:max_vcpus (Results 1 – 11 of 11) sorted by relevance

/Linux-v6.1/tools/testing/selftests/kvm/
Dmemslot_modification_stress_test.c144 int max_vcpus = kvm_check_cap(KVM_CAP_MAX_VCPUS); in main() local
170 TEST_ASSERT(nr_vcpus > 0 && nr_vcpus <= max_vcpus, in main()
172 max_vcpus); in main()
Dkvm_page_table_test.c443 int max_vcpus = kvm_check_cap(KVM_CAP_MAX_VCPUS); in main() local
465 TEST_ASSERT(nr_vcpus > 0 && nr_vcpus <= max_vcpus, in main()
466 "Invalid number of vcpus, must be between 1 and %d", max_vcpus); in main()
Ddirty_log_perf_test.c392 int max_vcpus = kvm_check_cap(KVM_CAP_MAX_VCPUS); in main() local
439 TEST_ASSERT(nr_vcpus > 0 && nr_vcpus <= max_vcpus, in main()
440 "Invalid number of vcpus, must be between 1 and %d", max_vcpus); in main()
Ddemand_paging_test.c398 int max_vcpus = kvm_check_cap(KVM_CAP_MAX_VCPUS); in main() local
431 TEST_ASSERT(nr_vcpus > 0 && nr_vcpus <= max_vcpus, in main()
432 "Invalid number of vcpus, must be between 1 and %d", max_vcpus); in main()
/Linux-v6.1/arch/powerpc/include/asm/
Dxive.h109 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-v6.1/arch/arm64/kvm/vgic/
Dvgic-init.c101 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-v6.1/arch/powerpc/sysdev/xive/
Dnative.c671 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-v6.1/arch/arm64/kvm/
Darm.c162 kvm->max_vcpus = kvm_arm_default_max_vcpus(); in kvm_arch_init_vm()
241 r = kvm->max_vcpus; in kvm_vm_ioctl_check_extension()
317 if (id >= kvm->max_vcpus) in kvm_arch_vcpu_precreate()
/Linux-v6.1/include/linux/
Dkvm_host.h730 int max_vcpus; member
/Linux-v6.1/virt/kvm/
Dkvm_main.c1158 kvm->max_vcpus = KVM_MAX_VCPUS; in kvm_create_vm()
3902 if (kvm->created_vcpus >= kvm->max_vcpus) { in kvm_vm_ioctl_create_vcpu()
/Linux-v6.1/Documentation/virt/kvm/
Dapi.rst296 This API adds a vcpu to a virtual machine. No more than max_vcpus may be added.
299 The recommended max_vcpus value can be retrieved using the KVM_CAP_NR_VCPUS of
301 The maximum possible value for max_vcpus can be retrieved using the
304 If the KVM_CAP_NR_VCPUS does not exist, you should assume that max_vcpus is 4
306 If the KVM_CAP_MAX_VCPUS does not exist, you should assume that max_vcpus is
4060 and it must not exceed (max_vcpus + 32) * sizeof(struct kvm_s390_irq),