]> xenbits.xen.org Git - xenclient/kernel.git/commit
xen: fix kdump kernel crash on Xen3.2 qparent
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 2 Oct 2008 10:29:02 +0000 (11:29 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 2 Oct 2008 10:29:02 +0000 (11:29 +0100)
commit9108be5c4afdbcfdad3a829babc6f5db983f1c00
treead27082ec8d74cd6f340b3ff7887cba539dada21
parent41710374e01877ca31588f9c5418bff89ba3734d
xen: fix kdump kernel crash on Xen3.2

The kernel is supposed to create some "Crash note" resources (children
of the "Hypervisor code and data" resource in /proc/iomem).  However,
when running on Xen 3.2, xen_machine_kexec_setup_resources()
encounters an error and returns prior to doing this.

The error occurs when it calls the "kexec_get_range" hypercall to
determine the location of the "vmcoreinfo".  This was only implemented
in Xen 3.3.

This patch makes the kernel handle this error gracefully by simply not
creating the sysfs file "hypervisor/vmcoreinfo" if the hypervisor is
unable to provide the info - rather than bailing out of
xen_machine_kexec_setup_resources() early.

Signed-off-by: Alex Zeffertt <alex.zeffertt@eu.citrix.com>
drivers/xen/core/machine_kexec.c
drivers/xen/core/xen_sysfs.c
include/xen/interface/kexec.h