]> xenbits.xensource.com Git - legacy/linux-2.6.18-xen.git/commitdiff
xen: fix missing Crash note in /proc/iomem
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 13 Jul 2009 10:55:13 +0000 (11:55 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 13 Jul 2009 10:55:13 +0000 (11:55 +0100)
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@valinux.co.jp>
drivers/xen/core/machine_kexec.c

index b42fe05d83ce401eb66048660185e77aabeb02f5..e60b6295901fd625d03a50d525a77e0105455cf6 100644 (file)
@@ -144,7 +144,15 @@ void __init xen_machine_kexec_setup_resources(void)
 
 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);
 }