Lines Matching full:debug

3  * Debug and Guest Debug support
12 #include <asm/debug-monitors.h>
29 * For some debug operations we need to tweak some guest registers. As
69 * kvm_arm_init_debug - grab what we need for debug
90 * - Debug ROM Address (MDCR_EL2_TDRA)
112 /* Route all software debug exceptions to EL2 */ in kvm_arm_setup_mdcr_el2()
116 * Trap debug register access when one of the following is true: in kvm_arm_setup_mdcr_el2()
117 * - Userspace is using the hardware to debug the guest in kvm_arm_setup_mdcr_el2()
119 * - The guest is not using debug (DEBUG_DIRTY clear). in kvm_arm_setup_mdcr_el2()
120 * - The guest has enabled the OS Lock (debug exceptions are blocked). in kvm_arm_setup_mdcr_el2()
131 * kvm_arm_vcpu_init_debug - setup vcpu debug traps
145 * kvm_arm_reset_debug_ptr - reset the debug ptr to point to the vcpu state
155 * kvm_arm_setup_debug - set up debug related stuff
160 * debug related registers.
162 * Additionally, KVM only traps guest accesses to the debug registers if
167 * debug registers.
178 /* Check if we need to use the debug registers. */ in kvm_arm_setup_debug()
180 /* Save guest debug state */ in kvm_arm_setup_debug()
190 * debug exception and we return to userspace. in kvm_arm_setup_debug()
232 * debug ioctl. The existing DEBUG_DIRTY mechanism ensures in kvm_arm_setup_debug()
253 * The OS Lock blocks debug exceptions in all ELs when it is in kvm_arm_setup_debug()
256 * MDSCR_EL1.MDE. In so doing, we ensure that host debug in kvm_arm_setup_debug()
286 * Restore the guest's debug registers if we were using them. in kvm_arm_clear_debug()
301 * If we were using HW debug we need to restore the in kvm_arm_clear_debug()
302 * debug_ptr to the guest debug state. in kvm_arm_clear_debug()