Searched refs:mdcr_el2 (Results 1 – 5 of 5) sorted by relevance
35 static DEFINE_PER_CPU(u32, mdcr_el2);75 __this_cpu_write(mdcr_el2, kvm_call_hyp(__kvm_get_mdcr_el2)); in kvm_arm_init_debug()118 vcpu->arch.mdcr_el2 = __this_cpu_read(mdcr_el2) & MDCR_EL2_HPMN_MASK; in kvm_arm_setup_debug()119 vcpu->arch.mdcr_el2 |= (MDCR_EL2_TPM | in kvm_arm_setup_debug()128 vcpu->arch.mdcr_el2 |= MDCR_EL2_TDE; in kvm_arm_setup_debug()194 vcpu->arch.mdcr_el2 |= MDCR_EL2_TDA; in kvm_arm_setup_debug()196 trace_kvm_arm_set_dreg32("MDCR_EL2", vcpu->arch.mdcr_el2); in kvm_arm_setup_debug()
103 write_sysreg(vcpu->arch.mdcr_el2, mdcr_el2); in __activate_traps()110 u64 mdcr_el2 = read_sysreg(mdcr_el2); in __deactivate_traps_vhe() local112 mdcr_el2 &= MDCR_EL2_HPMN_MASK | in __deactivate_traps_vhe()116 write_sysreg(mdcr_el2, mdcr_el2); in __deactivate_traps_vhe()124 u64 mdcr_el2 = read_sysreg(mdcr_el2); in __deactivate_traps_nvhe() local126 mdcr_el2 &= MDCR_EL2_HPMN_MASK; in __deactivate_traps_nvhe()127 mdcr_el2 |= MDCR_EL2_E2PB_MASK << MDCR_EL2_E2PB_SHIFT; in __deactivate_traps_nvhe()129 write_sysreg(mdcr_el2, mdcr_el2); in __deactivate_traps_nvhe()
201 return read_sysreg(mdcr_el2); in __kvm_get_mdcr_el2()
208 u32 mdcr_el2; member
485 msr mdcr_el2, x3 // Configure debug traps