ia64/xen-unstable

changeset 19125:4773f40d14f2

[IA64] remove opt_p2m_xenheap

xenheap isn't pinned down now so that allocating p2m pages from
xenheap doesn't make sense anymore.
This is preparation for removing xenheap.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Fri Jan 30 11:09:27 2009 +0900 (2009-01-30)
parents 7029eb0930b4
children 78bea2f2b0e5
files xen/arch/ia64/xen/mm.c
line diff
     1.1 --- a/xen/arch/ia64/xen/mm.c	Fri Jan 30 11:04:51 2009 +0900
     1.2 +++ b/xen/arch/ia64/xen/mm.c	Fri Jan 30 11:09:27 2009 +0900
     1.3 @@ -3060,31 +3060,18 @@ static int alloc_page_type(struct page_i
     1.4  	return 1;
     1.5  }
     1.6  
     1.7 -static int opt_p2m_xenheap;
     1.8 -boolean_param("p2m_xenheap", opt_p2m_xenheap);
     1.9 -
    1.10  void *pgtable_quicklist_alloc(void)
    1.11  {
    1.12 +    struct page_info *page;
    1.13      void *p;
    1.14  
    1.15      BUG_ON(dom_p2m == NULL);
    1.16 -    if (!opt_p2m_xenheap) {
    1.17 -        struct page_info *page = alloc_domheap_page(dom_p2m, 0);
    1.18 -        if (page == NULL)
    1.19 -            return NULL;
    1.20 -        p = page_to_virt(page);
    1.21 -        clear_page(p);
    1.22 -        return p;
    1.23 -    }
    1.24 -    p = alloc_xenheap_page();
    1.25 -    if (p) {
    1.26 -        clear_page(p);
    1.27 -        /*
    1.28 -         * This page should be read only.  At this moment, the third
    1.29 -         * argument doesn't make sense.  It should be 1 when supported.
    1.30 -         */
    1.31 -        share_xen_page_with_guest(virt_to_page(p), dom_p2m, 0);
    1.32 -    }
    1.33 +    page = alloc_domheap_page(dom_p2m, 0);
    1.34 +    if (page == NULL)
    1.35 +        return NULL;
    1.36 +
    1.37 +    p = page_to_virt(page);
    1.38 +    clear_page(p);
    1.39      return p;
    1.40  }
    1.41  
    1.42 @@ -3096,8 +3083,6 @@ void pgtable_quicklist_free(void *pgtabl
    1.43      BUG_ON(page->count_info != (1 | PGC_allocated));
    1.44  
    1.45      put_page(page);
    1.46 -    if (opt_p2m_xenheap)
    1.47 -        free_xenheap_page(pgtable_entry);
    1.48  }
    1.49  
    1.50  void put_page_type(struct page_info *page)