[PATCH 0/3] makedumpfile: Xen4: exclude domU pages for Xen4

Norbert Trapp Norbert.Trapp at ts.fujitsu.com
Fri Jun 22 11:18:05 EDT 2012

Saving just the dom0 and Xen pages is a good idea because usually
the crash can be analysed in dom0 and saving just the Xen and dom0 pages
allows the machine to restart quickly.

makedumpfile needs to be modified to exclude domU pages when using Xen4
since the Xen implementation has changed. The Xen version can be determined
in the kcore file and then either Xen3 or Xen4 functions are used. The other
modifications are based on the goal of quickly finding the dom0 and Xen pages.

The domU page exclusion for Xen4 is implemented so far just for x86_64.

The kvtop_xen_x86_64 modification for a faster method to run through the page
table	(last_p.._read)	was seen in the crash utility source code.

 arch/x86_64.c  |  244 ++++++++++++++++++++++++++++----------
 elf_info.c     |    2 +
 makedumpfile.c |  362 ++++++++++++++++++++++++++++++++++++++++++++++++++++----
 makedumpfile.h |   79 +++++++++++--
 4 files changed, 591 insertions(+), 96 deletions(-)

With kind regards

Norbert Trapp

Fujitsu Technology Solutions GmbH
Domagkstrasse 28, D-80807 Muenchen, Germany
E-mail: Norbert.Trapp at xxxxxxxxxxxxxx
Web: ts.fujitsu.com
Company details: ts.fujitsu.com/imprint
Please be advised that neither Fujitsu, its affiliates, its employees or agents accept liability for any errors,
omissions or damages caused by delays of receipt or by any virus infection in this message or its attachments,
or which may otherwise arise as a result of this e-mail transmission.

More information about the kexec mailing list