Skip to content

Commit

Permalink
Fix for the "help [-D|-n]" option on 32-bit X86 kernels that use the
Browse files Browse the repository at this point in the history
64-bit ELF vmcore format generated by "virsh dump --memory-only".
Without the patch, the QEMUCPUState structures in QEMU notes are not
translated.
(qiaonuohan@cn.fujitsu.com)
  • Loading branch information
Dave Anderson committed Jan 5, 2015
1 parent da66825 commit 6dd0c32
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions netdump.c
Expand Up @@ -2271,10 +2271,14 @@ dump_Elf64_Nhdr(Elf64_Off offset, int store)
}
}

if (BITS32() && (xen_core || (note->n_type == NT_PRSTATUS))) {
if (BITS32() && (xen_core || (note->n_type == NT_PRSTATUS) || qemuinfo)) {
if (nd->ofp && !XEN_CORE_DUMPFILE() && !(pc->flags2 & LIVE_DUMP)) {
if (machine_type("X86") && (note->n_type == NT_PRSTATUS))
display_ELF_note(EM_386, PRSTATUS_NOTE, note, nd->ofp);
if (machine_type("X86")) {
if (note->n_type == NT_PRSTATUS)
display_ELF_note(EM_386, PRSTATUS_NOTE, note, nd->ofp);
else if (qemuinfo)
display_ELF_note(EM_386, QEMU_NOTE, note, nd->ofp);
}
}

iptr = (int *)uptr;
Expand Down

0 comments on commit 6dd0c32

Please sign in to comment.