I'm trying to learn/test x86-64 privileged instructions & memory protection / management (which causes #GP exceptions in a user mode code.) At the moment I'm re-using a template device driver that I installed in a VM in a Win7 x64 client OS. After that I initiate remote kernel debugging into that VM via WinDbg, break into my driver and then modify the code I need on the fly by using x86-64 opcodes. I then run my tests, and break to see the result. This often also results in a BSOD and later rinse-and-repeat process.
As you can imagine my made up method is quite inconvenient.
So I was wondering if there's an easier way to do these tests?