From: Olaf Hering <olaf@aepfle.de>
To: xen-devel@lists.xensource.com
Subject: [PATCH 0 of 5] update xenctx to dump pagetables
Date: Mon, 20 Jun 2011 17:26:56 +0200 [thread overview]
Message-ID: <patchbomb.1308583616@probook.site> (raw)
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 mapped.
Any help with getting that output fixed for at least a a 64bit PV guest is much
appreciated.
Olaf
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 7fffcc846000
0 l1e 47 80000000bd57c167: X 0 bd57c000 0 G p s D A c t U W P 7fffcc847000
0 l1e 48 80000000bd5af165: X 0 bd5af000 0 G p s D A c t U w P 7fffcc848000
0 l1e db 00000000a1972125: x 0 a1972000 0 G p s d A c t U w P 7fffcc8db000
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 813fac7eb000
0 l1e 1ec 00000000a154f067: x 0 a154f000 0 g p s D A c t U W P 813fac7ec000
...
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
...
Olaf
--
[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(-)
next reply other threads:[~2011-06-20 15:26 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-20 15:26 Olaf Hering [this message]
2011-06-20 15:26 ` [PATCH 1 of 5] xenctx: recognize also -S option for --stack-trace Olaf Hering
2011-06-20 15:26 ` [PATCH 2 of 5] xenctx: move all globals into struct xenctx Olaf Hering
2011-06-21 12:36 ` Ian Jackson
2011-06-21 15:27 ` Olaf Hering
2011-06-21 15:31 ` Ian Jackson
2011-06-20 15:26 ` [PATCH 3 of 5] xenctx: move xc_* access out of dump_ctx Olaf Hering
2011-06-20 15:27 ` [PATCH 4 of 5] xenctx: add option -C to dump context for all vcpus Olaf Hering
2011-06-20 15:27 ` [PATCH 5 of 5] xenctx: dump pagetable Olaf Hering
2011-06-21 12:33 ` Ian Jackson
2011-06-21 15:25 ` Olaf Hering
2011-06-20 17:33 ` [PATCH 0 of 5] update xenctx to dump pagetables Tim Deegan
2011-06-20 17:51 ` Olaf Hering
2011-06-20 21:56 ` Konrad Rzeszutek Wilk
2011-06-21 9:59 ` Tim Deegan
2011-06-21 10:31 ` Jan Beulich
2011-06-22 13:50 ` Olaf Hering
2011-06-22 14:34 ` Jan Beulich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=patchbomb.1308583616@probook.site \
--to=olaf@aepfle.de \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.