Home
last modified time | relevance | path

Searched refs:hcr_el2 (Results 1 – 25 of 33) sorted by relevance

12

/openbmc/linux/arch/arm64/include/asm/
H A Dkvm_emulate.h73 vcpu->arch.hcr_el2 |= HCR_E2H; in vcpu_reset_hcr()
76 vcpu->arch.hcr_el2 |= HCR_TEA; in vcpu_reset_hcr()
78 vcpu->arch.hcr_el2 |= HCR_TERR; in vcpu_reset_hcr()
82 vcpu->arch.hcr_el2 |= HCR_FWB; in vcpu_reset_hcr()
90 vcpu->arch.hcr_el2 |= HCR_TVM; in vcpu_reset_hcr()
100 vcpu->arch.hcr_el2 &= ~HCR_RW; in vcpu_reset_hcr()
103 vcpu->arch.hcr_el2 |= HCR_ATA; in vcpu_reset_hcr()
113 vcpu->arch.hcr_el2 &= ~HCR_TWE; in vcpu_clear_wfx_traps()
118 vcpu->arch.hcr_el2 |= HCR_TWI; in vcpu_clear_wfx_traps()
123 vcpu->arch.hcr_el2 |= HCR_TWE; in vcpu_set_wfx_traps()
[all …]
H A Dhardirq.h42 ___hcr = read_sysreg(hcr_el2); \
44 write_sysreg(___hcr | HCR_TGE, hcr_el2); \
85 write_sysreg(___hcr, hcr_el2); \
H A Dkvm_mte.h18 mrs \reg1, hcr_el2
38 mrs \reg1, hcr_el2
H A Dkvm_ptrauth.h73 mrs \reg1, hcr_el2
85 mrs \reg1, hcr_el2
H A Dkvm_asm.h179 unsigned long hcr_el2; member
/openbmc/linux/arch/arm64/kvm/hyp/include/hyp/
H A Dswitch.h238 u64 hcr = vcpu->arch.hcr_el2; in ___activate_traps()
243 write_sysreg(hcr, hcr_el2); in ___activate_traps()
257 if (vcpu->arch.hcr_el2 & HCR_VSE) { in ___deactivate_traps()
258 vcpu->arch.hcr_el2 &= ~HCR_VSE; in ___deactivate_traps()
259 vcpu->arch.hcr_el2 |= read_sysreg(hcr_el2) & HCR_VSE; in ___deactivate_traps()
335 if (!(read_sysreg(hcr_el2) & HCR_RW)) in kvm_hyp_handle_fpsimd()
353 if (vcpu->arch.hcr_el2 & HCR_TVM) in handle_tx2_tvm()
445 val = read_sysreg(hcr_el2); in kvm_hyp_handle_ptrauth()
447 write_sysreg(val, hcr_el2); in kvm_hyp_handle_ptrauth()
/openbmc/linux/arch/arm64/kvm/hyp/vhe/
H A Dtlb.c57 val = read_sysreg(hcr_el2); in __tlb_switch_to_guest()
59 write_sysreg(val, hcr_el2); in __tlb_switch_to_guest()
70 write_sysreg(HCR_HOST_VHE_FLAGS, hcr_el2); in __tlb_switch_to_host()
H A Dswitch.c98 write_sysreg(HCR_HOST_VHE_FLAGS, hcr_el2); in __deactivate_traps()
/openbmc/linux/arch/arm64/kvm/
H A Dtrace_arm.h319 __field(unsigned long, hcr_el2)
327 __entry->hcr_el2 = __vcpu_sys_reg(vcpu, HCR_EL2);
333 __entry->hcr_el2)
347 __field(unsigned long, hcr_el2)
357 __entry->hcr_el2 = __vcpu_sys_reg(vcpu, HCR_EL2);
364 __entry->hcr_el2)
/openbmc/linux/arch/arm64/kvm/hyp/nvhe/
H A Dpkvm.c71 vcpu->arch.hcr_el2 |= hcr_set; in pvm_init_traps_aa64pfr0()
72 vcpu->arch.hcr_el2 &= ~hcr_clear; in pvm_init_traps_aa64pfr0()
92 vcpu->arch.hcr_el2 |= hcr_set; in pvm_init_traps_aa64pfr1()
93 vcpu->arch.hcr_el2 &= ~hcr_clear; in pvm_init_traps_aa64pfr1()
171 vcpu->arch.hcr_el2 |= hcr_set; in pvm_init_traps_aa64mmfr1()
187 vcpu->arch.hcr_el2 |= hcr_trap_feat_regs | hcr_trap_impdef; in pvm_init_trap_regs()
190 vcpu->arch.hcr_el2 &= ~(HCR_RES0); in pvm_init_trap_regs()
H A Dhyp-main.c37 hyp_vcpu->vcpu.arch.hcr_el2 = host_vcpu->arch.hcr_el2; in flush_hyp_vcpu()
61 host_vcpu->arch.hcr_el2 = hyp_vcpu->vcpu.arch.hcr_el2; in sync_hyp_vcpu()
H A Dhyp-init.S94 msr hcr_el2, x1
258 msr hcr_el2, x5
H A Dswitch.c109 write_sysreg(this_cpu_ptr(&kvm_init_params)->hcr_el2, hcr_el2); in __deactivate_traps()
H A Dhost.S125 mrs x0, hcr_el2
127 msr hcr_el2, x0
H A Dmem_protect.c294 if (params->hcr_el2 & HCR_VM) in __pkvm_prot_finalize()
299 params->hcr_el2 |= HCR_VM; in __pkvm_prot_finalize()
309 write_sysreg(params->hcr_el2, hcr_el2); in __pkvm_prot_finalize()
/openbmc/qemu/target/arm/
H A Dcpu.c649 env->cp15.hcr_el2 |= HCR_RW; in arm_emulate_firmware_reset()
703 if (!(hcr_el2 & HCR_IMO) || (hcr_el2 & HCR_TGE)) { in arm_excp_unmasked()
709 if (!(hcr_el2 & HCR_FMO) || (hcr_el2 & HCR_TGE)) { in arm_excp_unmasked()
723 if (!(hcr_el2 & HCR_FMO) || (hcr_el2 & HCR_TGE)) { in arm_excp_unmasked()
729 if (!(hcr_el2 & HCR_IMO) || (hcr_el2 & HCR_TGE)) { in arm_excp_unmasked()
735 if (!(hcr_el2 & HCR_AMO) || (hcr_el2 & HCR_TGE)) { in arm_excp_unmasked()
788 hcr = hcr_el2 & HCR_FMO; in arm_excp_unmasked()
807 hcr = hcr_el2 & HCR_IMO; in arm_excp_unmasked()
833 uint64_t hcr_el2 = arm_hcr_el2_eff(env); in arm_cpu_exec_interrupt() local
919 env->cp15.hcr_el2 &= ~HCR_VSE; in arm_cpu_exec_interrupt()
[all …]
H A Ddebug_helper.c30 route_to_el2 = env->cp15.hcr_el2 & HCR_TGE || in arm_debug_target_el()
181 uint64_t hcr_el2; in linked_bp_matches() local
202 hcr_el2 = arm_hcr_el2_eff(env); in linked_bp_matches()
211 if (!(hcr_el2 & HCR_E2H)) { in linked_bp_matches()
221 if ((hcr_el2 & (HCR_E2H | HCR_TGE)) == (HCR_E2H | HCR_TGE)) { in linked_bp_matches()
H A Dptw.c213 uint64_t hcr_el2; in regime_translation_disabled() local
240 hcr_el2 = arm_hcr_el2_eff_secstate(env, space); in regime_translation_disabled()
241 return (hcr_el2 & (HCR_DC | HCR_VM)) == 0; in regime_translation_disabled()
247 hcr_el2 = arm_hcr_el2_eff_secstate(env, space); in regime_translation_disabled()
248 if (hcr_el2 & HCR_TGE) { in regime_translation_disabled()
257 hcr_el2 = arm_hcr_el2_eff_secstate(env, space); in regime_translation_disabled()
258 if (hcr_el2 & HCR_DC) { in regime_translation_disabled()
H A Dhelper.c2023 if (hcr_el2 & HCR_IMO) { in isr_read()
2042 if (hcr_el2 & HCR_FMO) { in isr_read()
2056 if (hcr_el2 & HCR_AMO) { in isr_read()
6066 env->cp15.hcr_el2 = value; in do_hcr_write()
10777 uint64_t hcr_el2; in arm_phys_excp_target_el() local
10790 hcr_el2 = arm_hcr_el2_eff(env); in arm_phys_excp_target_el()
10795 hcr = hcr_el2 & HCR_IMO; in arm_phys_excp_target_el()
10799 hcr = hcr_el2 & HCR_FMO; in arm_phys_excp_target_el()
10803 hcr = hcr_el2 & HCR_AMO; in arm_phys_excp_target_el()
12444 uint64_t hcr_el2; in fp_exception_el() local
[all …]
/openbmc/u-boot/arch/arm/include/asm/
H A Dmacro.h292 msr hcr_el2, \tmp
305 msr hcr_el2, \tmp
/openbmc/linux/arch/arm64/kernel/
H A Dasm-offsets.c131 DEFINE(VCPU_HCR_EL2, offsetof(struct kvm_vcpu, arch.hcr_el2)); in main()
147 DEFINE(NVHE_INIT_HCR_EL2, offsetof(struct kvm_nvhe_init_params, hcr_el2)); in main()
H A Dhyp-stub.S100 msr hcr_el2, x0
H A Dhead.S579 msr hcr_el2, x0
596 mrs x0, hcr_el2
/openbmc/qemu/target/arm/tcg/
H A Dhflags.c195 || (arm_el_is_aa64(env, 2) && !(env->cp15.hcr_el2 & HCR_TGE))) in rebuild_hflags_a32()
313 if (env->cp15.hcr_el2 & HCR_TGE) { in rebuild_hflags_a64()
/openbmc/u-boot/arch/arm/cpu/armv8/fsl-layerscape/
H A Dlowlevel.S78 mrs x0, hcr_el2
80 msr hcr_el2, x0

12