[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [linux-2.6.18-xen] xen: fix missing Crash note in /proc/iomem



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1247482513 -3600
# Node ID b521aaf8895ffa02640302abca968d5605d45450
# Parent  199c5c9a5a5edef596942cffa58fe40e653061a0
xen: fix missing Crash note in /proc/iomem

Missing "Crash note" in /proc/iomem (dom 0) happens on the Xen 3.4.*.
This causes a crash dump cannot be analyzed normally.

Signed-off-by: Itsuro Oda <oda@xxxxxxxxxxxxx>
---
 drivers/xen/core/machine_kexec.c |    8 ++++++++
 1 files changed, 8 insertions(+)

diff -r 199c5c9a5a5e -r b521aaf8895f drivers/xen/core/machine_kexec.c
--- a/drivers/xen/core/machine_kexec.c  Fri Jul 10 11:01:34 2009 +0100
+++ b/drivers/xen/core/machine_kexec.c  Mon Jul 13 11:55:13 2009 +0100
@@ -144,7 +144,15 @@ void __init xen_machine_kexec_setup_reso
 
 void __init xen_machine_kexec_register_resources(struct resource *res)
 {
+       int k;
+       struct resource *r;
+
        request_resource(res, &xen_hypervisor_res);
+       for (k = 0; k < xen_max_nr_phys_cpus; k++) {
+               r = xen_phys_cpus + k;
+               if (r->parent == NULL) /* out of xen_hypervisor_res range */
+                       request_resource(res, r);
+       } 
        machine_kexec_register_resources(res);
 }
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.