Home
last modified time | relevance | path

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

/Linux-v5.15/arch/arm64/kvm/
Ddebug.c24 static DEFINE_PER_CPU(u64, mdcr_el2);
68 __this_cpu_write(mdcr_el2, kvm_call_hyp_ret(__kvm_get_mdcr_el2)); in kvm_arm_init_debug()
90 vcpu->arch.mdcr_el2 = __this_cpu_read(mdcr_el2) & MDCR_EL2_HPMN_MASK; in kvm_arm_setup_mdcr_el2()
91 vcpu->arch.mdcr_el2 |= (MDCR_EL2_TPM | in kvm_arm_setup_mdcr_el2()
101 vcpu->arch.mdcr_el2 |= MDCR_EL2_TDE; in kvm_arm_setup_mdcr_el2()
111 vcpu->arch.mdcr_el2 |= MDCR_EL2_TDA; in kvm_arm_setup_mdcr_el2()
113 trace_kvm_arm_set_dreg32("MDCR_EL2", vcpu->arch.mdcr_el2); in kvm_arm_setup_mdcr_el2()
157 unsigned long mdscr, orig_mdcr_el2 = vcpu->arch.mdcr_el2; in kvm_arm_setup_debug()
237 if (has_vhe() && orig_mdcr_el2 != vcpu->arch.mdcr_el2) in kvm_arm_setup_debug()
238 write_sysreg(vcpu->arch.mdcr_el2, mdcr_el2); in kvm_arm_setup_debug()
/Linux-v5.15/arch/arm64/kvm/hyp/include/hyp/
Dswitch.h96 vcpu->arch.mdcr_el2_host = read_sysreg(mdcr_el2); in __activate_traps_common()
97 write_sysreg(vcpu->arch.mdcr_el2, mdcr_el2); in __activate_traps_common()
102 write_sysreg(vcpu->arch.mdcr_el2_host, mdcr_el2); in __deactivate_traps_common()
/Linux-v5.15/arch/arm64/kvm/hyp/vhe/
Ddebug-sr.c25 return read_sysreg(mdcr_el2); in __kvm_get_mdcr_el2()
/Linux-v5.15/arch/arm64/kernel/
Dhyp-stub.S119 mrs x0, mdcr_el2
122 msr mdcr_el2, x0
/Linux-v5.15/arch/arm64/kvm/hyp/nvhe/
Ddebug-sr.c114 return read_sysreg(mdcr_el2); in __kvm_get_mdcr_el2()
/Linux-v5.15/arch/arm64/include/asm/
Del2_setup.h80 msr mdcr_el2, x2 // Configure debug traps
Dkvm_host.h291 u64 mdcr_el2; member