1 --- a/kexec/crashdump-xen.c
2 +++ b/kexec/crashdump-xen.c
3 @@ -111,6 +111,7 @@ static int xen_detect_pv_guest(void)
4 * This includes dom0, which is the only PV guest where kexec/kdump works.
5 * HVM guests have to be handled as native hardware.
7 +#if defined(__i386__) || defined(__x86_64__)
11 @@ -121,6 +122,7 @@ int xen_present(void)
17 unsigned long xen_architecture(struct crash_elf_info *elf_info)
19 --- a/kexec/crashdump.h
20 +++ b/kexec/crashdump.h
21 @@ -56,7 +56,15 @@ unsigned long crash_architecture(struct
22 unsigned long phys_to_virt(struct crash_elf_info *elf_info,
25 +#if defined(__i386__) || defined(__x86_64__)
26 int xen_present(void);
28 +static inline int xen_present(void)
34 unsigned long xen_architecture(struct crash_elf_info *elf_info);
35 int xen_get_nr_phys_cpus(void);
36 int xen_get_note(int cpu, uint64_t *addr, uint64_t *len);