From: "kyle.ma83" Subject: failed in debugging Xen hypervisor with gdb stub of xen Date: Sun, 30 Aug 2009 14:36:00 +0800 Message-ID: <200908301435576257404@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1371382222==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --===============1371382222== Content-Type: multipart/alternative; boundary="=====003_Dragon777685546727_=====" This is a multi-part message in MIME format. --=====003_Dragon777685546727_===== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi,everyone I recently want to debug Xen, and I just follow the xen-3.2/docs/misc/crashdb.txt. I use two machines (one linux host and one xen target)and can get the xen booting message with serial to a remote linux host,I set debug=y in Config.mk and set crash_debug=y in xen/Rules.mk when make install xen and arrange to pass gdb=com1 as a hypervisor command line argument, my grub is as followed: title xen-3.2.0 root (hd0,0) kernel /boot/xen-3.2.0.gz hap com1=115200,8n1 console=com1,vga gdb=com1 sync_console module /boot/vmlinuz-2.6.18.8-xen root=/dev/sda1 ro xencons=ttyS0 module /boot/initrd.img-2.6.18.8-xen savedefault I get the output infomation of Xen and Domain0, but the crashdb.txt says give the escape character (^A by default) three times to talk to Xen (Xen prints `(XEN) *** Serial input -> Xen...'), so I follow the instrucions. When I press ctrl-A three times as soon as I see: (XEN) ********************************************** (XEN) ******* WARNING: CONSOLE OUTPUT IS SYNCHRONOUS (XEN) ******* This option is intended to aid debugging of Xen by ensuring (XEN) ******* that all output is synchronously delivered on the serial line. (XEN) ******* However it can introduce SIGNIFICANT latencies and affect (XEN) ******* timekeeping. It is NOT recommended for production use! (XEN) ********************************************** (XEN) 3... 2... 1... (XEN) Xen is relinquishing VGA console. (XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to Xen) (XEN) unpasue dom0 (XEN) Freed 92kB init memory. but nothing happened, there is no infomation like "waiting for GDB attached...." or something else, and at last get the "login as: " info , did I miss something or what should I do? Could anyone give some more details and suggestions about it or how to debug Xen ? I 'd appreciated it much. Thanks a lot. 2009-08-30 Kyle Ma --=====003_Dragon777685546727_===== Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: 7bit
Hi,everyone
 
I recently want to debug Xen, and I just follow the xen-3.2/docs/misc/crashdb.txt. I use two machines (one linux host and one xen target)and can get the
 
xen booting message with serial to a remote linux host,I set debug=y in Config.mk and set crash_debug=y in xen/Rules.mk when make install xen and
 
arrange to pass gdb=com1 as a hypervisor command line argument, my grub is as followed:
 
title           xen-3.2.0
root            (hd0,0)
kernel          /boot/xen-3.2.0.gz hap com1=115200,8n1 console=com1,vga gdb=com1 sync_console
module          /boot/vmlinuz-2.6.18.8-xen root=/dev/sda1 ro xencons=ttyS0
module          /boot/initrd.img-2.6.18.8-xen
savedefault
 
I get the output infomation of Xen and Domain0, but the crashdb.txt says
 
give the escape character (^A by default) three times to talk to Xen (Xen prints `(XEN) *** Serial input -> Xen...'),  so I follow the instrucions. When I
 
press ctrl-A three times as soon as I see:
 
(XEN) **********************************************
(XEN) ******* WARNING: CONSOLE OUTPUT IS SYNCHRONOUS
(XEN) ******* This option is intended to aid debugging of Xen by ensuring
(XEN) ******* that all output is synchronously delivered on the serial line.
(XEN) ******* However it can introduce SIGNIFICANT latencies and affect
(XEN) ******* timekeeping. It is NOT recommended for production use!
(XEN) **********************************************
(XEN) 3... 2... 1... 
(XEN) Xen is relinquishing VGA console.
(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to Xen)
(XEN) unpasue dom0
(XEN) Freed 92kB init memory.
 
but nothing happened, there is no infomation like "waiting for GDB attached...."  or something else,
 
 and at last get the "login as: " info , did I miss something or what should I do?
 
Could anyone give some more details and suggestions about it or how to debug Xen ?  I 'd appreciated it much.
 
Thanks a lot.
2009-08-30

Kyle Ma
--=====003_Dragon777685546727_=====-- --===============1371382222== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1371382222==--