Home
last modified time | relevance | path

Searched refs:has_vhe (Results 1 - 25 of 30) sorted by relevance

12

/kernel/linux/linux-6.6/arch/arm64/kvm/
H A Dpmu.c22 if (has_vhe() && attr->exclude_user) in kvm_pmu_switch_needed()
181 if (!kvm_arm_support_pmu_v3() || !has_vhe()) in kvm_vcpu_pmu_restore_guest()
202 if (!kvm_arm_support_pmu_v3() || !has_vhe()) in kvm_vcpu_pmu_restore_host()
228 if (!kvm_arm_support_pmu_v3() || !has_vhe()) in kvm_set_pmuserenr()
248 if (!has_vhe() || !in_interrupt()) in kvm_vcpu_pmu_resync_el0()
H A Dfpsimd.c185 if (has_vhe() && system_supports_sme()) { in kvm_arch_vcpu_put_fp()
203 if (!has_vhe()) in kvm_arch_vcpu_put_fp()
209 } else if (has_vhe() && system_supports_sve()) { in kvm_arch_vcpu_put_fp()
H A Ddebug.c274 if (has_vhe() && orig_mdcr_el2 != vcpu->arch.mdcr_el2) in kvm_arm_setup_debug()
322 if (has_vhe()) in kvm_arch_vcpu_load_debug_state_flags()
H A Darch_timer.c192 } else if (has_vhe()) { in get_timer_map()
774 if (!has_vhe()) in timer_set_traps()
1431 } else if (has_vhe()) { in kvm_timer_hyp_init()
/kernel/linux/linux-5.10/arch/arm64/kvm/hyp/include/hyp/
H A Dsysreg-sr.h61 if (!has_vhe() && ctxt->__hyp_running_vcpu) in __sysreg_save_el2_return_state()
84 if (has_vhe() || in __sysreg_restore_el1_state()
115 if (!has_vhe() && in __sysreg_restore_el1_state()
177 if (has_vhe() || vcpu->arch.flags & KVM_ARM64_DEBUG_DIRTY) in __sysreg32_save_state()
194 if (has_vhe() || vcpu->arch.flags & KVM_ARM64_DEBUG_DIRTY) in __sysreg32_restore_state()
H A Dswitch.h207 * Currently system_supports_sve() currently implies has_vhe(), in __hyp_handle_fpsimd()
208 * so the check is redundant. However, has_vhe() can be determined in __hyp_handle_fpsimd()
211 if (has_vhe() && system_supports_sve()) { in __hyp_handle_fpsimd()
218 vhe = has_vhe(); in __hyp_handle_fpsimd()
/kernel/linux/linux-6.6/arch/arm64/kvm/hyp/include/hyp/
H A Dsysreg-sr.h82 if (!has_vhe() && ctxt->__hyp_running_vcpu) in __sysreg_save_el2_return_state()
104 if (has_vhe() || in __sysreg_restore_el1_state()
146 if (!has_vhe() && in __sysreg_restore_el1_state()
225 if (has_vhe() || vcpu_get_flag(vcpu, DEBUG_DIRTY)) in __sysreg32_save_state()
242 if (has_vhe() || vcpu_get_flag(vcpu, DEBUG_DIRTY)) in __sysreg32_restore_state()
/kernel/linux/linux-5.10/arch/arm64/kvm/
H A Dpmu.c21 if (has_vhe() && attr->exclude_user) in kvm_pmu_switch_needed()
175 if (!has_vhe()) in kvm_vcpu_pmu_restore_guest()
196 if (!has_vhe()) in kvm_vcpu_pmu_restore_host()
H A Dva_layout.c118 if (has_vhe() || (!tag_val && i > 0)) { in kvm_update_va_mask()
145 if (has_vhe() || !cpus_have_const_cap(ARM64_HARDEN_EL2_VECTORS)) { in kvm_patch_vector_branch()
H A Ddebug.c236 if (has_vhe() && orig_mdcr_el2 != vcpu->arch.mdcr_el2) in kvm_arm_setup_debug()
H A Darm.c247 if (!has_vhe()) in kvm_arch_alloc_vm()
255 if (!has_vhe()) in kvm_arch_free_vm()
372 if (has_vhe()) in kvm_arch_vcpu_load()
391 if (has_vhe()) in kvm_arch_vcpu_put()
H A Dreset.c131 if (WARN_ON(!has_vhe())) in kvm_vcpu_enable_sve()
/kernel/linux/linux-6.6/arch/arm64/kvm/hyp/
H A Dexception.c51 } else if (has_vhe()) { in __vcpu_write_spsr()
60 if (has_vhe()) in __vcpu_write_spsr_abt()
68 if (has_vhe()) in __vcpu_write_spsr_und()
H A Dvgic-v3-sr.c208 if (used_lrs || !has_vhe()) { in __vgic_v3_save_state()
252 if (used_lrs || !has_vhe()) { in __vgic_v3_restore_state()
278 if (has_vhe()) { in __vgic_v3_activate_traps()
429 if (has_vhe()) in __vgic_v3_get_gic_config()
449 if (has_vhe()) in __vgic_v3_get_gic_config()
/kernel/linux/linux-5.10/arch/arm64/include/asm/
H A Dvirt.h86 static __always_inline bool has_vhe(void) in has_vhe() function
H A Dkvm_host.h511 if (has_vhe()) { \
523 if (has_vhe()) { \
623 return (!has_vhe() && attr->exclude_host); in kvm_pmu_counter_deferred()
H A Dkvm_mmu.h246 if (this_cpu_has_cap(ARM64_HARDEN_EL2_VECTORS) && !has_vhe()) {
/kernel/linux/linux-6.6/arch/arm64/include/asm/
H A Dvirt.h121 static __always_inline bool has_vhe(void) in has_vhe() function
H A Dkvm_host.h819 if (!has_vhe()) in __vcpu_read_sys_reg_from_cpu()
863 if (!has_vhe()) in __vcpu_write_sys_reg_to_cpu()
950 if (has_vhe()) { \
962 if (has_vhe()) { \
1092 return (!has_vhe() && attr->exclude_host); in kvm_pmu_counter_deferred()
H A Dkvm_emulate.h72 if (has_vhe() || has_hvhe()) in vcpu_reset_hcr()
576 if (has_vhe() || has_hvhe()) in kvm_write_cptr_el2()
586 if (has_vhe()) { in kvm_get_reset_cptr_el2()
/kernel/linux/linux-6.6/include/kvm/
H A Darm_arch_timer.h152 return (has_vhe() && cpus_have_final_cap(ARM64_HAS_ECV_CNTPOFF)); in has_cntpoff()
H A Darm_pmu.h89 if (!has_vhe() && kvm_vcpu_has_pmu(vcpu)) \
/kernel/linux/linux-5.10/arch/arm64/kvm/hyp/
H A Dvgic-v3-sr.c206 if (used_lrs || !has_vhe()) { in __vgic_v3_save_state()
250 if (used_lrs || !has_vhe()) { in __vgic_v3_restore_state()
276 if (has_vhe()) { in __vgic_v3_activate_traps()
/kernel/linux/linux-5.10/arch/arm64/kvm/vgic/
H A Dvgic-v3.c667 if (has_vhe()) in vgic_v3_load()
691 if (has_vhe()) in vgic_v3_put()
/kernel/linux/linux-6.6/arch/arm64/kvm/vgic/
H A Dvgic-v3.c734 if (has_vhe()) in vgic_v3_load()
758 if (has_vhe()) in vgic_v3_put()

Completed in 20 milliseconds

12