Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/tools/testing/selftests/kvm/lib/
A Ducall_common.c10 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 Dmemstress.c33 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 Darch_timer.c79 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 Dvm.c71 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 Dtlb.c297 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 Dmemstress.h48 uint32_t vcpu_to_pcpu[KVM_MAX_VCPUS];
53 struct memstress_vcpu_args vcpu_args[KVM_MAX_VCPUS];
A Dkvm_util_base.h38 #define KVM_MAX_VCPUS 512 macro
/linux-6.3-rc2/arch/s390/include/asm/
A Dkvm_host.h32 #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 Dpfncache.c28 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 Dkvm_book3s.h475 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 Dkvm_host.h31 #define KVM_MAX_VCPUS NR_CPUS macro
47 #define KVM_MAX_VCPU_IDS KVM_MAX_VCPUS
/linux-6.3-rc2/arch/x86/kvm/
A Dirq_comm.c52 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 Dhyperv.c45 #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 Dioapic.c322 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 Dkvm_host.h23 #define KVM_MAX_VCPUS 1024 macro
/linux-6.3-rc2/tools/testing/selftests/kvm/
A Daccess_tracking_perf_test.c63 static int vcpu_last_completed_iteration[KVM_MAX_VCPUS];
A Dkvm_page_table_test.c58 struct kvm_vcpu *vcpus[KVM_MAX_VCPUS];
A Ddirty_log_perf_test.c68 static int vcpu_last_completed_iteration[KVM_MAX_VCPUS];
/linux-6.3-rc2/arch/x86/include/asm/
A Dkvm_host.h42 #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 Dinterrupt.c779 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 Dmips.c1052 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 Dbook3s_xive.c2550 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 Dpowerpc.c648 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 Dkvm_host.h38 #define KVM_MAX_VCPUS VGIC_V3_MAX_CPUS macro
/linux-6.3-rc2/include/linux/
A Dkvm_host.h49 #define KVM_MAX_VCPU_IDS KVM_MAX_VCPUS
919 if (id < KVM_MAX_VCPUS) in kvm_get_vcpu_by_id()

Completed in 75 milliseconds

12