/linux/arch/arm64/include/asm/ |
H A D | virt.h | 139 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 D | kvm_emulate.h | 90 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 D | module.h | 47 return cpus_have_final_cap(ARM64_WORKAROUND_843419) && in is_forbidden_offset_for_adrp()
|
H A D | cpufeature.h | 495 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 D | kvm_pgtable.h | 67 ({ cpus_have_final_cap(ARM64_KVM_HVHE) ? 2 : 3; }) 69 ({ cpus_have_final_cap(ARM64_KVM_HVHE) ? 0 : 1; })
|
H A D | barrier.h | 78 if (cpus_have_final_cap(ARM64_WORKAROUND_TSB_FLUSH_FAILURE)) \
|
H A D | kvm_host.h | 958 ((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 D | kvm_nested.h | 13 cpus_have_final_cap(ARM64_HAS_NESTED_VIRT) && in vcpu_has_nv()
|
H A D | kvm_mmu.h | 221 if (cpus_have_final_cap(ARM64_HAS_STAGE2_FWB))
|
/linux/arch/arm64/kvm/hyp/include/hyp/ |
H A D | switch.h | 163 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 D | sysreg-sr.h | 57 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 D | fault.h | 65 (cpus_have_final_cap(ARM64_WORKAROUND_834220) || in __get_fault_info()
|
/linux/arch/arm64/kvm/hyp/nvhe/ |
H A D | switch.c | 49 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 D | tlb.c | 74 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 D | tlb.c | 33 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 D | arm.c | 386 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 D | guest.c | 822 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 D | sys_regs.c | 346 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 D | arch_timer.c | 289 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 D | sys_compat.c | 34 if (cpus_have_final_cap(ARM64_WORKAROUND_1542419)) { in __do_compat_cache_op()
|
H A D | module-plts.c | 203 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 D | traps.c | 594 if (cpus_have_final_cap(ARM64_WORKAROUND_1542419)) { in ctr_read_handler()
|
/linux/include/kvm/ |
H A D | arm_arch_timer.h | 152 return (has_vhe() && cpus_have_final_cap(ARM64_HAS_ECV_CNTPOFF)); in has_cntpoff()
|
/linux/arch/arm64/kvm/vgic/ |
H A D | vgic-v3.c | 700 if (cpus_have_final_cap(ARM64_WORKAROUND_CAVIUM_30115)) { in vgic_v3_probe()
|
/linux/arch/arm64/kvm/hyp/ |
H A D | pgtable.c | 630 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()
|