Itsuro ODA wrote:
Hi Dave,

"crash xen-syms vmcore" works fine. Thank you !

BTW,
I think xendumps of fully-virtualized x86/x86_64 (also ia64) kernel
have a magic number XC_CORE_MAGIC_HVM(0xF00FEBEE) which is defferent
from para-virtualized. Please check.

I tried a xendump of fully-virtualized ia64 kernel
with change magic number check as follows.
---
xendump.h
+#define XC_CORE_MAGIC_HVM  0xF00FEBEE

xendump.c
-        if (xcp->xch_magic != XC_CORE_MAGIC)
+        if (xcp->xch_magic != XC_CORE_MAGIC && xcp->xch_magic != XC_CORE_MAGIC_HVM)
---
It works well execpt bt problem same as para-virtualized one.

Thanks.
--
Itsuro ODA <oda@valinux.co.jp>

Hi Oda-san,

Ah, OK -- we (Red Hat) are still using an older version of the
xenctrl library from (3.0.3), and it uses the old XC_CORE_MAGIC.

So I didn't see any difference between para- and fully-virtualized
magic numbers; I would guess that the difference is a change in
the library as opposed to para- vs fully-virtualized xendumps?

Here's my fully-virtualized x86_64 dump header:

crash> help -n
...
      xc_core:
                   header:
                xch_magic: f00febed (XC_CORE_MAGIC)
             xch_nr_vcpus: 1
             xch_nr_pages: 68762 (0x10c9a)
          xch_ctxt_offset: 24 (0x18)
         xch_index_offset: 5192 (0x1448)
         xch_pages_offset: 557056 (0x88000)
               p2m_frames: 0
     p2m_frame_index_list:
crash>

My FV x86 from an x86 host:

crash> help -n
...
      xc_core:
                   header:
                xch_magic: f00febed (XC_CORE_MAGIC)
             xch_nr_vcpus: 1
             xch_nr_pages: 131372 (0x2012c)
          xch_ctxt_offset: 24 (0x18)
         xch_index_offset: 2824 (0xb08)
         xch_pages_offset: 528384 (0x81000)
               p2m_frames: 0
     p2m_frame_index_list:
crash>

and my FV x86 from an x86_64 host:

crash> help -n
...
     xc_core:
                   header:
                xch_magic: f00febed (XC_CORE_MAGIC)
             xch_nr_vcpus: 1
             xch_nr_pages: 131372 (0x2012c)
          xch_ctxt_offset: 24 (0x18)
         xch_index_offset: 5192 (0x1448)
         xch_pages_offset: 1056768 (0x102000)
               p2m_frames: 0
     p2m_frame_index_list:
crash>

Anyway, I'm happy that everything still works with the new
magic number -- and whatever else might have changed with it.

Also, I appreciate your verification that crash works with
ia64 fully-virtualized xendumps (with your magic number fix).

I'll update the crash package to support the new magic value.

Thanks again,
  Dave