Home
last modified time | relevance | path

Searched refs:online_vcpus (Results 1 – 20 of 20) sorted by relevance

/linux-6.12.1/arch/riscv/kvm/
Dvcpu_sbi_v01.c52 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()
Daia_device.c27 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/
Dvgic-mmio-v2.c38 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()
Dvgic-init.c110 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()
Dvgic-debug.c97 int nr_cpus = atomic_read(&kvm->online_vcpus); in iter_init()
Dvgic.h312 return atomic_read(&kvm->online_vcpus) * KVM_VGIC_V3_REDIST_SIZE; in vgic_v3_rd_region_size()
Dvgic-v4.c254 nr_vcpus = atomic_read(&kvm->online_vcpus); in vgic_v4_init()
Dvgic-mmio-v3.c860 int nr_vcpus = atomic_read(&kvm->online_vcpus); in vgic_v3_alloc_redist_region()
/linux-6.12.1/arch/s390/kvm/
Dinterrupt.c1954 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()
Dkvm-s390.c5201 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()
Dvsie.c1374 nr_vcpus = atomic_read(&kvm->online_vcpus); in get_vsie_page()
Dpriv.c860 cpus = atomic_read(&vcpu->kvm->online_vcpus); in handle_stsi_3_2_2()
/linux-6.12.1/arch/x86/kvm/
Dtrace.h930 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,
Dhyperv.c1351 if (atomic_read(&kvm->online_vcpus) < 2) in __kvm_hv_xsaves_xsavec_maybe_warn()
Dx86.c2526 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/
Dkvm_host.h795 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/
Darm.c748 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()
Dnested.c63 num_mmus = atomic_read(&kvm->online_vcpus) * S2_MMU_PER_VCPU; in kvm_vcpu_init_nested()
/linux-6.12.1/virt/kvm/
Dkvm_main.c532 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/
Dsev.c2064 if (atomic_read(&src->online_vcpus) != atomic_read(&dst->online_vcpus)) in sev_check_source_vcpus()