Searched refs:mdcr_el2 (Results 1 – 8 of 8) sorted by relevance
24 static DEFINE_PER_CPU(u32, mdcr_el2);68 __this_cpu_write(mdcr_el2, kvm_call_hyp_ret(__kvm_get_mdcr_el2)); in kvm_arm_init_debug()89 vcpu->arch.mdcr_el2 = __this_cpu_read(mdcr_el2) & MDCR_EL2_HPMN_MASK; in kvm_arm_setup_mdcr_el2()90 vcpu->arch.mdcr_el2 |= (MDCR_EL2_TPM | in kvm_arm_setup_mdcr_el2()100 vcpu->arch.mdcr_el2 |= MDCR_EL2_TDE; in kvm_arm_setup_mdcr_el2()110 vcpu->arch.mdcr_el2 |= MDCR_EL2_TDA; in kvm_arm_setup_mdcr_el2()112 trace_kvm_arm_set_dreg32("MDCR_EL2", vcpu->arch.mdcr_el2); in kvm_arm_setup_mdcr_el2()156 unsigned long mdscr, orig_mdcr_el2 = vcpu->arch.mdcr_el2; in kvm_arm_setup_debug()236 if (has_vhe() && orig_mdcr_el2 != vcpu->arch.mdcr_el2) in kvm_arm_setup_debug()237 write_sysreg(vcpu->arch.mdcr_el2, mdcr_el2); in kvm_arm_setup_debug()
70 u64 mdcr_el2; in __deactivate_traps() local74 mdcr_el2 = read_sysreg(mdcr_el2); in __deactivate_traps()95 mdcr_el2 &= MDCR_EL2_HPMN_MASK; in __deactivate_traps()96 mdcr_el2 |= MDCR_EL2_E2PB_MASK << MDCR_EL2_E2PB_SHIFT; in __deactivate_traps()98 write_sysreg(mdcr_el2, mdcr_el2); in __deactivate_traps()
84 return read_sysreg(mdcr_el2); in __kvm_get_mdcr_el2()
103 u64 mdcr_el2 = read_sysreg(mdcr_el2); in deactivate_traps_vhe_put() local105 mdcr_el2 &= MDCR_EL2_HPMN_MASK | in deactivate_traps_vhe_put()109 write_sysreg(mdcr_el2, mdcr_el2); in deactivate_traps_vhe_put()
25 return read_sysreg(mdcr_el2); in __kvm_get_mdcr_el2()
93 write_sysreg(vcpu->arch.mdcr_el2, mdcr_el2); in __activate_traps_common()
294 u32 mdcr_el2; member
598 msr mdcr_el2, x3 // Configure debug traps