Home
last modified time | relevance | path

Searched refs:KVM_MAX_VCPUS (Results 1 – 25 of 29) sorted by relevance

12

/linux/arch/riscv/kvm/
A Dvm.c51 for (i = 0; i < KVM_MAX_VCPUS; ++i) { in kvm_arch_destroy_vm()
77 r = min_t(unsigned int, num_online_cpus(), KVM_MAX_VCPUS); in kvm_vm_ioctl_check_extension()
80 r = KVM_MAX_VCPUS; in kvm_vm_ioctl_check_extension()
/linux/tools/testing/selftests/kvm/aarch64/
A Darch_timer.c85 static struct test_vcpu test_vcpu[KVM_MAX_VCPUS];
86 static struct test_vcpu_shared_data vcpu_shared_data[KVM_MAX_VCPUS];
398 NR_VCPUS_DEF, KVM_MAX_VCPUS); in test_print_help()
419 } else if (test_args.nr_vcpus > KVM_MAX_VCPUS) { in parse_args()
421 KVM_MAX_VCPUS); in parse_args()
/linux/arch/s390/include/asm/
A Dkvm_host.h30 #define KVM_MAX_VCPUS 255 macro
630 DECLARE_BITMAP(sigp_emerg_pending, KVM_MAX_VCPUS);
902 struct page *pages[KVM_MAX_VCPUS];
916 DECLARE_BITMAP(kicked_mask, KVM_MAX_VCPUS);
960 DECLARE_BITMAP(idle_mask, KVM_MAX_VCPUS);
/linux/tools/testing/selftests/kvm/include/
A Dperf_test_util.h37 struct perf_test_vcpu_args vcpu_args[KVM_MAX_VCPUS];
A Dkvm_util.h20 #define KVM_MAX_VCPUS 512 macro
/linux/arch/powerpc/include/asm/
A Dkvm_book3s.h472 int block = (id / KVM_MAX_VCPUS) * (MAX_SMT_THREADS / stride); in kvmppc_pack_vcpu_id()
477 packed_id = (id % KVM_MAX_VCPUS) + block_offsets[block]; in kvmppc_pack_vcpu_id()
478 if (WARN_ONCE(packed_id >= KVM_MAX_VCPUS, "VCPU ID packing failed")) in kvmppc_pack_vcpu_id()
A Dkvm_host.h29 #define KVM_MAX_VCPUS NR_CPUS macro
40 #define KVM_MAX_VCPU_IDS KVM_MAX_VCPUS
/linux/tools/testing/selftests/kvm/
A Dkvm_page_table_test.c63 struct vcpu_args vcpu_args[KVM_MAX_VCPUS];
295 for (vcpu_id = 0; vcpu_id < KVM_MAX_VCPUS; vcpu_id++) { in pre_init_before_test()
A Daccess_tracking_perf_test.c64 static int vcpu_last_completed_iteration[KVM_MAX_VCPUS];
A Ddirty_log_perf_test.c32 static int vcpu_last_completed_iteration[KVM_MAX_VCPUS];
/linux/arch/x86/kvm/
A Dirq_comm.c50 unsigned long dest_vcpu_bitmap[BITS_TO_LONGS(KVM_MAX_VCPUS)]; in kvm_irq_delivery_to_apic()
91 dest_vcpu_bitmap, KVM_MAX_VCPUS); in kvm_irq_delivery_to_apic()
A Dhyperv.c44 #define KVM_HV_MAX_SPARSE_VCPU_SET_BITS DIV_ROUND_UP(KVM_MAX_VCPUS, 64)
169 if (vpidx >= KVM_MAX_VCPUS) in get_vcpu_by_vpidx()
1449 if (!host || new_vp_index >= KVM_MAX_VCPUS) in kvm_hv_set_msr()
1732 bitmap_zero(vcpu_bitmap, KVM_MAX_VCPUS); in sparse_set_to_vcpu_mask()
1760 DECLARE_BITMAP(vcpu_bitmap, KVM_MAX_VCPUS); in kvm_hv_flush_tlb()
1883 DECLARE_BITMAP(vcpu_bitmap, KVM_MAX_VCPUS); in kvm_hv_send_ipi()
2511 ent->eax = KVM_MAX_VCPUS; in kvm_get_hv_cpuid()
A Dioapic.c323 DECLARE_BITMAP(vcpu_bitmap, KVM_MAX_VCPUS); in ioapic_write_indirect()
387 bitmap_zero(vcpu_bitmap, KVM_MAX_VCPUS); in ioapic_write_indirect()
/linux/arch/riscv/include/asm/
A Dkvm_host.h19 #define KVM_MAX_VCPUS \ macro
/linux/tools/testing/selftests/kvm/lib/
A Dperf_test_util.c31 static struct vcpu_thread vcpu_threads[KVM_MAX_VCPUS];
/linux/include/linux/
A Dkvm_host.h43 #define KVM_MAX_VCPU_IDS KVM_MAX_VCPUS
555 struct kvm_vcpu *vcpus[KVM_MAX_VCPUS];
720 if (id < KVM_MAX_VCPUS) in kvm_get_vcpu_by_id()
/linux/arch/s390/kvm/
A Dinterrupt.c778 cpu_addr = find_first_bit(li->sigp_emerg_pending, KVM_MAX_VCPUS); in __deliver_emergency_signal()
780 if (bitmap_empty(li->sigp_emerg_pending, KVM_MAX_VCPUS)) in __deliver_emergency_signal()
1382 bitmap_zero(li->sigp_emerg_pending, KVM_MAX_VCPUS); in kvm_s390_clear_local_irqs()
1865 (ASYNC_PF_PER_VCPU * KVM_MAX_VCPUS)) { in __inject_pfault_done()
2998 DECLARE_BITMAP(sigp_emerg_pending, KVM_MAX_VCPUS); in kvm_s390_get_irq_state()
3025 for_each_set_bit(cpuaddr, sigp_emerg_pending, KVM_MAX_VCPUS) { in kvm_s390_get_irq_state()
/linux/arch/powerpc/kvm/
A Dbook3s_xive.c1944 else if (nr_servers > KVM_MAX_VCPUS) in kvmppc_xive_set_nr_servers()
1948 xive->nr_servers = KVM_MAX_VCPUS; in kvmppc_xive_set_nr_servers()
2162 xive->nr_servers = KVM_MAX_VCPUS; in kvmppc_xive_create()
A Dpowerpc.c644 r = min_t(unsigned int, num_present_cpus(), KVM_MAX_VCPUS); in kvm_vm_ioctl_check_extension()
646 r = min_t(unsigned int, num_online_cpus(), KVM_MAX_VCPUS); in kvm_vm_ioctl_check_extension()
649 r = KVM_MAX_VCPUS; in kvm_vm_ioctl_check_extension()
A Dbook3s_xive_native.c1117 xive->nr_servers = KVM_MAX_VCPUS; in kvmppc_xive_native_create()
/linux/arch/mips/kvm/
A Dmips.c1070 r = min_t(unsigned int, num_online_cpus(), KVM_MAX_VCPUS); in kvm_vm_ioctl_check_extension()
1073 r = KVM_MAX_VCPUS; in kvm_vm_ioctl_check_extension()
/linux/arch/arm64/kvm/
A Darm.c114 return vgic_present ? kvm_vgic_get_max_vcpus() : KVM_MAX_VCPUS; in kvm_arm_default_max_vcpus()
184 for (i = 0; i < KVM_MAX_VCPUS; ++i) { in kvm_arch_destroy_vm()
/linux/arch/arm64/include/asm/
A Dkvm_host.h39 #define KVM_MAX_VCPUS VGIC_V3_MAX_CPUS macro
/linux/arch/x86/include/asm/
A Dkvm_host.h40 #define KVM_MAX_VCPUS 1024 macro
52 #define KVM_MAX_VCPU_IDS (KVM_MAX_VCPUS * KVM_VCPU_ID_RATIO)
/linux/arch/mips/include/asm/
A Dkvm_host.h85 #define KVM_MAX_VCPUS 16 macro

Completed in 70 milliseconds

12