Home
last modified time | relevance | path

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

/linux-6.15/arch/arm64/include/asm/
H A Dvirt.h118 static __always_inline bool is_kernel_in_hyp_mode(void) in is_kernel_in_hyp_mode() function
160 return is_hyp_mode_available() && !is_kernel_in_hyp_mode(); in is_hyp_nvhe()
H A Dhardirq.h33 if (!is_kernel_in_hyp_mode()) \
66 if (!is_kernel_in_hyp_mode()) \
H A Dkvm_asm.h161 #define CHOOSE_HYP_SYM(sym) (is_kernel_in_hyp_mode() \
165 #define this_cpu_ptr_hyp_sym(sym) (is_kernel_in_hyp_mode() \
169 #define per_cpu_ptr_hyp_sym(sym, cpu) (is_kernel_in_hyp_mode() \
211 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-6.15/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-6.15/drivers/irqchip/
H A Dirq-apple-aic.c411 if (is_kernel_in_hyp_mode() && in aic_handle_irq()
566 if (is_kernel_in_hyp_mode()) { in aic_handle_fiq()
693 if (!is_kernel_in_hyp_mode()) { in aic_irq_domain_translate()
838 if (is_kernel_in_hyp_mode()) { in aic_init_cpu()
1058 if (!is_kernel_in_hyp_mode()) in aic_of_ic_init()
1068 if (is_kernel_in_hyp_mode()) { in aic_of_ic_init()
/linux-6.15/arch/arm64/kvm/
H A Dmmu.c406 if (is_kernel_in_hyp_mode()) in kvm_host_owns_hyp_mappings()
543 if (is_kernel_in_hyp_mode()) in kvm_share_hyp()
574 if (is_kernel_in_hyp_mode() || kvm_host_owns_hyp_mappings() || !from) in kvm_unshare_hyp()
602 if (is_kernel_in_hyp_mode()) in create_hyp_mappings()
775 if (is_kernel_in_hyp_mode()) { in create_hyp_io_mappings()
805 BUG_ON(is_kernel_in_hyp_mode()); in create_hyp_exec_mappings()
H A Darm.c2093 if (!is_kernel_in_hyp_mode()) in cpu_hyp_reset()
2133 if (!is_kernel_in_hyp_mode()) in cpu_hyp_init_context()
2141 if (is_kernel_in_hyp_mode()) in cpu_hyp_init_features()
2815 in_hyp_mode = is_kernel_in_hyp_mode(); in kvm_arm_init()
2904 if (!is_kernel_in_hyp_mode()) in early_kvm_mode_cfg()
2912 if (strcmp(arg, "nvhe") == 0 && !WARN_ON(is_kernel_in_hyp_mode())) { in early_kvm_mode_cfg()
2917 if (strcmp(arg, "nested") == 0 && !WARN_ON(!is_kernel_in_hyp_mode())) { in early_kvm_mode_cfg()
H A Dpkvm.c65 if (!is_hyp_mode_available() || is_kernel_in_hyp_mode()) in kvm_hyp_reserve()
/linux-6.15/drivers/perf/
H A Dapple_m1_cpu_pmu.c375 else if (is_kernel_in_hyp_mode()) in __m1_pmu_configure_event_filter()
609 if (!attr->exclude_guest && !is_kernel_in_hyp_mode()) { in m1_pmu_set_event_filter()
H A Darm_pmuv3.c1014 if (is_kernel_in_hyp_mode()) { in armv8pmu_set_event_filter()
/linux-6.15/arch/arm64/kernel/
H A Dcpu_errata.c168 return is_affected_midr_range_list(entry, scope) && is_kernel_in_hyp_mode(); in has_cortex_a76_erratum_1463225()
271 if (!is_kernel_in_hyp_mode()) in has_impdef_pmuv3()
H A Dsmp.c440 if (IS_ENABLED(CONFIG_KVM) && !is_kernel_in_hyp_mode()) { in hyp_mode_check()
H A Dcpufeature.c2173 return is_kernel_in_hyp_mode(); in runs_at_el2()
/linux-6.15/arch/arm64/kernel/probes/
H A Dkprobes.c401 if (ret || is_kernel_in_hyp_mode()) in arch_populate_kprobe_blacklist()
/linux-6.15/arch/arm64/mm/
H A Dinit.c198 is_hyp_mode_available() && !is_kernel_in_hyp_mode()) { in arm64_memblock_init()
/linux-6.15/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_virt.h359 return !is_kernel_in_hyp_mode(); in is_virtual_machine()
/linux-6.15/drivers/clocksource/
H A Darm_arch_timer.c1399 if (is_kernel_in_hyp_mode()) in arch_timer_select_ppi()
1414 if (is_kernel_in_hyp_mode()) in arch_timer_populate_kvm_info()
/linux-6.15/drivers/hwtracing/coresight/
H A Dcoresight-etm4x-core.c746 if (!is_kernel_in_hyp_mode()) { in etm4_parse_event_config()
1184 if (is_kernel_in_hyp_mode()) in cpu_detect_trace_filtering()
1422 if (!is_kernel_in_hyp_mode()) { in etm4_get_ns_access_type()
H A Dcoresight-etm-perf.c86 pid_fmt = is_kernel_in_hyp_mode() ? ETM_OPT_CTXTID2 : ETM_OPT_CTXTID; in format_attr_contextid_show()