[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] ptrace_core: Handle FV cross-bitness.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1232106411 0
# Node ID 71e0b8adeb1f71d0055fabba0e97a4bdbf594c72
# Parent  40d9d9ff435afee74431102e4e1ac6c7542649bd
ptrace_core: Handle FV cross-bitness.

Signed-off-by: Bruce Rogers <brogers@xxxxxxxxxx>
---
 tools/libxc/xc_ptrace_core.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

diff -r 40d9d9ff435a -r 71e0b8adeb1f tools/libxc/xc_ptrace_core.c
--- a/tools/libxc/xc_ptrace_core.c      Thu Jan 15 12:54:31 2009 +0000
+++ b/tools/libxc/xc_ptrace_core.c      Fri Jan 16 11:46:51 2009 +0000
@@ -540,7 +540,9 @@ xc_waitdomain_core_elf(
                              XEN_ELFNOTE_DUMPCORE_XEN_VERSION,
                              (void**)&xen_version) < 0)
         goto out;
-    if (xen_version->xen_version.pagesize != PAGE_SIZE)
+    /* shifted case covers 32 bit FV guest core file created on 64 bit Dom0 */
+    if (xen_version->xen_version.pagesize != PAGE_SIZE &&
+        (xen_version->xen_version.pagesize >> 32) != PAGE_SIZE)
         goto out;
 
     /* .note.Xen: format_version */

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.