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-devel

[Xen-devel] crash in page_list_* macro

To: "Xen-Devel (E-mail)" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] crash in page_list_* macro
From: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>
Date: Thu, 12 Feb 2009 03:42:07 +0000 (GMT)
Delivery-date: Wed, 11 Feb 2009 19:43:35 -0800
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
I can't make heads nor tails (pun intended) of how to use
the new page_list_* macros.  I have created a page_list
but at some point when I try to do a page_list_remove_head()
on the list (which, yes, had been initialized -- statically),
the list has been corrupted (causing a bad pointer dereference).

Is the memory where the list header is stored overloaded and
sometimes overwritten for other purposes?  Note all pages
on my page_list have been gotten via pi=alloc_domheap_pages(0,0,0).
Next I use va=page_to_virt(pi), use the page for awhile,
use pi=virt_to_page(va) and put it on the page_list, then
later when I page_list_remove_head(my_page_list), the
list pointers are apparently corrupt.

Any ideas?

Thanks,
Dan

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

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