/kernel/linux/linux-5.10/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() 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()
|
D | vgic-init.c | 104 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()
|
D | vgic-kvm-device.c | 292 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()
|
D | vgic-debug.c | 58 int nr_cpus = atomic_read(&kvm->online_vcpus); in iter_init()
|
D | vgic-v4.c | 227 nr_vcpus = atomic_read(&kvm->online_vcpus); in vgic_v4_init()
|
D | vgic.h | 289 return atomic_read(&kvm->online_vcpus) * KVM_VGIC_V3_REDIST_SIZE; in vgic_v3_rd_region_size()
|
D | vgic-its.c | 1224 if (target_addr >= atomic_read(&kvm->online_vcpus)) in vgic_its_cmd_handle_mapc() 1356 if (target1_addr >= atomic_read(&kvm->online_vcpus) || in vgic_its_cmd_handle_movall() 1357 target2_addr >= atomic_read(&kvm->online_vcpus)) in vgic_its_cmd_handle_movall() 1844 sz = atomic_read(&kvm->online_vcpus) * LPI_DEFAULT_PCPU_CACHE_SIZE; in vgic_lpi_translation_cache_init() 2487 target_addr >= atomic_read(&kvm->online_vcpus)) in vgic_its_restore_cte()
|
/kernel/linux/linux-5.10/arch/x86/kvm/ |
D | trace.h | 843 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,
|
D | x86.c | 2200 atomic_read(&vcpu->kvm->online_vcpus)); in kvm_track_tsc_matching() 2215 atomic_read(&vcpu->kvm->online_vcpus), in kvm_track_tsc_matching() 2565 atomic_read(&kvm->online_vcpus)); in pvclock_update_vm_gtod_copy() 10129 if (kvm_check_tsc_unstable() && atomic_read(&kvm->online_vcpus) != 0) in kvm_arch_vcpu_precreate() 10635 for (i = 0; i < atomic_read(&kvm->online_vcpus); i++) in kvm_free_vcpus() 10638 atomic_set(&kvm->online_vcpus, 0); in kvm_free_vcpus()
|
/kernel/linux/linux-5.10/arch/s390/kvm/ |
D | interrupt.c | 1944 int sigcpu, online_vcpus, nr_tries = 0; in __floating_irq_kick() local 1946 online_vcpus = atomic_read(&kvm->online_vcpus); in __floating_irq_kick() 1947 if (!online_vcpus) in __floating_irq_kick() 1951 sigcpu = find_first_bit(kvm->arch.idle_mask, online_vcpus); in __floating_irq_kick() 1952 if (sigcpu == online_vcpus) { in __floating_irq_kick() 1955 kvm->arch.float_int.next_rr_cpu %= online_vcpus; in __floating_irq_kick() 1957 if (nr_tries++ >= online_vcpus) in __floating_irq_kick() 3060 int vcpu_idx, online_vcpus = atomic_read(&kvm->online_vcpus); in __airqs_kick_single_vcpu() local 3065 for_each_set_bit(vcpu_idx, kvm->arch.idle_mask, online_vcpus) { in __airqs_kick_single_vcpu()
|
D | kvm-s390.c | 2797 for (i = 0; i < atomic_read(&kvm->online_vcpus); i++) in kvm_free_vcpus() 2800 atomic_set(&kvm->online_vcpus, 0); in kvm_free_vcpus() 4537 int i, online_vcpus, r = 0, started_vcpus = 0; in kvm_s390_vcpu_start() local 4545 online_vcpus = atomic_read(&vcpu->kvm->online_vcpus); in kvm_s390_vcpu_start() 4556 for (i = 0; i < online_vcpus; i++) { in kvm_s390_vcpu_start() 4592 int i, online_vcpus, r = 0, started_vcpus = 0; in kvm_s390_vcpu_stop() local 4601 online_vcpus = atomic_read(&vcpu->kvm->online_vcpus); in kvm_s390_vcpu_stop() 4623 for (i = 0; i < online_vcpus; i++) { in kvm_s390_vcpu_stop()
|
D | vsie.c | 1326 nr_vcpus = atomic_read(&kvm->online_vcpus); in get_vsie_page()
|
D | priv.c | 825 cpus = atomic_read(&vcpu->kvm->online_vcpus); in handle_stsi_3_2_2()
|
/kernel/linux/linux-5.10/include/linux/ |
D | kvm_host.h | 460 atomic_t online_vcpus; member 577 int num_vcpus = atomic_read(&kvm->online_vcpus); in kvm_get_vcpu() 587 idx < atomic_read(&kvm->online_vcpus) && \
|
/kernel/linux/linux-5.10/arch/arm64/kvm/ |
D | arm.c | 176 atomic_set(&kvm->online_vcpus, 0); in kvm_arch_destroy_vm() 907 int nrcpus = atomic_read(&kvm->online_vcpus); in kvm_vm_ioctl_irq_line()
|
/kernel/linux/linux-5.10/arch/mips/kvm/ |
D | mips.c | 176 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()
|
/kernel/linux/linux-5.10/arch/powerpc/kvm/ |
D | powerpc.c | 483 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()
|
/kernel/linux/linux-5.10/virt/kvm/ |
D | kvm_main.c | 3220 vcpu->vcpu_idx = atomic_read(&kvm->online_vcpus); in kvm_vm_ioctl_create_vcpu() 3238 atomic_inc(&kvm->online_vcpus); in kvm_vm_ioctl_create_vcpu()
|