Home
last modified time | relevance | path

Searched refs:MAX_SMT_THREADS (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/arch/powerpc/include/asm/
Dkvm_book3s_asm.h18 #define MAX_SMT_THREADS 8 macro
72 u8 napped[MAX_SMT_THREADS];
Dkvm_book3s.h78 struct kvm_vcpu *runnable_threads[MAX_SMT_THREADS];
473 const int block_offsets[MAX_SMT_THREADS] = {0, 4, 2, 6, 1, 5, 3, 7}; in kvmppc_pack_vcpu_id()
475 int block = (id / KVM_MAX_VCPUS) * (MAX_SMT_THREADS / stride); in kvmppc_pack_vcpu_id()
478 if (WARN_ONCE(block >= MAX_SMT_THREADS, "VCPU ID too large to pack")) in kvmppc_pack_vcpu_id()
Dkvm_host.h38 #define KVM_MAX_VCPU_IDS (MAX_SMT_THREADS * KVM_MAX_VCORES)
/linux-6.1.9/arch/powerpc/kvm/
Dbook3s_hv.c148 static unsigned long p8_rwmr_values[MAX_SMT_THREADS + 1] = {
166 while (++i < MAX_SMT_THREADS) { in next_runnable_thread()
3011 if (smt_mode > MAX_SMT_THREADS || !is_power_of_2(smt_mode)) in kvmhv_set_smt_mode()
3421 if (n_subcores > 1 && threads_per_subcore < MAX_SMT_THREADS) in subcore_config_ok()
3432 return n_subcores * roundup_pow_of_two(n_threads) <= MAX_SMT_THREADS; in subcore_config_ok()
3802 subcore_size = MAX_SMT_THREADS / split; in kvmppc_run_core()
3851 if (split == 1 && threads_per_subcore == MAX_SMT_THREADS && in kvmppc_run_core()
3852 n_online >= 1 && n_online <= MAX_SMT_THREADS) in kvmppc_run_core()