Skip to contentSkip to conversation

dom0cut script patches

DISCUSSION Kazuo Moriwaka 2 participants 2 messages Jun 5, 2006 – Jun 9, 2006

lore
Share & tools
lore
#0 lore raw

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,

Signature · 1 line
Kazuo Moriwaka

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

#1 lore raw

Hi,

I fixed valid-mfn checking bug, and make some cleanup. I attach a patch.
You can get tarballs at there:
http://people.valinux.co.jp/~moriwaka/dumpread/dumpread-20060609.tar.gz
http://people.valinux.co.jp/~moriwaka/dumpread/libelf-0.1.0.tar.gz

Quoted 49 lines · Kazuo Moriwaka

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

Signature · 1 line
Kazuo Moriwaka

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