/openbmc/linux/arch/arm64/include/asm/ |
H A D | kvm_emulate.h | 73 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 D | hardirq.h | 42 ___hcr = read_sysreg(hcr_el2); \ 44 write_sysreg(___hcr | HCR_TGE, hcr_el2); \ 85 write_sysreg(___hcr, hcr_el2); \
|
H A D | kvm_mte.h | 18 mrs \reg1, hcr_el2 38 mrs \reg1, hcr_el2
|
H A D | kvm_ptrauth.h | 73 mrs \reg1, hcr_el2 85 mrs \reg1, hcr_el2
|
H A D | kvm_asm.h | 179 unsigned long hcr_el2; member
|
/openbmc/linux/arch/arm64/kvm/hyp/include/hyp/ |
H A D | switch.h | 238 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 D | tlb.c | 57 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 D | switch.c | 98 write_sysreg(HCR_HOST_VHE_FLAGS, hcr_el2); in __deactivate_traps()
|
/openbmc/linux/arch/arm64/kvm/ |
H A D | trace_arm.h | 319 __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 D | pkvm.c | 71 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 D | hyp-main.c | 37 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 D | hyp-init.S | 94 msr hcr_el2, x1 258 msr hcr_el2, x5
|
H A D | switch.c | 109 write_sysreg(this_cpu_ptr(&kvm_init_params)->hcr_el2, hcr_el2); in __deactivate_traps()
|
H A D | host.S | 125 mrs x0, hcr_el2 127 msr hcr_el2, x0
|
H A D | mem_protect.c | 294 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 D | cpu.c | 649 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 D | debug_helper.c | 30 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 D | ptw.c | 213 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 D | helper.c | 2023 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 D | macro.h | 292 msr hcr_el2, \tmp 305 msr hcr_el2, \tmp
|
/openbmc/linux/arch/arm64/kernel/ |
H A D | asm-offsets.c | 131 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 D | hyp-stub.S | 100 msr hcr_el2, x0
|
H A D | head.S | 579 msr hcr_el2, x0 596 mrs x0, hcr_el2
|
/openbmc/qemu/target/arm/tcg/ |
H A D | hflags.c | 195 || (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 D | lowlevel.S | 78 mrs x0, hcr_el2 80 msr hcr_el2, x0
|