I'm debugging a kernel and i want to know when the cr3 register is changed. I know how to set a watchpoint on a general purpose register like eax and others.
The problem is, since gdb does not have access to control registers, setting a watchpoint on cr3 does not work.
So, is it possible to set a watchpoint from the qemu monitor? If yes, how?