/linux-6.1.9/arch/riscv/kvm/ |
D | vcpu_sbi_v01.c | 55 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/ |
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 | 105 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()
|
D | vgic-kvm-device.c | 336 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()
|
D | vgic-debug.c | 58 int nr_cpus = atomic_read(&kvm->online_vcpus); in iter_init()
|
D | vgic.h | 296 return atomic_read(&kvm->online_vcpus) * KVM_VGIC_V3_REDIST_SIZE; in vgic_v3_rd_region_size()
|
D | vgic-its.c | 1253 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()
|
D | vgic-v4.c | 252 nr_vcpus = atomic_read(&kvm->online_vcpus); in vgic_v4_init()
|
D | vgic-mmio-v3.c | 869 int nr_vcpus = atomic_read(&kvm->online_vcpus); in vgic_v3_alloc_redist_region()
|
/linux-6.1.9/arch/x86/kvm/ |
D | trace.h | 923 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,
|
D | x86.c | 2472 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/ |
D | interrupt.c | 1950 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()
|
D | kvm-s390.c | 5037 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()
|
D | vsie.c | 1339 nr_vcpus = atomic_read(&kvm->online_vcpus); in get_vsie_page()
|
D | priv.c | 827 cpus = atomic_read(&vcpu->kvm->online_vcpus); in handle_stsi_3_2_2()
|
/linux-6.1.9/include/linux/ |
D | kvm_host.h | 729 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/ |
D | sev.c | 1754 if (atomic_read(&src->online_vcpus) != atomic_read(&dst->online_vcpus)) in sev_check_source_vcpus()
|
/linux-6.1.9/arch/arm64/kvm/ |
D | arm.c | 1069 int nrcpus = atomic_read(&kvm->online_vcpus); in kvm_vm_ioctl_irq_line()
|
/linux-6.1.9/virt/kvm/ |
D | kvm_main.c | 519 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()
|