WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Xen

xen-devel

[Top] [All Lists]

[Xen-devel] [PATCH] fix missing Crash note in /proc/iomem

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] fix missing Crash note in /proc/iomem
From: Itsuro ODA <oda@xxxxxxxxxxxxx>
Date: 2009年7月13日 13:01:41 +0900
Cc: kexec@xxxxxxxxxxxxxxxxxxx
Delivery-date: 2009年7月12日 21:02:04 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,
Missing "Crash note" in /proc/iomem (dom 0) happens on the Xen 3.4.*.
This causes a crash dump cannot be analyzed normally.
This patch fixes this problem.
This patch is for linux-2.6.18-xen.hg.
The range of "Crash note" is within the "Hypervisor code and data" 
on the Xen 3.3.* and before. The code assumed this.
It is not true for the Xen 3.4.
== example: before patch: one of two "Crash note" is missing
# cat /proc/iomem 
...
00100000-c779ffff : System RAM
 02000000-09ffffff : Crash kernel
 c7300000-c74aa35f : Hypervisor code and data
 c7456080-c7456213 : Crash note
c77a0000-c77adfff : ACPI Tables
...
== example: after patch: two "Crash note" are showed normally
# cat /proc/iomem 
...
00100000-c779ffff : System RAM
 02000000-09ffffff : Crash kernel
 c7300000-c74aa35f : Hypervisor code and data
 c7456080-c7456213 : Crash note
 c7791c00-c7791df3 : Crash note
c77a0000-c77adfff : ACPI Tables
...
This problem is occured on the x86_64 only. This patch has no bad effect for
other architectures and is backword compatible.
Please apply this patch to the newer dom-0 kernel too.
Thanks.
Itsuro Oda
---
Signed-off-by: Itsuro Oda <oda@xxxxxxxxxxxxx>
diff -r b086278a4406 drivers/xen/core/machine_kexec.c
--- a/drivers/xen/core/machine_kexec.c Mon Jun 29 10:57:46 2009 +0100
+++ b/drivers/xen/core/machine_kexec.c Fri Jul 10 16:57:34 2009 +0900
@@ -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);
 }
-- 
Itsuro ODA <oda@xxxxxxxxxxxxx>
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] fix missing Crash note in /proc/iomem, Itsuro ODA <=
Previous by Date: [Xen-devel] Kemari repository is now open at xenbits , Yoshiaki Tamura
Next by Date: [Xen-devel] [PATCH 2/3] add IRQF_NO_SUSPEND for 'bind_ipi_to_irqhandler' , Guanqun Lu
Previous by Thread: [Xen-devel] Kemari repository is now open at xenbits , Yoshiaki Tamura
Next by Thread: [Xen-devel] [PATCH 1/3] add flag IRQF_NO_SUSPEND in 'struct irqaction' , Guanqun Lu
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /