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 
 
Home Products Support Community News
 
   
 

xen-ppc-devel

Re: [XenPPC] crash after sequence of create/destroy

To: Dilma DaSilva <dilma@xxxxxxxxxxxxxx>
Subject: Re: [XenPPC] crash after sequence of create/destroy
From: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
Date: Mon, 20 Nov 2006 11:35:25 -0500
Cc: XenPPC-devel <xen-ppc-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 20 Nov 2006 08:35:29 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <17759.51792.582989.250293@xxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
References: <17759.51792.582989.250293@xxxxxxxxxxxxxxxxxx>
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thanks Dilma, this is an obvious leak in my foreign page allocator, I'll have a fix shortly.

Here is the linux diff if you cannot wait.

arch/powerpc/platforms/xen/util.c
--- a/arch/powerpc/platforms/xen/util.c Tue Nov 14 19:33:36 2006 -0500
+++ b/arch/powerpc/platforms/xen/util.c Mon Nov 20 11:26:25 2006 -0500
@@ -33,6 +33,7 @@ EXPORT_SYMBOL_GPL(alloc_vm_area);
void free_vm_area(struct vm_struct *area)
{
+       free_foreign_page(virt_to_page(area->addr));
        kfree(area);
}
EXPORT_SYMBOL_GPL(free_vm_area);

On Nov 18, 2006, at 10:18 PM, Dilma DaSilva wrote:


A couple of times I experienced that after a couple hours of "xm
create"/"xm destroy", the machine will crash:
with the following on the console.

XEN) Domain[20].0: initializing
cpu 0x0: Vector: 700 (Program Check) at [c000000077ed7810]
    pc: c000000000047834: .alloc_vm_area+0xe4/0xf0
    lr: c000000000047774: .alloc_vm_area+0x24/0xf0
    sp: c000000077ed7a90
   msr: 8000000000029032
  current = 0xc000000077ed1140
  paca    = 0xc0000000005ae200
    pid   = 130, comm = xenwatch
kernel BUG in alloc_vm_area at /root/xen-maria-latest/linux/linux- xen-ppc/arch/powerpc/platforms/xen/util.c:17!
enter ? for help
0:mon>  t
[c000000077ed7b20] c000000000300e34 .blkif_map+0x74/0x1b0
[c000000077ed7bf0] c000000000300334 .frontend_changed+0x164/0x1f0
[c000000077ed7ca0] c0000000002fd2f0 .otherend_changed+0x100/0x110
[c000000077ed7d40] c0000000002f9d44 .xenwatch_handle_callback +0x44/0xa0
[c000000077ed7dd0] c0000000002faf74 .xenwatch_thread+0x1b4/0x1f0
[c000000077ed7ee0] c000000000078ebc .kthread+0x11c/0x170
[c000000077ed7f90] c0000000000293b4 .original_kernel_thread+0x4c/0x68
0:mon>


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


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

<Prev in Thread] Current Thread [Next in Thread>