Searched refs:mdcr_el2 (Results 1 – 13 of 13) sorted by relevance
/openbmc/linux/arch/arm64/kvm/ |
H A D | debug.c | 24 static DEFINE_PER_CPU(u64, mdcr_el2); 80 __this_cpu_write(mdcr_el2, kvm_call_hyp_ret(__kvm_get_mdcr_el2)); in kvm_arm_init_debug() 102 vcpu->arch.mdcr_el2 = __this_cpu_read(mdcr_el2) & MDCR_EL2_HPMN_MASK; in kvm_arm_setup_mdcr_el2() 103 vcpu->arch.mdcr_el2 |= (MDCR_EL2_TPM | in kvm_arm_setup_mdcr_el2() 113 vcpu->arch.mdcr_el2 |= MDCR_EL2_TDE; in kvm_arm_setup_mdcr_el2() 125 vcpu->arch.mdcr_el2 |= MDCR_EL2_TDA; in kvm_arm_setup_mdcr_el2() 127 trace_kvm_arm_set_dreg32("MDCR_EL2", vcpu->arch.mdcr_el2); in kvm_arm_setup_mdcr_el2() 171 unsigned long mdscr, orig_mdcr_el2 = vcpu->arch.mdcr_el2; in kvm_arm_setup_debug() 274 if (has_vhe() && orig_mdcr_el2 != vcpu->arch.mdcr_el2) in kvm_arm_setup_debug() 275 write_sysreg(vcpu->arch.mdcr_el2, mdcr_el2); in kvm_arm_setup_debug()
|
/openbmc/qemu/target/arm/ |
H A D | debug_helper.c | 31 env->cp15.mdcr_el2 & MDCR_TDE; in arm_debug_target_el() 792 uint64_t mdcr_el2 = arm_mdcr_el2_eff(env); in access_tdosa() local 793 bool mdcr_el2_tdosa = (mdcr_el2 & MDCR_TDOSA) || (mdcr_el2 & MDCR_TDE) || in access_tdosa() 813 uint64_t mdcr_el2 = arm_mdcr_el2_eff(env); in access_tdra() local 814 bool mdcr_el2_tdra = (mdcr_el2 & MDCR_TDRA) || (mdcr_el2 & MDCR_TDE) || in access_tdra() 834 uint64_t mdcr_el2 = arm_mdcr_el2_eff(env); in access_tda() local 835 bool mdcr_el2_tda = (mdcr_el2 & MDCR_TDA) || (mdcr_el2 & MDCR_TDE) || in access_tda() 868 uint64_t mdcr_el2 = arm_mdcr_el2_eff(env); in access_tdcc() local 870 bool mdcr_el2_tda = (mdcr_el2 & MDCR_TDA) || (mdcr_el2 & MDCR_TDE) || in access_tdcc() 873 (mdcr_el2 & MDCR_TDCC); in access_tdcc()
|
H A D | helper.c | 324 uint64_t mdcr_el2 = arm_mdcr_el2_eff(env); in access_tpm() local 326 if (el < 2 && (mdcr_el2 & MDCR_TPM)) { in access_tpm() 1099 uint64_t mdcr_el2 = arm_mdcr_el2_eff(env); in pmreg_access() local 1104 if (el < 2 && (mdcr_el2 & MDCR_TPM)) { in pmreg_access() 1193 uint64_t mdcr_el2; in pmu_counter_enabled() local 1205 mdcr_el2 = arm_mdcr_el2_eff(env); in pmu_counter_enabled() 1206 hpmn = mdcr_el2 & MDCR_HPMN; in pmu_counter_enabled() 1212 e = mdcr_el2 & MDCR_HPME; in pmu_counter_enabled() 1218 prohibited = mdcr_el2 & MDCR_HPMD; in pmu_counter_enabled() 5540 env->cp15.mdcr_el2 = value; in mdcr_el2_write() [all …]
|
H A D | internals.h | 1712 return arm_is_el2_enabled(env) ? env->cp15.mdcr_el2 : 0; in arm_mdcr_el2_eff()
|
H A D | cpu.h | 478 uint64_t mdcr_el2; member
|
/openbmc/linux/arch/arm64/kvm/hyp/vhe/ |
H A D | debug-sr.c | 25 return read_sysreg(mdcr_el2); in __kvm_get_mdcr_el2()
|
/openbmc/linux/arch/arm64/kvm/hyp/nvhe/ |
H A D | pkvm.c | 139 vcpu->arch.mdcr_el2 |= mdcr_set; in pvm_init_traps_aa64dfr0() 140 vcpu->arch.mdcr_el2 &= ~mdcr_clear; in pvm_init_traps_aa64dfr0() 156 vcpu->arch.mdcr_el2 |= mdcr_set; in pvm_init_traps_aa64mmfr0() 191 vcpu->arch.mdcr_el2 &= ~(MDCR_EL2_RES0); in pvm_init_trap_regs()
|
H A D | debug-sr.c | 112 return read_sysreg(mdcr_el2); in __kvm_get_mdcr_el2()
|
H A D | hyp-main.c | 38 hyp_vcpu->vcpu.arch.mdcr_el2 = host_vcpu->arch.mdcr_el2; in flush_hyp_vcpu()
|
/openbmc/linux/arch/arm64/kernel/ |
H A D | hyp-stub.S | 116 mrs x0, mdcr_el2 119 msr mdcr_el2, x0
|
/openbmc/linux/arch/arm64/kvm/hyp/include/hyp/ |
H A D | switch.h | 197 vcpu->arch.mdcr_el2_host = read_sysreg(mdcr_el2); in __activate_traps_common() 198 write_sysreg(vcpu->arch.mdcr_el2, mdcr_el2); in __activate_traps_common() 219 write_sysreg(vcpu->arch.mdcr_el2_host, mdcr_el2); in __deactivate_traps_common()
|
/openbmc/linux/arch/arm64/include/asm/ |
H A D | el2_setup.h | 99 msr mdcr_el2, x2 // Configure debug traps
|
H A D | kvm_host.h | 490 u64 mdcr_el2; member
|