diff options
-rw-r--r-- | kexec/arch/x86_64/crashdump-x86_64.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kexec/arch/x86_64/crashdump-x86_64.c b/kexec/arch/x86_64/crashdump-x86_64.c index b1a1339..14b70ea 100644 --- a/kexec/arch/x86_64/crashdump-x86_64.c +++ b/kexec/arch/x86_64/crashdump-x86_64.c @@ -58,6 +58,9 @@ static int get_kernel_paddr(struct kexec_info *info) { uint64_t start; + if (xen_present()) /* Kernel not entity mapped under Xen */ + return 0; + if (parse_iomem_single("Kernel code\n", &start, NULL) == 0) { info->kern_paddr_start = start; #ifdef DEBUG @@ -88,6 +91,9 @@ static int get_kernel_vaddr_and_size(struct kexec_info *info) unsigned long size; uint32_t elf_flags = 0; + if (xen_present()) /* Kernel not entity mapped under Xen */ + return 0; + align = getpagesize(); size = KCORE_ELF_HEADERS_SIZE; buf = slurp_file_len(kcore, size); |