aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/kexec.c
diff options
context:
space:
mode:
authorKeir Fraser <keir@xen.org>2011-01-06 19:02:36 +0000
committerKeir Fraser <keir@xen.org>2011-01-06 19:02:36 +0000
commit84be7c5af430f29af3db1304c763281579b04d4f (patch)
tree4e56542f795a6f5859d5b3c4082bb4c6be4b6fae /xen/common/kexec.c
parent5f96182f5ce51a68f7fda4e8688acf2c8f47c7f4 (diff)
downloadxen-84be7c5af430f29af3db1304c763281579b04d4f.tar.gz
xen-84be7c5af430f29af3db1304c763281579b04d4f.tar.bz2
xen-84be7c5af430f29af3db1304c763281579b04d4f.zip
kexec: correct _domain offset info in elf-notes
The hypervisor writes some data structure infos into the elf note section of the vmcore to enable interpretation of the xen structures by kexec/kdump. The info of the offset of _domain in page_info was just wrong on non-ia64 systems. Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
Diffstat (limited to 'xen/common/kexec.c')
-rw-r--r--xen/common/kexec.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/xen/common/kexec.c b/xen/common/kexec.c
index 989907b98d..f889e5bb22 100644
--- a/xen/common/kexec.c
+++ b/xen/common/kexec.c
@@ -465,7 +465,11 @@ static void crash_save_vmcoreinfo(void)
VMCOREINFO_STRUCT_SIZE(domain);
VMCOREINFO_OFFSET(page_info, count_info);
- VMCOREINFO_OFFSET_ALIAS(page_info, u, _domain);
+#ifdef __ia64__
+ VMCOREINFO_OFFSET_SUB(page_info, u.inuse, _domain);
+#else
+ VMCOREINFO_OFFSET_SUB(page_info, v.inuse, _domain);
+#endif
VMCOREINFO_OFFSET(domain, domain_id);
VMCOREINFO_OFFSET(domain, next_in_list);