/linux-6.12.1/arch/riscv/kvm/ |
D | vcpu_sbi_v01.c | 52 hmask = (1UL << atomic_read(&kvm->online_vcpus)) - 1; in kvm_sbi_ext_v01_handler() 74 hmask = (1UL << atomic_read(&kvm->online_vcpus)) - 1; in kvm_sbi_ext_v01_handler()
|
D | aia_device.c | 27 unlock_vcpus(kvm, atomic_read(&kvm->online_vcpus) - 1); in unlock_all_vcpus() 266 if (kvm->created_vcpus != atomic_read(&kvm->online_vcpus)) in aia_init() 349 nr_vcpus = atomic_read(&dev->kvm->online_vcpus); in aia_set_attr() 420 nr_vcpus = atomic_read(&dev->kvm->online_vcpus); in aia_get_attr() 486 nr_vcpus = atomic_read(&dev->kvm->online_vcpus); in aia_has_attr()
|
/linux-6.12.1/arch/arm64/kvm/vgic/ |
D | vgic-mmio-v2.c | 38 value |= (atomic_read(&vcpu->kvm->online_vcpus) - 1) << 5; in vgic_mmio_read_v2_misc() 124 int nr_vcpus = atomic_read(&source_vcpu->kvm->online_vcpus); in vgic_mmio_write_sgir() 185 u8 cpu_mask = GENMASK(atomic_read(&vcpu->kvm->online_vcpus) - 1, 0); in vgic_mmio_write_target()
|
D | vgic-init.c | 110 if (atomic_read(&kvm->online_vcpus) > kvm->max_vcpus) { in kvm_vgic_create() 307 if (kvm->created_vcpus != atomic_read(&kvm->online_vcpus)) in vgic_init()
|
D | vgic-debug.c | 97 int nr_cpus = atomic_read(&kvm->online_vcpus); in iter_init()
|
D | vgic.h | 312 return atomic_read(&kvm->online_vcpus) * KVM_VGIC_V3_REDIST_SIZE; in vgic_v3_rd_region_size()
|
D | vgic-v4.c | 254 nr_vcpus = atomic_read(&kvm->online_vcpus); in vgic_v4_init()
|
D | vgic-mmio-v3.c | 860 int nr_vcpus = atomic_read(&kvm->online_vcpus); in vgic_v3_alloc_redist_region()
|
/linux-6.12.1/arch/s390/kvm/ |
D | interrupt.c | 1954 int sigcpu, online_vcpus, nr_tries = 0; in __floating_irq_kick() local 1956 online_vcpus = atomic_read(&kvm->online_vcpus); in __floating_irq_kick() 1957 if (!online_vcpus) in __floating_irq_kick() 1961 sigcpu = find_first_bit(kvm->arch.idle_mask, online_vcpus); in __floating_irq_kick() 1962 if (sigcpu == online_vcpus) { in __floating_irq_kick() 1965 kvm->arch.float_int.next_rr_cpu %= online_vcpus; in __floating_irq_kick() 1967 if (nr_tries++ >= online_vcpus) in __floating_irq_kick() 3070 int vcpu_idx, online_vcpus = atomic_read(&kvm->online_vcpus); in __airqs_kick_single_vcpu() local 3075 for_each_set_bit(vcpu_idx, kvm->arch.idle_mask, online_vcpus) { in __airqs_kick_single_vcpu()
|
D | kvm-s390.c | 5201 int i, online_vcpus, r = 0, started_vcpus = 0; in kvm_s390_vcpu_start() local 5209 online_vcpus = atomic_read(&vcpu->kvm->online_vcpus); in kvm_s390_vcpu_start() 5220 for (i = 0; i < online_vcpus; i++) { in kvm_s390_vcpu_start() 5256 int i, online_vcpus, r = 0, started_vcpus = 0; in kvm_s390_vcpu_stop() local 5265 online_vcpus = atomic_read(&vcpu->kvm->online_vcpus); in kvm_s390_vcpu_stop() 5287 for (i = 0; i < online_vcpus; i++) { in kvm_s390_vcpu_stop()
|
D | vsie.c | 1374 nr_vcpus = atomic_read(&kvm->online_vcpus); in get_vsie_page()
|
D | priv.c | 860 cpus = atomic_read(&vcpu->kvm->online_vcpus); in handle_stsi_3_2_2()
|
/linux-6.12.1/arch/x86/kvm/ |
D | trace.h | 930 unsigned int online_vcpus, bool use_master_clock, 932 TP_ARGS(vcpu_id, nr_matched, online_vcpus, use_master_clock, 938 __field( unsigned int, online_vcpus ) 946 __entry->online_vcpus = online_vcpus; 954 __entry->nr_vcpus_matched_tsc, __entry->online_vcpus,
|
D | hyperv.c | 1351 if (atomic_read(&kvm->online_vcpus) < 2) in __kvm_hv_xsaves_xsavec_maybe_warn()
|
D | x86.c | 2526 atomic_read(&vcpu->kvm->online_vcpus)) && in kvm_track_tsc_matching() 2540 atomic_read(&vcpu->kvm->online_vcpus), in kvm_track_tsc_matching() 3023 atomic_read(&kvm->online_vcpus)); in pvclock_update_vm_gtod_copy()
|
/linux-6.12.1/include/linux/ |
D | kvm_host.h | 795 atomic_t online_vcpus; member 971 int num_vcpus = atomic_read(&kvm->online_vcpus); in kvm_get_vcpu() 981 (atomic_read(&kvm->online_vcpus) - 1))
|
/linux-6.12.1/arch/arm64/kvm/ |
D | arm.c | 748 atomic_read(&kvm->online_vcpus) == 1) in kvm_init_mpidr_data() 1932 unlock_vcpus(kvm, atomic_read(&kvm->online_vcpus) - 1); in unlock_all_vcpus()
|
D | nested.c | 63 num_mmus = atomic_read(&kvm->online_vcpus) * S2_MMU_PER_VCPU; in kvm_vcpu_init_nested()
|
/linux-6.12.1/virt/kvm/ |
D | kvm_main.c | 532 atomic_set(&kvm->online_vcpus, 0); in kvm_destroy_vcpus() 4273 vcpu->vcpu_idx = atomic_read(&kvm->online_vcpus); in kvm_vm_ioctl_create_vcpu() 4294 atomic_inc(&kvm->online_vcpus); in kvm_vm_ioctl_create_vcpu()
|
/linux-6.12.1/arch/x86/kvm/svm/ |
D | sev.c | 2064 if (atomic_read(&src->online_vcpus) != atomic_read(&dst->online_vcpus)) in sev_check_source_vcpus()
|