Qemu + gdb

Hi, I got:

host machine: RedHat (RHEL6)
virtual machine: RedHat (RHEL6)

I run (on host machine):
qemu-system-x86_64 ...... -S -s

after that i run (on host machine):

gdb
target remote localhost:1234
set architecture i386:x86-64

and then i can use (on host machine) 'ctrl + c' to stop virtual machine and 'cont' to continue virtual machine.

Now, I created linux kernel module (in C) with:
asm("aa: jmp aa");

I insert that module to virtual machine. After that whole system stops (on asm("aa: jmp aa")). I would like to step debug after my module hangs.

Do you know the way how to do that?
Maybe how to modify next instructions?

Are you doing this as root because adding a kernel module is a privileged instruction.

I am root on host machine as well as on guest virtual machine.