|
@@ -49,6 +49,9 @@
|
|
|
#include <linux/memblock.h>
|
|
|
#include <linux/seq_file.h>
|
|
|
#include <linux/crash_dump.h>
|
|
|
+#ifdef CONFIG_KEXEC_CORE
|
|
|
+#include <linux/kexec.h>
|
|
|
+#endif
|
|
|
|
|
|
#include <trace/events/xen.h>
|
|
|
|
|
@@ -2715,3 +2718,13 @@ void xen_destroy_contiguous_region(phys_addr_t pstart, unsigned int order)
|
|
|
spin_unlock_irqrestore(&xen_reservation_lock, flags);
|
|
|
}
|
|
|
EXPORT_SYMBOL_GPL(xen_destroy_contiguous_region);
|
|
|
+
|
|
|
+#ifdef CONFIG_KEXEC_CORE
|
|
|
+phys_addr_t paddr_vmcoreinfo_note(void)
|
|
|
+{
|
|
|
+ if (xen_pv_domain())
|
|
|
+ return virt_to_machine(&vmcoreinfo_note).maddr;
|
|
|
+ else
|
|
|
+ return __pa_symbol(&vmcoreinfo_note);
|
|
|
+}
|
|
|
+#endif /* CONFIG_KEXEC_CORE */
|