Skip to contentSkip to conversation

Debugging XEN Hypervisor

DISCUSSION Pankaj Parakh 3 participants 3 messages Sep 24, 2009 – Oct 8, 2009

lore
Share & tools
lore
#1 lore raw

Hello Pankaj,

There are 2 debuggers available on Xen, gdb and kdb. Both need 2 computers with serial port connection between them.

Gdb - rich commands

http://lists.xensource.com/archives/html/xen-devel/2004-07/msg00338.html

http://lists.xensource.com/archives/html/xen-devel/2009-01/msg00885.html

http://lists.xensource.com/archives/html/xen-devel/2007-12/msg00678.html

http://www.filewatcher.com/p/xen_2.0.6.orig.tar.gz.2456215/xen-2.0/docs/misc
/XenDebugger-HOWTO.html

http://lists.xensource.com/archives/html/xen-devel/2009-08/msg00325.html

Kdb - simple

http://www.xen.org/files/xensummitboston08/Mukesh%20xendbg-present.pdf

-caz

_____

From: [email protected] [mailto:[email protected]] On Behalf Of Pankaj Parakh
Sent: Wednesday, September 23, 2009 6:26 PM
To: [email protected]
Subject: [Xen-devel] Debugging XEN Hypervisor

Hello All,

I want to know which debugger I can use to debug Hypervisor, I am trying to try a scheduler in XEN. Where can I find tutorial/doc to use any debugger.

Signature · 1 line
Pankaj Parakh

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw
In reply to Pankaj Parakh
Quoted 6 lines · On Thu, 24 Sep 2009 06:56:29 +0530 Pankaj Parakh <[email protected]>…

Hello All,

I want to know which debugger I can use to debug Hypervisor, I am trying to try a scheduler in XEN. Where can I find tutorial/doc to use any debugger.

To debug hypervisor/dom0, you could use kdb. See :

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

I refreshed it few weeks ago. You could always refresh to latest by just applying the diff between current kdb vesion and lastest c/s in unstable. Start with kdb/README. You'd need to setup serial console. It will let you set breakpoints, single step, look at virtual/machine memory, set watchpoint, do p2m and m2p translations, look at page structs, domain structs, vcpu structs, VMCB/VMCS, etc.... I'm always adding new features/commands to it.

BTW, if anyone wants to debug guest VM, then gdbsx can be used. Same tree.

I should be submitting patch soon.

thanks
Mukesh