Skip to contentSkip to conversation

kdb for xen

DISCUSSION Mukesh Rathor 1 participant 3 messages May 3, 2008 – Jun 7, 2008

lore
Share & tools
lore
#0 lore raw

Hi xen folks,

It is my pleasure to announce an internal debugger for the xen hypervisor
(64bit). It's a full fledged debugger that will "halt" the system, so the entire state can be examined. Some examples of commands:

xkdb> cpu all : see one line state of all cpus
xkdb> cpu 7 : switch to cpu 7 (the leaving cpu will pause immed)
xkdb> dd addr 32 : display 32 bytes at address in doublewords

xkdb> dr sp      : display registers including special registers
xkdb> ni         : single step (go over function calls)
xkdb> dom 5      : display dom 5 details

xkdb> vcpu <ptr> : display vcpu details at give "ptr"

Type "h" at the prompt for all commands and usages.

It can be downloaded from:

http://xenbits.xensource.com/ext/kdb.hg

and built by running "make kdb=y" in xen-unstable.hg/xen

FEATURES:
- set breakpoints in hypervisor
- examine/modify memory, registers, special registers, domains, vcpus, etc..
- single step, single step till jump/call, step over call to next instruction after the call.
- examine/modify memory of a PV guest.
- set breakpoints, single step, etc... for a PV guest.
- above functionality for HVM guest if the debugger breaks into a running HVM guest.
- breaking into the debugger will freeze the system, all CPUs will pause, no interrupts are acknowledged in the debugger. (Hence, the wall clock will drift)
- single step will step only that cpu.

Regards,
Mukesh Rathor

#2 lore raw
In reply to Mukesh Rathor

Hi folks,
If you are using kdb, I've updated kdb repo with couple bug fixes (hangs
on SMP), and added "earlykdb" option to break into kdb early during boot. I've tested it out on a large box, and seems to be doing fine. I still can't get hvm_copy* functions to work, but Ben is also helping on that, and I will continue working on it too.....

Please refresh.

Quoted 1 line

http://xenbits.xensource.com/ext/kdb.hg

Thanks
Mukesh