Displaying 2 results from an estimated 2 matches for "vmcoreinfo_addr_xen".
2012 Jul 05
10
[PATCH] kexec-tools: Read always one vmcoreinfo file
.../kexec/crashdump-elf.c b/kexec/crashdump-elf.c
index 8d82db9..ec66548 100644
--- a/kexec/crashdump-elf.c
+++ b/kexec/crashdump-elf.c
@@ -40,8 +40,6 @@ int FUNC(struct kexec_info *info,
uint64_t notes_addr, notes_len;
uint64_t vmcoreinfo_addr, vmcoreinfo_len;
int has_vmcoreinfo = 0;
- uint64_t vmcoreinfo_addr_xen, vmcoreinfo_len_xen;
- int has_vmcoreinfo_xen = 0;
int (*get_note_info)(int cpu, uint64_t *addr, uint64_t *len);
if (xen_present())
@@ -53,16 +51,14 @@ int FUNC(struct kexec_info *info,
return -1;
}
- if (get_kernel_vmcoreinfo(&vmcoreinfo_addr, &vmcoreinfo_len) == 0) {
- has_v...
2008 Mar 31
3
[PATCH 3/4] extract vmcoreinfo from /proc/vmcore for Xen
...size. */
#define MAX_NOTE_BYTES 1024
--- kexec/crashdump-elf.c.org 2008-03-25 11:57:09.000000000 +0900
+++ kexec/crashdump-elf.c 2008-03-26 13:13:52.000000000 +0900
@@ -36,6 +36,8 @@
uint64_t notes_addr, notes_len;
uint64_t vmcoreinfo_addr, vmcoreinfo_len;
int has_vmcoreinfo = 0;
+ uint64_t vmcoreinfo_addr_xen, vmcoreinfo_len_xen;
+ int has_vmcoreinfo_xen = 0;
int (*get_note_info)(int cpu, uint64_t *addr, uint64_t *len);
if (xen_present())
@@ -51,7 +53,12 @@
has_vmcoreinfo = 1;
}
- sz = sizeof(EHDR) + (nr_cpus + has_vmcoreinfo) * sizeof(PHDR) +
+ if (xen_present() &&
+ get_xen_vm...