Searched refs:mdcr_el2 (Results 1 - 16 of 16) sorted by relevance
/kernel/linux/linux-5.10/arch/arm64/kvm/ |
H A D | debug.c | 24 static DEFINE_PER_CPU(u32, mdcr_el2); 60 * value of mdcr_el2 so we can preserve MDCR_EL2.HPMN which has 68 __this_cpu_write(mdcr_el2, kvm_call_hyp_ret(__kvm_get_mdcr_el2)); in kvm_arm_init_debug() 72 * kvm_arm_setup_mdcr_el2 - configure vcpu mdcr_el2 value 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() [all...] |
/kernel/linux/linux-6.6/arch/arm64/kvm/ |
H A D | debug.c | 24 static DEFINE_PER_CPU(u64, mdcr_el2); 72 * value of mdcr_el2 so we can preserve MDCR_EL2.HPMN which has 80 __this_cpu_write(mdcr_el2, kvm_call_hyp_ret(__kvm_get_mdcr_el2)); in kvm_arm_init_debug() 84 * kvm_arm_setup_mdcr_el2 - configure vcpu mdcr_el2 value 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() [all...] |
/kernel/linux/linux-5.10/arch/arm64/kvm/hyp/nvhe/ |
H A D | switch.c | 70 u64 mdcr_el2; in __deactivate_traps() local 74 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()
|
H A D | debug-sr.c | 84 return read_sysreg(mdcr_el2); in __kvm_get_mdcr_el2()
|
/kernel/linux/linux-5.10/arch/arm64/kvm/hyp/vhe/ |
H A D | switch.c | 103 u64 mdcr_el2 = read_sysreg(mdcr_el2); in deactivate_traps_vhe_put() local 105 mdcr_el2 &= MDCR_EL2_HPMN_MASK | in deactivate_traps_vhe_put() 109 write_sysreg(mdcr_el2, mdcr_el2); in deactivate_traps_vhe_put()
|
H A D | debug-sr.c | 25 return read_sysreg(mdcr_el2); in __kvm_get_mdcr_el2()
|
/kernel/linux/linux-6.6/arch/arm64/kvm/hyp/vhe/ |
H A D | debug-sr.c | 25 return read_sysreg(mdcr_el2); in __kvm_get_mdcr_el2()
|
/kernel/linux/linux-6.6/arch/arm64/kvm/hyp/include/hyp/ |
H A D | switch.h | 197 vcpu->arch.mdcr_el2_host = read_sysreg(mdcr_el2); in __activate_traps_common() 198 write_sysreg(vcpu->arch.mdcr_el2, mdcr_el2); in __activate_traps_common() 219 write_sysreg(vcpu->arch.mdcr_el2_host, mdcr_el2); in __deactivate_traps_common()
|
/kernel/linux/linux-6.6/arch/arm64/kvm/hyp/nvhe/ |
H A D | pkvm.c | 139 vcpu->arch.mdcr_el2 |= mdcr_set; in pvm_init_traps_aa64dfr0() 140 vcpu->arch.mdcr_el2 &= ~mdcr_clear; in pvm_init_traps_aa64dfr0() 156 vcpu->arch.mdcr_el2 |= mdcr_set; in pvm_init_traps_aa64mmfr0() 191 vcpu->arch.mdcr_el2 &= ~(MDCR_EL2_RES0); in pvm_init_trap_regs()
|
H A D | debug-sr.c | 112 return read_sysreg(mdcr_el2); in __kvm_get_mdcr_el2()
|
H A D | hyp-main.c | 38 hyp_vcpu->vcpu.arch.mdcr_el2 = host_vcpu->arch.mdcr_el2; in flush_hyp_vcpu()
|
/kernel/linux/linux-5.10/arch/arm64/kvm/hyp/include/hyp/ |
H A D | switch.h | 93 write_sysreg(vcpu->arch.mdcr_el2, mdcr_el2); in __activate_traps_common()
|
/kernel/linux/linux-5.10/arch/arm64/include/asm/ |
H A D | kvm_host.h | 294 u32 mdcr_el2; member
|
/kernel/linux/linux-6.6/arch/arm64/include/asm/ |
H A D | el2_setup.h | 99 msr mdcr_el2, x2 // Configure debug traps
|
H A D | kvm_host.h | 490 u64 mdcr_el2; member
|
/kernel/linux/linux-5.10/arch/arm64/kernel/ |
H A D | head.S | 598 msr mdcr_el2, x3 // Configure debug traps
|
Completed in 12 milliseconds