Home
last modified time | relevance | path

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

/linux-6.1.9/arch/riscv/kvm/
Dvcpu_sbi_v01.c55 hmask = (1UL << atomic_read(&kvm->online_vcpus)) - 1; in kvm_sbi_ext_v01_handler()
78 hmask = (1UL << atomic_read(&kvm->online_vcpus)) - 1; in kvm_sbi_ext_v01_handler()
/linux-6.1.9/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.c105 if (atomic_read(&kvm->online_vcpus) > kvm->max_vcpus) { in kvm_vgic_create()
266 if (kvm->created_vcpus != atomic_read(&kvm->online_vcpus)) in vgic_init()
Dvgic-kvm-device.c336 if (cpuid >= atomic_read(&dev->kvm->online_vcpus)) in vgic_v2_parse_attr()
358 unlock_vcpus(kvm, atomic_read(&kvm->online_vcpus) - 1); in unlock_all_vcpus()
Dvgic-debug.c58 int nr_cpus = atomic_read(&kvm->online_vcpus); in iter_init()
Dvgic.h296 return atomic_read(&kvm->online_vcpus) * KVM_VGIC_V3_REDIST_SIZE; in vgic_v3_rd_region_size()
Dvgic-its.c1253 if (target_addr >= atomic_read(&kvm->online_vcpus)) in vgic_its_cmd_handle_mapc()
1409 if (target1_addr >= atomic_read(&kvm->online_vcpus) || in vgic_its_cmd_handle_movall()
1410 target2_addr >= atomic_read(&kvm->online_vcpus)) in vgic_its_cmd_handle_movall()
1897 sz = atomic_read(&kvm->online_vcpus) * LPI_DEFAULT_PCPU_CACHE_SIZE; in vgic_lpi_translation_cache_init()
2557 target_addr >= atomic_read(&kvm->online_vcpus)) in vgic_its_restore_cte()
Dvgic-v4.c252 nr_vcpus = atomic_read(&kvm->online_vcpus); in vgic_v4_init()
Dvgic-mmio-v3.c869 int nr_vcpus = atomic_read(&kvm->online_vcpus); in vgic_v3_alloc_redist_region()
/linux-6.1.9/arch/x86/kvm/
Dtrace.h923 unsigned int online_vcpus, bool use_master_clock,
925 TP_ARGS(vcpu_id, nr_matched, online_vcpus, use_master_clock,
931 __field( unsigned int, online_vcpus )
939 __entry->online_vcpus = online_vcpus;
947 __entry->nr_vcpus_matched_tsc, __entry->online_vcpus,
Dx86.c2472 atomic_read(&vcpu->kvm->online_vcpus)); in kvm_track_tsc_matching()
2487 atomic_read(&vcpu->kvm->online_vcpus), in kvm_track_tsc_matching()
2909 atomic_read(&kvm->online_vcpus)); in pvclock_update_vm_gtod_copy()
/linux-6.1.9/arch/s390/kvm/
Dinterrupt.c1950 int sigcpu, online_vcpus, nr_tries = 0; in __floating_irq_kick() local
1952 online_vcpus = atomic_read(&kvm->online_vcpus); in __floating_irq_kick()
1953 if (!online_vcpus) in __floating_irq_kick()
1957 sigcpu = find_first_bit(kvm->arch.idle_mask, online_vcpus); in __floating_irq_kick()
1958 if (sigcpu == online_vcpus) { in __floating_irq_kick()
1961 kvm->arch.float_int.next_rr_cpu %= online_vcpus; in __floating_irq_kick()
1963 if (nr_tries++ >= online_vcpus) in __floating_irq_kick()
3066 int vcpu_idx, online_vcpus = atomic_read(&kvm->online_vcpus); in __airqs_kick_single_vcpu() local
3071 for_each_set_bit(vcpu_idx, kvm->arch.idle_mask, online_vcpus) { in __airqs_kick_single_vcpu()
Dkvm-s390.c5037 int i, online_vcpus, r = 0, started_vcpus = 0; in kvm_s390_vcpu_start() local
5045 online_vcpus = atomic_read(&vcpu->kvm->online_vcpus); in kvm_s390_vcpu_start()
5056 for (i = 0; i < online_vcpus; i++) { in kvm_s390_vcpu_start()
5092 int i, online_vcpus, r = 0, started_vcpus = 0; in kvm_s390_vcpu_stop() local
5101 online_vcpus = atomic_read(&vcpu->kvm->online_vcpus); in kvm_s390_vcpu_stop()
5123 for (i = 0; i < online_vcpus; i++) { in kvm_s390_vcpu_stop()
Dvsie.c1339 nr_vcpus = atomic_read(&kvm->online_vcpus); in get_vsie_page()
Dpriv.c827 cpus = atomic_read(&vcpu->kvm->online_vcpus); in handle_stsi_3_2_2()
/linux-6.1.9/include/linux/
Dkvm_host.h729 atomic_t online_vcpus; member
881 int num_vcpus = atomic_read(&kvm->online_vcpus); in kvm_get_vcpu()
891 (atomic_read(&kvm->online_vcpus) - 1))
/linux-6.1.9/arch/x86/kvm/svm/
Dsev.c1754 if (atomic_read(&src->online_vcpus) != atomic_read(&dst->online_vcpus)) in sev_check_source_vcpus()
/linux-6.1.9/arch/arm64/kvm/
Darm.c1069 int nrcpus = atomic_read(&kvm->online_vcpus); in kvm_vm_ioctl_irq_line()
/linux-6.1.9/virt/kvm/
Dkvm_main.c519 atomic_set(&kvm->online_vcpus, 0); in kvm_destroy_vcpus()
3949 vcpu->vcpu_idx = atomic_read(&kvm->online_vcpus); in kvm_vm_ioctl_create_vcpu()
3969 atomic_inc(&kvm->online_vcpus); in kvm_vm_ioctl_create_vcpu()