WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] dom0cut script patches

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] dom0cut script patches
From: "Kazuo Moriwaka" <moriwaka@xxxxxxxxxxxxx>
Date: Mon, 5 Jun 2006 21:38:03 +0900
Cc: Ian Pratt <m+Ian.Pratt@xxxxxxxxxxxx>, Kazuo Moriwaka <moriwaka@xxxxxxxxxxxxx>, Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>, Isaku Yamahata <yamahata@xxxxxxxxxxxxx>, Magnus Damm <magnus@xxxxxxxxxxxxx>, Horms <horms@xxxxxxxxxxxx>, Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Delivery-date: Mon, 05 Jun 2006 05:38:27 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:mime-version:content-type:x-google-sender-auth; b=AFYD1I6POiAJch/o4ZT3VtX7XJZxcFyLzo4uXA+4t/hnNNo0t1Oj8sVBEcONYw7UcaFHhuG7wbJHlpUTogaJtauhSU409rlQWKRTr4Lz2FVw2hTBx0haj+a/cXhKm/vscfN9HMP6QxTYQhEFrvpxkBrQYlykCfiEPPYHrmd+wxY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

dom0cut script now support to extract xen hypervisor image
from kdump's whole-machine dump.
It extract xen image with idle domain's pagetable.
Now it copies register info from kdump-dump header.
If these behaviors are not good, please tell me.

I'll attach the patch, and you can get tarball from following:
http://people.valinux.co.jp/~moriwaka/dumpread/dumpread-20060605.tar.gz

sample session is following:
------------------------------------------------------------------------
$ ./dom0cut_x86_32.py -telf -f --target=xen -dvmcore -oxencore
-xxen-syms -vvmlinux
vmcore doesn't have mfn 0xa0, the page is filled with '\0'
vmcore doesn't have mfn 0xa1, the page is filled with '\0'
...
vmcore doesn't have mfn 0xfec01, the page is filled with '\0'
vmcore doesn't have mfn 0xfee00, the page is filled with '\0'
$ gdb xen-syms xencore
GNU gdb 6.2.1
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...Using host
libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".

#0  0xc011f586 in ?? ()
(gdb) p/x idle_vcpu
$1 = {0xff1d7080, 0xffbf8080, 0x0 <repeats 30 times>}
(gdb) p/x idle_vcpu[0]
$2 = 0xff1d7080
(gdb) p/x *idle_vcpu[0]
$3 = {vcpu_id = 0x0, processor = 0x0, vcpu_info = 0x0, domain = 0xffbfc080,
 next_in_list = 0xffbf8080, timer = {expires = 0x0, cpu = 0x0,
   function = 0xff10f840, data = 0xff1d7080, heap_offset = 0x0,
   killed = 0x0}, sleep_tick = 0x9ef, poll_timer = {expires = 0x0,
...
------------------------------------------------------------------------

regards,
--
Kazuo Moriwaka

Attachment: dumpread.patch.gz
Description: GNU Zip compressed data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>