Home
last modified time | relevance | path

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

/linux-6.12.1/arch/arm64/kvm/
Ddebug.c24 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()
172 unsigned long mdscr, orig_mdcr_el2 = vcpu->arch.mdcr_el2; in kvm_arm_setup_debug()
275 if (has_vhe() && orig_mdcr_el2 != vcpu->arch.mdcr_el2) in kvm_arm_setup_debug()
276 write_sysreg(vcpu->arch.mdcr_el2, mdcr_el2); in kvm_arm_setup_debug()
/linux-6.12.1/arch/arm64/kvm/hyp/include/hyp/
Dswitch.h229 *host_data_ptr(host_debug_state.mdcr_el2) = read_sysreg(mdcr_el2); in __activate_traps_common()
230 write_sysreg(vcpu->arch.mdcr_el2, mdcr_el2); in __activate_traps_common()
251 write_sysreg(*host_data_ptr(host_debug_state.mdcr_el2), mdcr_el2); in __deactivate_traps_common()
/linux-6.12.1/arch/arm64/kvm/hyp/vhe/
Ddebug-sr.c25 return read_sysreg(mdcr_el2); in __kvm_get_mdcr_el2()
/linux-6.12.1/arch/arm64/kvm/hyp/nvhe/
Dpkvm.c145 vcpu->arch.mdcr_el2 |= mdcr_set; in pvm_init_traps_aa64dfr0()
146 vcpu->arch.mdcr_el2 &= ~mdcr_clear; in pvm_init_traps_aa64dfr0()
162 vcpu->arch.mdcr_el2 |= mdcr_set; in pvm_init_traps_aa64mmfr0()
197 vcpu->arch.mdcr_el2 &= ~(MDCR_EL2_RES0); in pvm_init_trap_regs()
Ddebug-sr.c112 return read_sysreg(mdcr_el2); in __kvm_get_mdcr_el2()
Dhyp-main.c109 hyp_vcpu->vcpu.arch.mdcr_el2 = host_vcpu->arch.mdcr_el2; in flush_hyp_vcpu()
/linux-6.12.1/arch/arm64/kernel/
Dhyp-stub.S116 mrs x0, mdcr_el2
119 msr mdcr_el2, x0
/linux-6.12.1/arch/arm64/include/asm/
Del2_setup.h100 msr mdcr_el2, x2 // Configure debug traps
Dkvm_host.h644 u64 mdcr_el2; member
701 u64 mdcr_el2; member