/linux/arch/riscv/kvm/ |
A D | vm.c | 51 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 D | arch_timer.c | 85 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 D | kvm_host.h | 30 #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 D | perf_test_util.h | 37 struct perf_test_vcpu_args vcpu_args[KVM_MAX_VCPUS];
|
A D | kvm_util.h | 20 #define KVM_MAX_VCPUS 512 macro
|
/linux/arch/powerpc/include/asm/ |
A D | kvm_book3s.h | 472 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 D | kvm_host.h | 29 #define KVM_MAX_VCPUS NR_CPUS macro 40 #define KVM_MAX_VCPU_IDS KVM_MAX_VCPUS
|
/linux/tools/testing/selftests/kvm/ |
A D | kvm_page_table_test.c | 63 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 D | access_tracking_perf_test.c | 64 static int vcpu_last_completed_iteration[KVM_MAX_VCPUS];
|
A D | dirty_log_perf_test.c | 32 static int vcpu_last_completed_iteration[KVM_MAX_VCPUS];
|
/linux/arch/x86/kvm/ |
A D | irq_comm.c | 50 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 D | hyperv.c | 44 #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 D | ioapic.c | 323 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 D | kvm_host.h | 19 #define KVM_MAX_VCPUS \ macro
|
/linux/tools/testing/selftests/kvm/lib/ |
A D | perf_test_util.c | 31 static struct vcpu_thread vcpu_threads[KVM_MAX_VCPUS];
|
/linux/include/linux/ |
A D | kvm_host.h | 43 #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 D | interrupt.c | 778 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 D | book3s_xive.c | 1944 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 D | powerpc.c | 644 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 D | book3s_xive_native.c | 1117 xive->nr_servers = KVM_MAX_VCPUS; in kvmppc_xive_native_create()
|
/linux/arch/mips/kvm/ |
A D | mips.c | 1070 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 D | arm.c | 114 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 D | kvm_host.h | 39 #define KVM_MAX_VCPUS VGIC_V3_MAX_CPUS macro
|
/linux/arch/x86/include/asm/ |
A D | kvm_host.h | 40 #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 D | kvm_host.h | 85 #define KVM_MAX_VCPUS 16 macro
|