Lines Matching full:debug

3  * KVM guest debug register tests
17 /* For testing data access debug BP */
54 #define CLEAR_DEBUG() memset(&debug, 0, sizeof(debug))
55 #define APPLY_DEBUG() vcpu_set_guest_debug(vm, VCPU_ID, &debug)
66 struct kvm_guest_debug debug; in main() local
93 debug.control = KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_USE_SW_BP; in main()
97 run->debug.arch.exception == BP_VECTOR && in main()
98 run->debug.arch.pc == CAST_TO_RIP(sw_bp), in main()
100 run->exit_reason, run->debug.arch.exception, in main()
101 run->debug.arch.pc, CAST_TO_RIP(sw_bp)); in main()
107 debug.control = KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_USE_HW_BP; in main()
108 debug.arch.debugreg[i] = CAST_TO_RIP(hw_bp); in main()
109 debug.arch.debugreg[7] = 0x400 | (1UL << (2*i+1)); in main()
114 run->debug.arch.exception == DB_VECTOR && in main()
115 run->debug.arch.pc == CAST_TO_RIP(hw_bp) && in main()
116 run->debug.arch.dr6 == target_dr6, in main()
119 i, run->exit_reason, run->debug.arch.exception, in main()
120 run->debug.arch.pc, CAST_TO_RIP(hw_bp), in main()
121 run->debug.arch.dr6, target_dr6); in main()
129 debug.control = KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_USE_HW_BP; in main()
130 debug.arch.debugreg[i] = CAST_TO_RIP(guest_value); in main()
131 debug.arch.debugreg[7] = 0x00000400 | (1UL << (2*i+1)) | in main()
137 run->debug.arch.exception == DB_VECTOR && in main()
138 run->debug.arch.pc == CAST_TO_RIP(write_data) && in main()
139 run->debug.arch.dr6 == target_dr6, in main()
142 i, run->exit_reason, run->debug.arch.exception, in main()
143 run->debug.arch.pc, CAST_TO_RIP(write_data), in main()
144 run->debug.arch.dr6, target_dr6); in main()
158 debug.control = KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_SINGLESTEP; in main()
159 debug.arch.debugreg[7] = 0x00000400; in main()
163 run->debug.arch.exception == DB_VECTOR && in main()
164 run->debug.arch.pc == target_rip && in main()
165 run->debug.arch.dr6 == target_dr6, in main()
168 i, run->exit_reason, run->debug.arch.exception, in main()
169 run->debug.arch.pc, target_rip, run->debug.arch.dr6, in main()
175 debug.control = KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_USE_HW_BP; in main()
176 debug.arch.debugreg[7] = 0x400 | DR7_GD; in main()
181 run->debug.arch.exception == DB_VECTOR && in main()
182 run->debug.arch.pc == CAST_TO_RIP(bd_start) && in main()
183 run->debug.arch.dr6 == target_dr6, in main()
186 run->exit_reason, run->debug.arch.exception, in main()
187 run->debug.arch.pc, target_rip, run->debug.arch.dr6, in main()
190 /* Disable all debug controls, run to the end */ in main()