# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1259310676 0
# Node ID 1d30a3d836ed8e2a108f9b48fb18142d589bfbc9
# Parent e4697f0154161026dd1caecf33b402b249b57d5e
libxc: Fix 32-vs-64 bitness issue in saving vcpu contexts in core dump
Signed-off-by: Mukesh Rathor <mukesh.rathor@xxxxxxxxxx>
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
xen-unstable changeset: 20503:338a7b35923f
xen-unstable date: Thu Nov 26 11:00:15 2009 +0000
---
tools/libxc/xc_core.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff -r e4697f015416 -r 1d30a3d836ed tools/libxc/xc_core.c
--- a/tools/libxc/xc_core.c Fri Nov 27 08:30:51 2009 +0000
+++ b/tools/libxc/xc_core.c Fri Nov 27 08:31:16 2009 +0000
@@ -621,10 +621,10 @@ xc_domain_dumpcore_via_callback(int xc_h
PERROR("Could not get section header for .xen_prstatus");
goto out;
}
- filesz = sizeof(ctxt[0].c) * nr_vcpus;
+ filesz = sizeof(*ctxt) * nr_vcpus;
sts = xc_core_shdr_set(shdr, strtab, XEN_DUMPCORE_SEC_PRSTATUS,
SHT_PROGBITS, offset, filesz,
- __alignof__(ctxt[0].c), sizeof(ctxt[0].c));
+ __alignof__(*ctxt), sizeof(*ctxt));
if ( sts != 0 )
goto out;
offset += filesz;
@@ -748,7 +748,7 @@ xc_domain_dumpcore_via_callback(int xc_h
goto out;
/* prstatus: .xen_prstatus */
- sts = dump_rtn(args, (char *)&ctxt[0].c, sizeof(ctxt[0].c) * nr_vcpus);
+ sts = dump_rtn(args, (char *)ctxt, sizeof(*ctxt) * nr_vcpus);
if ( sts != 0 )
goto out;
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|