/linux-6.3-rc2/tools/testing/selftests/kvm/lib/ |
A D | ucall_common.c | 10 DECLARE_BITMAP(in_use, KVM_MAX_VCPUS); 11 struct ucall ucalls[KVM_MAX_VCPUS]; 31 for (i = 0; i < KVM_MAX_VCPUS; ++i) { in ucall_init() 49 for (i = 0; i < KVM_MAX_VCPUS; ++i) { in ucall_alloc()
|
A D | memstress.c | 33 static struct vcpu_thread vcpu_threads[KVM_MAX_VCPUS]; 41 static struct kvm_vcpu *vcpus[KVM_MAX_VCPUS];
|
/linux-6.3-rc2/tools/testing/selftests/kvm/aarch64/ |
A D | arch_timer.c | 79 static struct kvm_vcpu *vcpus[KVM_MAX_VCPUS]; 80 static pthread_t pt_vcpu_run[KVM_MAX_VCPUS]; 81 static struct test_vcpu_shared_data vcpu_shared_data[KVM_MAX_VCPUS]; 399 NR_VCPUS_DEF, KVM_MAX_VCPUS); in test_print_help() 417 if (test_args.nr_vcpus > KVM_MAX_VCPUS) { in parse_args() 419 KVM_MAX_VCPUS); in parse_args()
|
/linux-6.3-rc2/arch/riscv/kvm/ |
A D | vm.c | 71 r = min_t(unsigned int, num_online_cpus(), KVM_MAX_VCPUS); in kvm_vm_ioctl_check_extension() 74 r = KVM_MAX_VCPUS; in kvm_vm_ioctl_check_extension()
|
A D | tlb.c | 297 DECLARE_BITMAP(vcpu_mask, KVM_MAX_VCPUS); in make_xfence_request() 299 bitmap_clear(vcpu_mask, 0, KVM_MAX_VCPUS); in make_xfence_request()
|
/linux-6.3-rc2/tools/testing/selftests/kvm/include/ |
A D | memstress.h | 48 uint32_t vcpu_to_pcpu[KVM_MAX_VCPUS]; 53 struct memstress_vcpu_args vcpu_args[KVM_MAX_VCPUS];
|
A D | kvm_util_base.h | 38 #define KVM_MAX_VCPUS 512 macro
|
/linux-6.3-rc2/arch/s390/include/asm/ |
A D | kvm_host.h | 32 #define KVM_MAX_VCPUS 255 macro 649 DECLARE_BITMAP(sigp_emerg_pending, KVM_MAX_VCPUS); 922 struct page *pages[KVM_MAX_VCPUS]; 936 DECLARE_BITMAP(kicked_mask, KVM_MAX_VCPUS); 985 DECLARE_BITMAP(idle_mask, KVM_MAX_VCPUS);
|
/linux-6.3-rc2/virt/kvm/ |
A D | pfncache.c | 28 DECLARE_BITMAP(vcpu_bitmap, KVM_MAX_VCPUS); in gfn_to_pfn_cache_invalidate_start() 48 bitmap_zero(vcpu_bitmap, KVM_MAX_VCPUS); in gfn_to_pfn_cache_invalidate_start()
|
/linux-6.3-rc2/arch/powerpc/include/asm/ |
A D | kvm_book3s.h | 475 int block = (id / KVM_MAX_VCPUS) * (MAX_SMT_THREADS / stride); in kvmppc_pack_vcpu_id() 480 packed_id = (id % KVM_MAX_VCPUS) + block_offsets[block]; in kvmppc_pack_vcpu_id() 481 if (WARN_ONCE(packed_id >= KVM_MAX_VCPUS, "VCPU ID packing failed")) in kvmppc_pack_vcpu_id()
|
A D | kvm_host.h | 31 #define KVM_MAX_VCPUS NR_CPUS macro 47 #define KVM_MAX_VCPU_IDS KVM_MAX_VCPUS
|
/linux-6.3-rc2/arch/x86/kvm/ |
A D | irq_comm.c | 52 unsigned long i, dest_vcpu_bitmap[BITS_TO_LONGS(KVM_MAX_VCPUS)]; in kvm_irq_delivery_to_apic() 93 dest_vcpu_bitmap, KVM_MAX_VCPUS); in kvm_irq_delivery_to_apic()
|
A D | hyperv.c | 45 #define KVM_HV_MAX_SPARSE_VCPU_SET_BITS DIV_ROUND_UP(KVM_MAX_VCPUS, HV_VCPUS_PER_SPARSE_BANK) 195 if (vpidx >= KVM_MAX_VCPUS) in get_vcpu_by_vpidx() 1479 if (!host || new_vp_index >= KVM_MAX_VCPUS) in kvm_hv_set_msr() 1753 sizeof(*vcpu_mask) * BITS_TO_LONGS(KVM_MAX_VCPUS)); in sparse_set_to_vcpu_mask() 1777 bitmap_zero(vcpu_mask, KVM_MAX_VCPUS); in sparse_set_to_vcpu_mask() 1957 DECLARE_BITMAP(vcpu_mask, KVM_MAX_VCPUS); in kvm_hv_flush_tlb() 2094 for_each_set_bit(i, vcpu_mask, KVM_MAX_VCPUS) { in kvm_hv_flush_tlb() 2107 bitmap_zero(vcpu_mask, KVM_MAX_VCPUS); in kvm_hv_flush_tlb() 2821 ent->eax = KVM_MAX_VCPUS; in kvm_get_hv_cpuid()
|
A D | ioapic.c | 322 DECLARE_BITMAP(vcpu_bitmap, KVM_MAX_VCPUS); in ioapic_write_indirect() 386 bitmap_zero(vcpu_bitmap, KVM_MAX_VCPUS); in ioapic_write_indirect()
|
/linux-6.3-rc2/arch/riscv/include/asm/ |
A D | kvm_host.h | 23 #define KVM_MAX_VCPUS 1024 macro
|
/linux-6.3-rc2/tools/testing/selftests/kvm/ |
A D | access_tracking_perf_test.c | 63 static int vcpu_last_completed_iteration[KVM_MAX_VCPUS];
|
A D | kvm_page_table_test.c | 58 struct kvm_vcpu *vcpus[KVM_MAX_VCPUS];
|
A D | dirty_log_perf_test.c | 68 static int vcpu_last_completed_iteration[KVM_MAX_VCPUS];
|
/linux-6.3-rc2/arch/x86/include/asm/ |
A D | kvm_host.h | 42 #define KVM_MAX_VCPUS 1024 macro 54 #define KVM_MAX_VCPU_IDS (KVM_MAX_VCPUS * KVM_VCPU_ID_RATIO) 1138 unsigned long poll_mask[BITS_TO_LONGS(KVM_MAX_VCPUS)];
|
/linux-6.3-rc2/arch/s390/kvm/ |
A D | interrupt.c | 779 cpu_addr = find_first_bit(li->sigp_emerg_pending, KVM_MAX_VCPUS); in __deliver_emergency_signal() 781 if (bitmap_empty(li->sigp_emerg_pending, KVM_MAX_VCPUS)) in __deliver_emergency_signal() 1384 bitmap_zero(li->sigp_emerg_pending, KVM_MAX_VCPUS); in kvm_s390_clear_local_irqs() 1867 (ASYNC_PF_PER_VCPU * KVM_MAX_VCPUS)) { in __inject_pfault_done() 3006 DECLARE_BITMAP(sigp_emerg_pending, KVM_MAX_VCPUS); in kvm_s390_get_irq_state() 3033 for_each_set_bit(cpuaddr, sigp_emerg_pending, KVM_MAX_VCPUS) { in kvm_s390_get_irq_state()
|
/linux-6.3-rc2/arch/mips/kvm/ |
A D | mips.c | 1052 r = min_t(unsigned int, num_online_cpus(), KVM_MAX_VCPUS); in kvm_vm_ioctl_check_extension() 1055 r = KVM_MAX_VCPUS; in kvm_vm_ioctl_check_extension()
|
/linux-6.3-rc2/arch/powerpc/kvm/ |
A D | book3s_xive.c | 2550 else if (nr_servers > KVM_MAX_VCPUS) in kvmppc_xive_set_nr_servers() 2554 xive->nr_servers = KVM_MAX_VCPUS; in kvmppc_xive_set_nr_servers() 2768 xive->nr_servers = KVM_MAX_VCPUS; in kvmppc_xive_create()
|
A D | powerpc.c | 648 r = min_t(unsigned int, num_present_cpus(), KVM_MAX_VCPUS); in kvm_vm_ioctl_check_extension() 650 r = min_t(unsigned int, num_online_cpus(), KVM_MAX_VCPUS); in kvm_vm_ioctl_check_extension() 653 r = KVM_MAX_VCPUS; in kvm_vm_ioctl_check_extension()
|
/linux-6.3-rc2/arch/arm64/include/asm/ |
A D | kvm_host.h | 38 #define KVM_MAX_VCPUS VGIC_V3_MAX_CPUS macro
|
/linux-6.3-rc2/include/linux/ |
A D | kvm_host.h | 49 #define KVM_MAX_VCPU_IDS KVM_MAX_VCPUS 919 if (id < KVM_MAX_VCPUS) in kvm_get_vcpu_by_id()
|