Home
last modified time | relevance | path

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

/arch/arm64/kvm/vgic/
Dvgic-mmio-v2.c38 value |= (atomic_read(&vcpu->kvm->online_vcpus) - 1) << 5; in vgic_mmio_read_v2_misc()
112 int nr_vcpus = atomic_read(&source_vcpu->kvm->online_vcpus); in vgic_mmio_write_sgir()
174 u8 cpu_mask = GENMASK(atomic_read(&vcpu->kvm->online_vcpus) - 1, 0); in vgic_mmio_write_target()
Dvgic-init.c104 if (atomic_read(&kvm->online_vcpus) > kvm->arch.max_vcpus) { in kvm_vgic_create()
264 if (kvm->created_vcpus != atomic_read(&kvm->online_vcpus)) in vgic_init()
Dvgic-kvm-device.c292 if (cpuid >= atomic_read(&dev->kvm->online_vcpus)) in vgic_v2_parse_attr()
314 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-v4.c227 nr_vcpus = atomic_read(&kvm->online_vcpus); in vgic_v4_init()
Dvgic.h289 return atomic_read(&kvm->online_vcpus) * KVM_VGIC_V3_REDIST_SIZE; in vgic_v3_rd_region_size()
Dvgic-its.c1232 if (target_addr >= atomic_read(&kvm->online_vcpus)) in vgic_its_cmd_handle_mapc()
1364 if (target1_addr >= atomic_read(&kvm->online_vcpus) || in vgic_its_cmd_handle_movall()
1365 target2_addr >= atomic_read(&kvm->online_vcpus)) in vgic_its_cmd_handle_movall()
1854 sz = atomic_read(&kvm->online_vcpus) * LPI_DEFAULT_PCPU_CACHE_SIZE; in vgic_lpi_translation_cache_init()
2497 target_addr >= atomic_read(&kvm->online_vcpus)) in vgic_its_restore_cte()
/arch/x86/kvm/
Dtrace.h843 unsigned int online_vcpus, bool use_master_clock,
845 TP_ARGS(vcpu_id, nr_matched, online_vcpus, use_master_clock,
851 __field( unsigned int, online_vcpus )
859 __entry->online_vcpus = online_vcpus;
867 __entry->nr_vcpus_matched_tsc, __entry->online_vcpus,
Dx86.c2206 atomic_read(&vcpu->kvm->online_vcpus)); in kvm_track_tsc_matching()
2221 atomic_read(&vcpu->kvm->online_vcpus), in kvm_track_tsc_matching()
2571 atomic_read(&kvm->online_vcpus)); in pvclock_update_vm_gtod_copy()
10186 if (kvm_check_tsc_unstable() && atomic_read(&kvm->online_vcpus) != 0) in kvm_arch_vcpu_precreate()
10689 for (i = 0; i < atomic_read(&kvm->online_vcpus); i++) in kvm_free_vcpus()
10692 atomic_set(&kvm->online_vcpus, 0); in kvm_free_vcpus()
/arch/s390/kvm/
Dinterrupt.c1948 int sigcpu, online_vcpus, nr_tries = 0; in __floating_irq_kick() local
1950 online_vcpus = atomic_read(&kvm->online_vcpus); in __floating_irq_kick()
1951 if (!online_vcpus) in __floating_irq_kick()
1955 sigcpu = find_first_bit(kvm->arch.idle_mask, online_vcpus); in __floating_irq_kick()
1956 if (sigcpu == online_vcpus) { in __floating_irq_kick()
1959 kvm->arch.float_int.next_rr_cpu %= online_vcpus; in __floating_irq_kick()
1961 if (nr_tries++ >= online_vcpus) in __floating_irq_kick()
3064 int vcpu_idx, online_vcpus = atomic_read(&kvm->online_vcpus); in __airqs_kick_single_vcpu() local
3069 for_each_set_bit(vcpu_idx, kvm->arch.idle_mask, online_vcpus) { in __airqs_kick_single_vcpu()
Dkvm-s390.c2801 for (i = 0; i < atomic_read(&kvm->online_vcpus); i++) in kvm_free_vcpus()
2804 atomic_set(&kvm->online_vcpus, 0); in kvm_free_vcpus()
4536 int i, online_vcpus, r = 0, started_vcpus = 0; in kvm_s390_vcpu_start() local
4544 online_vcpus = atomic_read(&vcpu->kvm->online_vcpus); in kvm_s390_vcpu_start()
4555 for (i = 0; i < online_vcpus; i++) { in kvm_s390_vcpu_start()
4591 int i, online_vcpus, r = 0, started_vcpus = 0; in kvm_s390_vcpu_stop() local
4600 online_vcpus = atomic_read(&vcpu->kvm->online_vcpus); in kvm_s390_vcpu_stop()
4622 for (i = 0; i < online_vcpus; i++) { in kvm_s390_vcpu_stop()
Dvsie.c1328 nr_vcpus = atomic_read(&kvm->online_vcpus); in get_vsie_page()
Dpriv.c825 cpus = atomic_read(&vcpu->kvm->online_vcpus); in handle_stsi_3_2_2()
/arch/mips/kvm/
Dmips.c176 for (i = 0; i < atomic_read(&kvm->online_vcpus); i++) in kvm_mips_free_vcpus()
179 atomic_set(&kvm->online_vcpus, 0); in kvm_mips_free_vcpus()
/arch/arm64/kvm/
Darm.c183 atomic_set(&kvm->online_vcpus, 0); in kvm_arch_destroy_vm()
949 int nrcpus = atomic_read(&kvm->online_vcpus); in kvm_vm_ioctl_irq_line()
/arch/powerpc/kvm/
Dpowerpc.c483 for (i = 0; i < atomic_read(&kvm->online_vcpus); i++) in kvm_arch_destroy_vm()
486 atomic_set(&kvm->online_vcpus, 0); in kvm_arch_destroy_vm()