[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [POWERPC][XEN] Clear the RMA flag on freed pages.
# HG changeset patch # User Hollis Blanchard <hollisb@xxxxxxxxxx> # Date 1174514579 18000 # Node ID 59305500d95da83447a11732d0ed758702c11c64 # Parent dcec453681bc85f9f6f3aa49431ded9a63aa1c9b [POWERPC][XEN] Clear the RMA flag on freed pages. Signed-off-by: Hollis Blanchard <hollisb@xxxxxxxxxx> --- xen/arch/powerpc/mm.c | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff -r dcec453681bc -r 59305500d95d xen/arch/powerpc/mm.c --- a/xen/arch/powerpc/mm.c Thu Mar 08 14:39:52 2007 -0600 +++ b/xen/arch/powerpc/mm.c Wed Mar 21 17:02:59 2007 -0500 @@ -401,9 +401,13 @@ int allocate_rma(struct domain *d, unsig void free_rma_check(struct page_info *page) { - if (test_bit(_PGC_page_RMA, &page->count_info) && - !test_bit(_DOMF_dying, &page_get_owner(page)->domain_flags)) - panic("Attempt to free an RMA page: 0x%lx\n", page_to_mfn(page)); + if (test_bit(_PGC_page_RMA, &page->count_info)) { + if (!test_bit(_DOMF_dying, &page_get_owner(page)->domain_flags)) { + panic("Attempt to free an RMA page: 0x%lx\n", page_to_mfn(page)); + } else { + clear_bit(_PGC_page_RMA, &page->count_info); + } + } } ulong pfn2mfn(struct domain *d, ulong pfn, int *type) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |