Tuesday, January 27, 2009

debug Xen

1. debug dom0 and dom u
http://lists.xensource.com/archives/html/xen-devel/2008-10/msg00195.html

2. build option :

Xen provides a number of build-time options which should be set as environment variables or passed on make's command-line.

verbose=y
Enable debugging messages when Xen detects an unexpected condition. Also enables console output from all domains.
debug=y
Enable debug assertions. Implies verbose=y. (Primarily useful for tracing bugs in Xen).
debugger=y
Enable the in-Xen debugger. This can be used to debug Xen, guest OSes, and applications.
perfc=y
Enable performance counters for significant events within Xen. The counts can be reset or displayed on Xen's console via console control keys.
3. use serial cable
http://en.opensuse.org/How_to_Capture_Xen_Hypervisor_and_Kernel_Messages_using_a_Serial_Cable

4. KDB
http://lists.xensource.com/archives/html/xen-devel/2008-11/msg00165.html

No comments: