Lines Matching refs:cpu_has_feature
192 if (cpu_has_feature(CPU_FTR_ARCH_300)) { in kvmppc_ipi_thread()
200 if (cpu_has_feature(CPU_FTR_ARCH_207S)) { in kvmppc_ipi_thread()
297 WARN_ON_ONCE(cpu_has_feature(CPU_FTR_ARCH_300)); in kvmppc_core_start_stolen()
308 WARN_ON_ONCE(cpu_has_feature(CPU_FTR_ARCH_300)); in kvmppc_core_end_stolen()
324 if (cpu_has_feature(CPU_FTR_ARCH_300)) { in kvmppc_core_vcpu_load_hv()
359 if (cpu_has_feature(CPU_FTR_ARCH_300)) { in kvmppc_core_vcpu_put_hv()
400 if (cpu_has_feature(CPU_FTR_ARCH_31)) in kvmppc_set_arch_compat()
402 else if (cpu_has_feature(CPU_FTR_ARCH_300)) in kvmppc_set_arch_compat()
404 else if (cpu_has_feature(CPU_FTR_ARCH_207S)) in kvmppc_set_arch_compat()
406 else if (cpu_has_feature(CPU_FTR_ARCH_206)) in kvmppc_set_arch_compat()
727 WARN_ON_ONCE(cpu_has_feature(CPU_FTR_ARCH_300)); in vcore_stolen_time()
833 if (cpu_has_feature(CPU_FTR_ARCH_300)) in kvmppc_doorbell_pending()
851 cpu_has_feature(CPU_FTR_ARCH_207S)) in kvmppc_power8_compatible()
890 if (!cpu_has_feature(CPU_FTR_DAWR1)) in kvmppc_h_set_mode()
906 if (cpu_has_feature(CPU_FTR_P9_RADIX_PREFETCH_BUG) && in kvmppc_h_set_mode()
1004 if (!cpu_has_feature(CPU_FTR_ARCH_300)) { in kvm_arch_vcpu_yield_to()
1732 if (cpu_has_feature(CPU_FTR_P9_RADIX_PREFETCH_BUG) && in kvmppc_handle_exit_hv()
1738 if (kvm_is_radix(vcpu->kvm) || !cpu_has_feature(CPU_FTR_ARCH_300)) { in kvmppc_handle_exit_hv()
1783 if (kvm_is_radix(vcpu->kvm) || !cpu_has_feature(CPU_FTR_ARCH_300)) { in kvmppc_handle_exit_hv()
1869 if (cpu_has_feature(CPU_FTR_ARCH_300)) { in kvmppc_handle_exit_hv()
2111 if (!cpu_has_feature(CPU_FTR_ARCH_207S)) in kvmppc_filter_lpcr_hv()
2121 if (kvm_is_radix(kvm) && cpu_has_feature(CPU_FTR_P9_RADIX_PREFETCH_BUG)) in kvmppc_filter_lpcr_hv()
2128 if (!cpu_has_feature(CPU_FTR_ARCH_300)) in kvmppc_filter_lpcr_hv()
2276 if (cpu_has_feature(CPU_FTR_ARCH_300)) in kvmppc_get_one_reg_hv()
2372 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in kvmppc_get_one_reg_hv()
2404 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in kvmppc_get_one_reg_hv()
2516 if (cpu_has_feature(CPU_FTR_ARCH_300)) in kvmppc_set_one_reg_hv()
2642 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in kvmppc_set_one_reg_hv()
2673 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in kvmppc_set_one_reg_hv()
2719 if (cpu_has_feature(CPU_FTR_ARCH_300)) in threads_per_vcore()
2883 if (cpu_has_feature(CPU_FTR_ARCH_300) == IS_ENABLED(CONFIG_KVM_BOOK3S_HV_P9_TIMING)) in kvmppc_arch_create_vcpu_debugfs_hv()
2920 if (cpu_has_feature(CPU_FTR_ARCH_31)) { in kvmppc_core_vcpu_create_hv()
2945 if (cpu_has_feature(CPU_FTR_ARCH_31)) in kvmppc_core_vcpu_create_hv()
2948 if (cpu_has_feature(CPU_FTR_HVMODE)) { in kvmppc_core_vcpu_create_hv()
2951 if (cpu_has_feature(CPU_FTR_P9_TM_HV_ASSIST)) in kvmppc_core_vcpu_create_hv()
2955 if (cpu_has_feature(CPU_FTR_TM_COMP)) in kvmppc_core_vcpu_create_hv()
2974 if (cpu_has_feature(CPU_FTR_ARCH_300)) { in kvmppc_core_vcpu_create_hv()
2987 if (vcore && cpu_has_feature(CPU_FTR_ARCH_300)) { in kvmppc_core_vcpu_create_hv()
3033 if (!cpu_has_feature(CPU_FTR_ARCH_300)) { in kvmhv_set_smt_mode()
3224 if (!cpu_has_feature(CPU_FTR_HVMODE)) in kvmppc_prepare_radix_vcpu()
3373 WARN_ON_ONCE(cpu_has_feature(CPU_FTR_ARCH_300)); in kvmppc_vcore_preempt()
3391 WARN_ON_ONCE(cpu_has_feature(CPU_FTR_ARCH_300)); in kvmppc_vcore_end_preempt()
3437 if (cpu_has_feature(CPU_FTR_ARCH_300)) in subcore_config_ok()
3469 if (!cpu_has_feature(CPU_FTR_ARCH_207S)) in can_dynamic_split()
3720 if (WARN_ON_ONCE(cpu_has_feature(CPU_FTR_ARCH_300))) in kvmppc_run_core()
3805 is_power8 = cpu_has_feature(CPU_FTR_ARCH_207S); in kvmppc_run_core()
4329 WARN_ON_ONCE(cpu_has_feature(CPU_FTR_ARCH_300)); in kvmppc_vcore_blocked()
4447 if (cpu_has_feature(CPU_FTR_ARCH_300)) in kvmhv_setup_mmu()
4812 if (cpu_has_feature(CPU_FTR_TM) && current->thread.regs && in kvmppc_vcpu_run_hv()
4841 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in kvmppc_vcpu_run_hv()
4843 if (cpu_has_feature(CPU_FTR_VSX)) in kvmppc_vcpu_run_hv()
4845 if ((cpu_has_feature(CPU_FTR_TM) || in kvmppc_vcpu_run_hv()
4846 cpu_has_feature(CPU_FTR_P9_TM_HV_ASSIST)) && in kvmppc_vcpu_run_hv()
4855 if (!cpu_has_feature(CPU_FTR_ARCH_300)) in kvmppc_vcpu_run_hv()
4862 if (cpu_has_feature(CPU_FTR_ARCH_300)) in kvmppc_vcpu_run_hv()
4941 info->instr_keys = cpu_has_feature(CPU_FTR_ARCH_207S) ? 32 : 0; in kvm_vm_ioctl_get_smmu_info_hv()
5230 if (!cpu_has_feature(CPU_FTR_ARCH_300)) { in kvmppc_hv_setup_htab_rma()
5269 if (cpu_has_feature(CPU_FTR_ARCH_31)) in kvmppc_switch_mmu_to_hpt()
5297 if (cpu_has_feature(CPU_FTR_ARCH_31)) { in kvmppc_switch_mmu_to_radix()
5299 if (cpu_has_feature(CPU_FTR_HVMODE) && in kvmppc_switch_mmu_to_radix()
5326 if (cpu_has_feature(CPU_FTR_ARCH_300)) in kvmppc_alloc_host_rm_ops()
5418 if (!cpu_has_feature(CPU_FTR_ARCH_300)) in kvmppc_core_init_vm_hv()
5425 if (!cpu_has_feature(CPU_FTR_ARCH_300)) in kvmppc_core_init_vm_hv()
5429 if (cpu_has_feature(CPU_FTR_HVMODE)) { in kvmppc_core_init_vm_hv()
5445 if (cpu_has_feature(CPU_FTR_ARCH_207S)) in kvmppc_core_init_vm_hv()
5454 if (cpu_has_feature(CPU_FTR_ARCH_300)) { in kvmppc_core_init_vm_hv()
5474 if (cpu_has_feature(CPU_FTR_HVMODE) && in kvmppc_core_init_vm_hv()
5475 cpu_has_feature(CPU_FTR_ARCH_31) && in kvmppc_core_init_vm_hv()
5496 if (cpu_has_feature(CPU_FTR_ARCH_31)) { in kvmppc_core_init_vm_hv()
5503 else if (cpu_has_feature(CPU_FTR_ARCH_300)) in kvmppc_core_init_vm_hv()
5505 else if (cpu_has_feature(CPU_FTR_ARCH_207S)) in kvmppc_core_init_vm_hv()
5514 if (!cpu_has_feature(CPU_FTR_ARCH_300)) in kvmppc_core_init_vm_hv()
5524 if (!cpu_has_feature(CPU_FTR_ARCH_300)) in kvmppc_core_init_vm_hv()
5552 if (!cpu_has_feature(CPU_FTR_ARCH_300)) in kvmppc_core_destroy_vm_hv()
5564 if (cpu_has_feature(CPU_FTR_ARCH_300)) { in kvmppc_core_destroy_vm_hv()
5599 if (cpu_has_feature(CPU_FTR_HVMODE) && in kvmppc_core_check_processor_compat_hv()
5600 cpu_has_feature(CPU_FTR_ARCH_206)) in kvmppc_core_check_processor_compat_hv()
5604 if (cpu_has_feature(CPU_FTR_ARCH_300) && radix_enabled()) in kvmppc_core_check_processor_compat_hv()
5921 if (!cpu_has_feature(CPU_FTR_ARCH_300)) in kvmhv_configure_mmu()
5981 if (!cpu_has_feature(CPU_FTR_ARCH_300)) in kvmhv_enable_nested()
6136 if (!cpu_has_feature(CPU_FTR_DAWR1)) in kvmhv_enable_dawr1()
6147 if (!cpu_has_feature(CPU_FTR_ARCH_300)) in kvmppc_hash_v3_possible()
6150 if (!cpu_has_feature(CPU_FTR_HVMODE)) in kvmppc_hash_v3_possible()
6250 return cpu_has_feature(CPU_FTR_ARCH_300) && radix_enabled(); in kvmppc_radix_possible()
6273 if (!cpu_has_feature(CPU_FTR_ARCH_300)) { in kvmppc_book3s_init_hv()