Home
last modified time | relevance | path

Searched refs:is_kernel_in_hyp_mode (Results 1 – 12 of 12) sorted by relevance

/linux/arch/arm64/include/asm/
H A Dhardirq.h33 if (!is_kernel_in_hyp_mode()) \
66 if (!is_kernel_in_hyp_mode()) \
H A Dkvm_asm.h190 #define CHOOSE_HYP_SYM(sym) (is_kernel_in_hyp_mode() \
194 #define this_cpu_ptr_hyp_sym(sym) (is_kernel_in_hyp_mode() \
198 #define per_cpu_ptr_hyp_sym(sym, cpu) (is_kernel_in_hyp_mode() \
240 if (!is_kernel_in_hyp_mode()) \
H A Dhw_breakpoint.h38 if (is_kernel_in_hyp_mode() && ctrl.privilege == AARCH64_BREAKPOINT_EL1) in encode_ctrl_reg()
/linux/arch/arm/include/asm/
H A Dvirt.h63 static inline bool is_kernel_in_hyp_mode(void) in is_kernel_in_hyp_mode() function
/linux/drivers/perf/
H A Darm_brbe.c396 if (is_kernel_in_hyp_mode()) in branch_type_to_brbcr()
527 if (is_kernel_in_hyp_mode()) in brbe_enable()
588 if (is_kernel_in_hyp_mode()) in brbinf_get_perf_priv()
719 (is_kernel_in_hyp_mode() && (branch_sample_type & PERF_SAMPLE_BRANCH_HV))); in filter_branch_privilege()
/linux/arch/arm64/kvm/
H A Darm.c2201 if (!is_kernel_in_hyp_mode()) in cpu_hyp_reset()
2241 if (!is_kernel_in_hyp_mode()) in cpu_hyp_init_context()
2249 if (is_kernel_in_hyp_mode()) { in cpu_hyp_init_features()
3003 in_hyp_mode = is_kernel_in_hyp_mode(); in kvm_arm_init()
3092 if (!is_kernel_in_hyp_mode()) in early_kvm_mode_cfg()
3100 if (strcmp(arg, "nvhe") == 0 && !WARN_ON(is_kernel_in_hyp_mode())) { in early_kvm_mode_cfg()
3105 if (strcmp(arg, "nested") == 0 && !WARN_ON(!is_kernel_in_hyp_mode())) { in early_kvm_mode_cfg()
H A Dmmu.c405 if (is_kernel_in_hyp_mode()) in kvm_host_owns_hyp_mappings()
542 if (is_kernel_in_hyp_mode()) in kvm_share_hyp()
573 if (is_kernel_in_hyp_mode() || kvm_host_owns_hyp_mappings() || !from) in kvm_unshare_hyp()
601 if (is_kernel_in_hyp_mode()) in create_hyp_mappings()
774 if (is_kernel_in_hyp_mode()) { in create_hyp_io_mappings()
804 BUG_ON(is_kernel_in_hyp_mode()); in create_hyp_exec_mappings()
/linux/arch/arm64/kernel/probes/
H A Dkprobes.c401 if (ret || is_kernel_in_hyp_mode()) in arch_populate_kprobe_blacklist()
/linux/drivers/clocksource/
H A Darm_arch_timer.c1110 if (is_kernel_in_hyp_mode()) in arch_timer_select_ppi()
1125 if (is_kernel_in_hyp_mode()) in arch_timer_populate_kvm_info()
/linux/drivers/hwtracing/coresight/
H A Dcoresight-etm-perf.c80 if (is_kernel_in_hyp_mode()) in format_attr_contextid_show()
/linux/arch/arm64/kvm/vgic/
H A Dvgic-v3.c830 return (is_kernel_in_hyp_mode() && in vgic_v3_broken_seis()
/linux/arch/arm64/kernel/
H A Dcpufeature.c2085 return is_kernel_in_hyp_mode(); in runs_at_el2()
2352 if (is_kernel_in_hyp_mode()) in can_trap_icv_dir_el1()