ia64/xen-unstable

changeset 14501:59305500d95d

[POWERPC][XEN] Clear the RMA flag on freed pages.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Hollis Blanchard <hollisb@us.ibm.com>
date Wed Mar 21 17:02:59 2007 -0500 (2007-03-21)
parents dcec453681bc
children d5408cc3fba7
files xen/arch/powerpc/mm.c
line diff
     1.1 --- a/xen/arch/powerpc/mm.c	Thu Mar 08 14:39:52 2007 -0600
     1.2 +++ b/xen/arch/powerpc/mm.c	Wed Mar 21 17:02:59 2007 -0500
     1.3 @@ -401,9 +401,13 @@ int allocate_rma(struct domain *d, unsig
     1.4  
     1.5  void free_rma_check(struct page_info *page)
     1.6  {
     1.7 -    if (test_bit(_PGC_page_RMA, &page->count_info) &&
     1.8 -        !test_bit(_DOMF_dying, &page_get_owner(page)->domain_flags))
     1.9 -        panic("Attempt to free an RMA page: 0x%lx\n", page_to_mfn(page));
    1.10 +    if (test_bit(_PGC_page_RMA, &page->count_info)) {
    1.11 +        if (!test_bit(_DOMF_dying, &page_get_owner(page)->domain_flags)) {
    1.12 +            panic("Attempt to free an RMA page: 0x%lx\n", page_to_mfn(page));
    1.13 +        } else {
    1.14 +            clear_bit(_PGC_page_RMA, &page->count_info);
    1.15 +        }
    1.16 +    }
    1.17  }
    1.18  
    1.19  ulong pfn2mfn(struct domain *d, ulong pfn, int *type)