[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 0 of 5] update xenctx to dump pagetables

  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Olaf Hering <olaf@xxxxxxxxx>
  • Date: Mon, 20 Jun 2011 17:26:56 +0200
  • Delivery-date: Mon, 20 Jun 2011 08:28:31 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

The following series adds an option -P to xenctx to dump the guests pagetable.
Another option to work an all vcpus is also added.

The reason for such a change is that on some systems a live migration from a
system with a small amount of memory to a system with a huge amount of memory
(>100GB) fails. DomU crashes on the target.
To get some debug data I'm trying to dump the pagetable, just to verify that
nothing bad to them happend during transit.

The code to walk the pagetables is/was based on
xc_translate_foreign_address(), but I still think I have some major bugs in
there (the last patch). I cant figure out why some l3/l2/l1 entries can not be 
Any help with getting that output fixed for at least a a 64bit PV guest is much


part of xenctx output:
  0 l4e  ff 00000000a1240067:  x   0     a1240000 0 0 1 A c t u W P
  0 l3e 1ff 00000000bc133067:  x   0     bc133000 0 0 s 1 A c t U W P
  0 l2e  64 00000000a1471067:  x   0     a1471000 0 0 s 1 A c t U W P
  0 l1e  46 80000000bd56f167:  X   0     bd56f000 0 G p s D A c t U W P     
  0 l1e  47 80000000bd57c167:  X   0     bd57c000 0 G p s D A c t U W P     
  0 l1e  48 80000000bd5af165:  X   0     bd5af000 0 G p s D A c t U w P     
  0 l1e  db 00000000a1972125:  x   0     a1972000 0 G p s d A c t U w P     
  0 l4e 100 000000013fff8067:  x   0    13fff8000 0 0 1 A c t u W P
xc_map_foreign_range l3: Invalid argument
  0 l4e 101 000000013fff0063:  x   0    13fff0000 0 0 1 A c t u W P
xc_map_foreign_range l3: Invalid argument
  0 l4e 102 00000000bc5b0063:  x   0     bc5b0000 0 0 1 A c t u W P
  0 l3e  fe 00000000a7ed2067:  x   0     a7ed2000 0 0 s 1 A c t U W P
  0 l2e 163 00000000a154a067:  x   0     a154a000 0 0 s 1 A c t U W P
  0 l1e 1eb 00000000bc1a7067:  x   0     bc1a7000 0 g p s D A c t U W P     
  0 l1e 1ec 00000000a154f067:  x   0     a154f000 0 g p s D A c t U W P     

in dmesg:
(XEN) mm.c:880:d0 Error getting mfn 13fff8 (pfn 5555555555555555) from L1 entry 
800000013fff8625 for l1e_owner=0, pg_owner=19
(XEN) mm.c:880:d0 Error getting mfn 13fff0 (pfn 5555555555555555) from L1 entry 
800000013fff0625 for l1e_owner=0, pg_owner=19



[PATCH 1/5] xenctx: recognize also -S option for --stack-trace
[PATCH 2/5] xenctx: move all globals into struct xenctx
[PATCH 3/5] xenctx: move xc_* access out of dump_ctx
[PATCH 4/5] xenctx: add option -C to dump context for all vcpus
[PATCH 5/5] xenctx: dump pagetable

 tools/xentrace/xenctx.c |  405 ++++++++++++++++++++++++++++++++++++++----------
 1 file changed, 329 insertions(+), 76 deletions(-)

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.