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/
Home Products Support Community News


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

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 0 of 5] update xenctx to dump pagetables
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Mon, 20 Jun 2011 17:26:56 +0200
Delivery-date: Mon, 20 Jun 2011 08:28:31 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1308583620; l=2568; s=domk; d=aepfle.de; h=To:From:Date:Subject:Content-Transfer-Encoding:MIME-Version: Content-Type:X-RZG-CLASS-ID:X-RZG-AUTH; bh=R2fhP4nuYJbp/vynv0K5KOZm+/M=; b=taEUUw33HLcZ1m0jq57jQwKCOuqNMJ1n7Z1yUomwF8bAoHUH9NF3tCCMYgIwEMnOf5L S1gJx9xG+WFjPxx9dKjs/pPT2TNxXvQf4Sw79Rs39RqSvmw9uP9NvJjXRUyV5zzSTwZEs pplgUicpz+MP/IEH23Ft7G90YYjdgb6SO4E=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.7.5
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