Home
last modified time | relevance | path

Searched refs:is_kernel_in_hyp_mode (Results 1 - 25 of 37) sorted by relevance

12

/kernel/linux/linux-6.6/arch/arm64/include/asm/
H A Dvirt.h114 static __always_inline bool is_kernel_in_hyp_mode(void) in is_kernel_in_hyp_mode() function
156 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.h147 * - Don't be tempted to change the following is_kernel_in_hyp_mode()
155 #define CHOOSE_HYP_SYM(sym) (is_kernel_in_hyp_mode() \
159 #define this_cpu_ptr_hyp_sym(sym) (is_kernel_in_hyp_mode() \
163 #define per_cpu_ptr_hyp_sym(sym, cpu) (is_kernel_in_hyp_mode() \
204 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()
/kernel/linux/linux-5.10/arch/arm64/include/asm/
H A Dhardirq.h36 if (!is_kernel_in_hyp_mode()) \
69 if (!is_kernel_in_hyp_mode()) \
H A Dkvm_asm.h131 * - Don't be tempted to change the following is_kernel_in_hyp_mode()
139 #define CHOOSE_HYP_SYM(sym) (is_kernel_in_hyp_mode() \
143 #define this_cpu_ptr_hyp_sym(sym) (is_kernel_in_hyp_mode() \
147 #define per_cpu_ptr_hyp_sym(sym, cpu) (is_kernel_in_hyp_mode() \
160 if (!is_kernel_in_hyp_mode()) \
H A Dvirt.h81 static inline bool is_kernel_in_hyp_mode(void) in is_kernel_in_hyp_mode() function
H A Dhw_breakpoint.h38 if (is_kernel_in_hyp_mode() && ctrl.privilege == AARCH64_BREAKPOINT_EL1) in encode_ctrl_reg()
H A Dkvm_mmu.h165 } else if (is_kernel_in_hyp_mode() || !icache_is_vpipt()) {
H A Dkvm_emulate.h47 if (is_kernel_in_hyp_mode()) in vcpu_reset_hcr()
/kernel/linux/linux-5.10/arch/arm64/kernel/
H A Dcpu-reset.h23 unsigned long el2_switch = !is_kernel_in_hyp_mode() && in cpu_soft_restart()
H A Dsdei.c135 if (is_hyp_mode_available() && !is_kernel_in_hyp_mode()) { in sdei_arch_get_entry_point()
H A Dcpu_errata.c116 return is_affected_midr_range_list(entry, scope) && is_kernel_in_hyp_mode(); in has_cortex_a76_erratum_1463225()
/kernel/linux/linux-5.10/arch/arm/include/asm/
H A Dvirt.h63 static inline bool is_kernel_in_hyp_mode(void) in is_kernel_in_hyp_mode() function
/kernel/linux/linux-6.6/arch/arm/include/asm/
H A Dvirt.h63 static inline bool is_kernel_in_hyp_mode(void) in is_kernel_in_hyp_mode() function
/kernel/linux/linux-6.6/drivers/irqchip/
H A Dirq-apple-aic.c392 if (is_kernel_in_hyp_mode() && in aic_handle_irq()
552 if (is_kernel_in_hyp_mode()) { in aic_handle_fiq()
677 if (!is_kernel_in_hyp_mode()) { in aic_irq_domain_translate()
821 if (is_kernel_in_hyp_mode()) { in aic_init_cpu()
1038 if (!is_kernel_in_hyp_mode()) in aic_of_ic_init()
1048 if (is_kernel_in_hyp_mode()) { in aic_of_ic_init()
/kernel/linux/linux-6.6/arch/arm64/kvm/
H A Dpkvm.c64 if (!is_hyp_mode_available() || is_kernel_in_hyp_mode()) in kvm_hyp_reserve()
H A Darm.c1804 if (!is_kernel_in_hyp_mode()) in cpu_hyp_reset()
1843 if (!is_kernel_in_hyp_mode()) in cpu_hyp_init_context()
1852 if (is_kernel_in_hyp_mode()) in cpu_hyp_init_features()
2418 in_hyp_mode = is_kernel_in_hyp_mode(); in kvm_arm_init()
2501 if (!is_kernel_in_hyp_mode()) in early_kvm_mode_cfg()
2509 if (strcmp(arg, "nvhe") == 0 && !WARN_ON(is_kernel_in_hyp_mode())) { in early_kvm_mode_cfg()
2514 if (strcmp(arg, "nested") == 0 && !WARN_ON(!is_kernel_in_hyp_mode())) { in early_kvm_mode_cfg()
H A Dmmu.c385 if (is_kernel_in_hyp_mode()) in kvm_host_owns_hyp_mappings()
522 if (is_kernel_in_hyp_mode()) in kvm_share_hyp()
553 if (is_kernel_in_hyp_mode() || kvm_host_owns_hyp_mappings() || !from) in kvm_unshare_hyp()
581 if (is_kernel_in_hyp_mode()) in create_hyp_mappings()
754 if (is_kernel_in_hyp_mode()) { in create_hyp_io_mappings()
784 BUG_ON(is_kernel_in_hyp_mode()); in create_hyp_exec_mappings()
/kernel/linux/linux-5.10/arch/arm64/kernel/probes/
H A Dkprobes.c437 if (ret || is_kernel_in_hyp_mode()) in arch_populate_kprobe_blacklist()
/kernel/linux/linux-6.6/arch/arm64/mm/
H A Dinit.c325 is_hyp_mode_available() && !is_kernel_in_hyp_mode()) { in arm64_memblock_init()
/kernel/linux/linux-6.6/arch/arm64/kernel/probes/
H A Dkprobes.c392 if (ret || is_kernel_in_hyp_mode()) in arch_populate_kprobe_blacklist()
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_virt.h315 return !is_kernel_in_hyp_mode(); in is_virtual_machine()
/kernel/linux/linux-5.10/arch/arm64/kvm/
H A Dmmu.c230 if (is_kernel_in_hyp_mode()) in create_hyp_mappings()
311 if (is_kernel_in_hyp_mode()) { in create_hyp_io_mappings()
341 BUG_ON(is_kernel_in_hyp_mode()); in create_hyp_exec_mappings()
H A Darm.c1411 if (!is_kernel_in_hyp_mode()) in cpu_hyp_reset()
1423 if (is_kernel_in_hyp_mode()) in cpu_hyp_reinit()
1766 in_hyp_mode = is_kernel_in_hyp_mode(); in kvm_arch_init()

Completed in 22 milliseconds

12