Home
last modified time | relevance | path

Searched refs:cpus_have_final_cap (Results 1 – 25 of 29) sorted by relevance

12

/linux/arch/arm64/include/asm/
H A Dvirt.h139 return cpus_have_final_cap(ARM64_HAS_VIRT_HOST_EXTN); in has_vhe()
147 return cpus_have_final_cap(ARM64_KVM_PROTECTED_MODE); in is_protected_kvm_enabled()
155 return cpus_have_final_cap(ARM64_KVM_HVHE); in has_hvhe()
H A Dkvm_emulate.h90 if (!cpus_have_final_cap(ARM64_HAS_STAGE2_FWB)) in vcpu_reset_hcr()
189 return (!cpus_have_final_cap(ARM64_HAS_HCR_NV1) || in __vcpu_el2_e2h_is_set()
623 if (cpus_have_final_cap(ARM64_SME)) in kvm_get_reset_cptr_el2()
630 if (cpus_have_final_cap(ARM64_SME)) in kvm_get_reset_cptr_el2()
637 if (cpus_have_final_cap(ARM64_SME)) in kvm_get_reset_cptr_el2()
H A Dmodule.h47 return cpus_have_final_cap(ARM64_WORKAROUND_843419) && in is_forbidden_offset_for_adrp()
H A Dcpufeature.h495 static __always_inline bool cpus_have_final_cap(int num) in cpus_have_final_cap() function
816 return cpus_have_final_cap(ARM64_BTI); in system_supports_bti()
832 return cpus_have_final_cap(ARM64_HAS_LPA2); in system_supports_lpa2()
H A Dkvm_pgtable.h67 ({ cpus_have_final_cap(ARM64_KVM_HVHE) ? 2 : 3; })
69 ({ cpus_have_final_cap(ARM64_KVM_HVHE) ? 0 : 1; })
H A Dbarrier.h78 if (cpus_have_final_cap(ARM64_WORKAROUND_TSB_FLUSH_FAILURE)) \
H A Dkvm_host.h958 ((cpus_have_final_cap(ARM64_HAS_ADDRESS_AUTH) || \
959 cpus_have_final_cap(ARM64_HAS_GENERIC_AUTH)) && \
989 if (unlikely(cpus_have_final_cap(ARM64_HAS_NESTED_VIRT) && in ___ctxt_sys_reg()
1313 return cpus_have_final_cap(ARM64_SPECTRE_V3A); in kvm_system_needs_idmapped_vectors()
H A Dkvm_nested.h13 cpus_have_final_cap(ARM64_HAS_NESTED_VIRT) && in vcpu_has_nv()
H A Dkvm_mmu.h221 if (cpus_have_final_cap(ARM64_HAS_STAGE2_FWB))
/linux/arch/arm64/kvm/hyp/include/hyp/
H A Dswitch.h163 if (!cpus_have_final_cap(ARM64_HAS_FGT)) in __activate_traps_hfgxtr()
168 cpus_have_final_cap(ARM64_WORKAROUND_AMPERE_AC03_CPU_38) ? in __activate_traps_hfgxtr()
191 if (!cpus_have_final_cap(ARM64_HAS_FGT)) in __deactivate_traps_hfgxtr()
195 if (cpus_have_final_cap(ARM64_WORKAROUND_AMPERE_AC03_CPU_38)) in __deactivate_traps_hfgxtr()
232 if (cpus_have_final_cap(ARM64_HAS_HCX)) { in __activate_traps_common()
262 if (cpus_have_final_cap(ARM64_HAS_HCX)) in __deactivate_traps_common()
270 if (cpus_have_final_cap(ARM64_WORKAROUND_CAVIUM_TX2_219_TVM)) in ___activate_traps()
275 if (cpus_have_final_cap(ARM64_HAS_RAS_EXTN) && (hcr & HCR_VSE)) in ___activate_traps()
548 if (cpus_have_final_cap(ARM64_WORKAROUND_CAVIUM_TX2_219_TVM) && in kvm_hyp_handle_sysreg()
552 if (cpus_have_final_cap(ARM64_WORKAROUND_AMPERE_AC03_CPU_38) && in kvm_hyp_handle_sysreg()
[all …]
H A Dsysreg-sr.h57 if (!cpus_have_final_cap(ARM64_HAS_S1PIE)) in ctxt_has_s1pie()
68 if (!cpus_have_final_cap(ARM64_HAS_TCR2)) in ctxt_has_tcrx()
136 if (cpus_have_final_cap(ARM64_HAS_RAS_EXTN)) in __sysreg_save_el2_return_state()
160 !cpus_have_final_cap(ARM64_WORKAROUND_SPECULATIVE_AT)) { in __sysreg_restore_el1_state()
207 cpus_have_final_cap(ARM64_WORKAROUND_SPECULATIVE_AT) && in __sysreg_restore_el1_state()
268 if (cpus_have_final_cap(ARM64_HAS_RAS_EXTN)) in __sysreg_restore_el2_return_state()
H A Dfault.h65 (cpus_have_final_cap(ARM64_WORKAROUND_834220) || in __get_fault_info()
/linux/arch/arm64/kvm/hyp/nvhe/
H A Dswitch.c49 if (cpus_have_final_cap(ARM64_SME)) { in __activate_traps()
68 if (cpus_have_final_cap(ARM64_WORKAROUND_SPECULATIVE_AT)) { in __activate_traps()
89 if (cpus_have_final_cap(ARM64_WORKAROUND_SPECULATIVE_AT)) { in __deactivate_traps()
H A Dtlb.c74 if (cpus_have_final_cap(ARM64_WORKAROUND_SPECULATIVE_AT)) { in enter_vmid_context()
138 if (cpus_have_final_cap(ARM64_WORKAROUND_SPECULATIVE_AT)) { in exit_vmid_context()
/linux/arch/arm64/kvm/hyp/vhe/
H A Dtlb.c33 if (cpus_have_final_cap(ARM64_WORKAROUND_SPECULATIVE_AT)) { in enter_vmid_context()
83 if (cpus_have_final_cap(ARM64_WORKAROUND_SPECULATIVE_AT)) { in exit_vmid_context()
/linux/arch/arm64/kvm/
H A Darm.c386 r = cpus_have_final_cap(ARM64_HAS_32BIT_EL1); in kvm_vm_ioctl_check_extension()
398 r = cpus_have_final_cap(ARM64_HAS_RAS_EXTN); in kvm_vm_ioctl_check_extension()
1417 if (!cpus_have_final_cap(ARM64_HAS_32BIT_EL1)) in system_supported_vcpu_features()
1431 if (!cpus_have_final_cap(ARM64_HAS_NESTED_VIRT)) in system_supported_vcpu_features()
1587 if (!cpus_have_final_cap(ARM64_HAS_STAGE2_FWB)) in kvm_arch_vcpu_ioctl_vcpu_init()
2028 if (cpus_have_final_cap(ARM64_KVM_HVHE)) { in cpu_prepare_hyp_mode()
2047 if (cpus_have_final_cap(ARM64_KVM_HVHE)) in cpu_prepare_hyp_mode()
2663 cpus_have_final_cap(ARM64_HAS_ADDRESS_AUTH)) in init_hyp_mode()
2792 if (cpus_have_final_cap(ARM64_WORKAROUND_DEVICE_LOAD_ACQUIRE) || in kvm_arm_init()
2793 cpus_have_final_cap(ARM64_WORKAROUND_1508412)) in kvm_arm_init()
[all …]
H A Dguest.c822 events->exception.serror_has_esr = cpus_have_final_cap(ARM64_HAS_RAS_EXTN); in __kvm_arm_vcpu_get_events()
844 if (!cpus_have_final_cap(ARM64_HAS_RAS_EXTN)) in __kvm_arm_vcpu_set_events()
H A Dsys_regs.c346 if (!cpus_have_final_cap(ARM64_HAS_STAGE2_FWB)) in access_dcsw()
1554 if (!cpus_have_final_cap(ARM64_HAS_WFXT)) in __kvm_read_sanitised_id_reg()
2233 if (!cpus_have_final_cap(ARM64_HAS_HCR_NV1)) in reset_hcr()
4670 if (cpus_have_final_cap(ARM64_HAS_RAS_EXTN)) { in vcpu_set_hcr()
4677 if (cpus_have_final_cap(ARM64_HAS_STAGE2_FWB)) in vcpu_set_hcr()
4680 if (cpus_have_final_cap(ARM64_HAS_EVT) && in vcpu_set_hcr()
4681 !cpus_have_final_cap(ARM64_MISMATCHED_CACHE_TYPE) && in vcpu_set_hcr()
4710 if (cpus_have_final_cap(ARM64_HAS_HCX)) { in kvm_calculate_traps()
H A Darch_timer.c289 return (cpus_have_final_cap(ARM64_HAS_WFXT) && in vcpu_has_wfit_active()
1555 if (cpus_have_final_cap(ARM64_HAS_ECV_CNTPOFF)) in kvm_timer_init_vhe()
/linux/arch/arm64/kernel/
H A Dsys_compat.c34 if (cpus_have_final_cap(ARM64_WORKAROUND_1542419)) { in __do_compat_cache_op()
H A Dmodule-plts.c203 if (!cpus_have_final_cap(ARM64_WORKAROUND_843419)) in count_plts()
238 if (cpus_have_final_cap(ARM64_WORKAROUND_843419)) { in count_plts()
H A Dtraps.c594 if (cpus_have_final_cap(ARM64_WORKAROUND_1542419)) { in ctr_read_handler()
/linux/include/kvm/
H A Darm_arch_timer.h152 return (has_vhe() && cpus_have_final_cap(ARM64_HAS_ECV_CNTPOFF)); in has_cntpoff()
/linux/arch/arm64/kvm/vgic/
H A Dvgic-v3.c700 if (cpus_have_final_cap(ARM64_WORKAROUND_CAVIUM_30115)) { in vgic_v3_probe()
/linux/arch/arm64/kvm/hyp/
H A Dpgtable.c630 if (!cpus_have_final_cap(ARM64_WORKAROUND_AMPERE_AC03_CPU_38)) in kvm_get_vtcr()
647 if (!cpus_have_final_cap(ARM64_HAS_STAGE2_FWB)) in stage2_has_fwb()

12