Home
last modified time | relevance | path

Searched refs:mdcr_el2 (Results 1 – 5 of 5) sorted by relevance

/Linux-v4.19/arch/arm64/kvm/
Ddebug.c35 static DEFINE_PER_CPU(u32, mdcr_el2);
79 __this_cpu_write(mdcr_el2, kvm_call_hyp(__kvm_get_mdcr_el2)); in kvm_arm_init_debug()
123 vcpu->arch.mdcr_el2 = __this_cpu_read(mdcr_el2) & MDCR_EL2_HPMN_MASK; in kvm_arm_setup_debug()
124 vcpu->arch.mdcr_el2 |= (MDCR_EL2_TPM | in kvm_arm_setup_debug()
133 vcpu->arch.mdcr_el2 |= MDCR_EL2_TDE; in kvm_arm_setup_debug()
205 vcpu->arch.mdcr_el2 |= MDCR_EL2_TDA; in kvm_arm_setup_debug()
211 trace_kvm_arm_set_dreg32("MDCR_EL2", vcpu->arch.mdcr_el2); in kvm_arm_setup_debug()
/Linux-v4.19/arch/arm64/kvm/hyp/
Dswitch.c85 write_sysreg(vcpu->arch.mdcr_el2, mdcr_el2); in __activate_traps_common()
152 u64 mdcr_el2 = read_sysreg(mdcr_el2); in __deactivate_traps_nvhe() local
156 mdcr_el2 &= MDCR_EL2_HPMN_MASK; in __deactivate_traps_nvhe()
157 mdcr_el2 |= MDCR_EL2_E2PB_MASK << MDCR_EL2_E2PB_SHIFT; in __deactivate_traps_nvhe()
159 write_sysreg(mdcr_el2, mdcr_el2); in __deactivate_traps_nvhe()
188 u64 mdcr_el2 = read_sysreg(mdcr_el2); in deactivate_traps_vhe_put() local
190 mdcr_el2 &= MDCR_EL2_HPMN_MASK | in deactivate_traps_vhe_put()
194 write_sysreg(mdcr_el2, mdcr_el2); in deactivate_traps_vhe_put()
Ddebug-sr.c204 return read_sysreg(mdcr_el2); in __kvm_get_mdcr_el2()
/Linux-v4.19/arch/arm64/include/asm/
Dkvm_host.h214 u32 mdcr_el2; member
/Linux-v4.19/arch/arm64/kernel/
Dhead.S578 msr mdcr_el2, x3 // Configure debug traps