Lines Matching full:debug

3  * KVM guest debug register tests
20 /* For testing data access debug BP */
69 #define CLEAR_DEBUG() memset(&debug, 0, sizeof(debug))
70 #define APPLY_DEBUG() vcpu_set_guest_debug(vm, VCPU_ID, &debug)
81 struct kvm_guest_debug debug; in main() local
109 debug.control = KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_USE_SW_BP; in main()
113 run->debug.arch.exception == BP_VECTOR && in main()
114 run->debug.arch.pc == CAST_TO_RIP(sw_bp), in main()
116 run->exit_reason, run->debug.arch.exception, in main()
117 run->debug.arch.pc, CAST_TO_RIP(sw_bp)); in main()
123 debug.control = KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_USE_HW_BP; in main()
124 debug.arch.debugreg[i] = CAST_TO_RIP(hw_bp); in main()
125 debug.arch.debugreg[7] = 0x400 | (1UL << (2*i+1)); in main()
130 run->debug.arch.exception == DB_VECTOR && in main()
131 run->debug.arch.pc == CAST_TO_RIP(hw_bp) && in main()
132 run->debug.arch.dr6 == target_dr6, in main()
135 i, run->exit_reason, run->debug.arch.exception, in main()
136 run->debug.arch.pc, CAST_TO_RIP(hw_bp), in main()
137 run->debug.arch.dr6, target_dr6); in main()
145 debug.control = KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_USE_HW_BP; in main()
146 debug.arch.debugreg[i] = CAST_TO_RIP(guest_value); in main()
147 debug.arch.debugreg[7] = 0x00000400 | (1UL << (2*i+1)) | in main()
153 run->debug.arch.exception == DB_VECTOR && in main()
154 run->debug.arch.pc == CAST_TO_RIP(write_data) && in main()
155 run->debug.arch.dr6 == target_dr6, in main()
158 i, run->exit_reason, run->debug.arch.exception, in main()
159 run->debug.arch.pc, CAST_TO_RIP(write_data), in main()
160 run->debug.arch.dr6, target_dr6); in main()
174 debug.control = KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_SINGLESTEP | in main()
176 debug.arch.debugreg[7] = 0x00000400; in main()
180 run->debug.arch.exception == DB_VECTOR && in main()
181 run->debug.arch.pc == target_rip && in main()
182 run->debug.arch.dr6 == target_dr6, in main()
185 i, run->exit_reason, run->debug.arch.exception, in main()
186 run->debug.arch.pc, target_rip, run->debug.arch.dr6, in main()
192 debug.control = KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_USE_HW_BP; in main()
193 debug.arch.debugreg[7] = 0x400 | DR7_GD; in main()
198 run->debug.arch.exception == DB_VECTOR && in main()
199 run->debug.arch.pc == CAST_TO_RIP(bd_start) && in main()
200 run->debug.arch.dr6 == target_dr6, in main()
203 run->exit_reason, run->debug.arch.exception, in main()
204 run->debug.arch.pc, target_rip, run->debug.arch.dr6, in main()
207 /* Disable all debug controls, run to the end */ in main()