Home
last modified time | relevance | path

Searched refs:has_vhe (Results 1 – 16 of 16) sorted by relevance

/openbmc/linux/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()
771 if (!has_vhe()) in timer_set_traps()
1428 } else if (has_vhe()) { in kvm_timer_hyp_init()
H A Darm.c336 if (!has_vhe()) in kvm_arch_alloc_vm()
446 if (has_vhe()) in kvm_arch_vcpu_load()
470 if (has_vhe()) in kvm_arch_vcpu_put()
/openbmc/linux/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()
H A Dswitch.h309 if (has_vhe() || has_hvhe()) { in kvm_hyp_handle_fpsimd()
/openbmc/linux/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()
/openbmc/linux/arch/arm64/include/asm/
H A Dvirt.h121 static __always_inline bool has_vhe(void) in has_vhe() function
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()
H A Dkvm_host.h817 if (!has_vhe()) in __vcpu_read_sys_reg_from_cpu()
861 if (!has_vhe()) in __vcpu_write_sys_reg_to_cpu()
948 if (has_vhe()) { \
960 if (has_vhe()) { \
1090 return (!has_vhe() && attr->exclude_host); in kvm_pmu_counter_deferred()
/openbmc/linux/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_arm_support_pmu_v3()) \
/openbmc/linux/arch/arm64/kvm/vgic/
H A Dvgic-v3.c734 if (has_vhe()) in vgic_v3_load()
758 if (has_vhe()) in vgic_v3_put()
H A Dvgic.c865 return !static_branch_unlikely(&kvm_vgic_global_state.gicv3_cpuif) || has_vhe(); in can_access_vgic_from_kernel()