ia64/xen-unstable

changeset 10005:304b3d9011c3

[IA64] xen: remove mm_struct::pt_list

removed pt_list member of struct mm_struct.
It is now unecessary.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author awilliam@xenbuild.aw
date Fri May 12 09:03:04 2006 -0600 (2006-05-12)
parents 666bc6079577
children a7b7528c5ec1
files xen/arch/ia64/xen/domain.c xen/include/asm-ia64/domain.h
line diff
     1.1 --- a/xen/arch/ia64/xen/domain.c	Fri May 12 08:58:56 2006 -0600
     1.2 +++ b/xen/arch/ia64/xen/domain.c	Fri May 12 09:03:04 2006 -0600
     1.3 @@ -83,22 +83,7 @@ static void try_to_clear_PGC_allocate(st
     1.4  /* this belongs in include/asm, but there doesn't seem to be a suitable place */
     1.5  void arch_domain_destroy(struct domain *d)
     1.6  {
     1.7 -	struct page_info *page;
     1.8 -	struct list_head *ent, *prev;
     1.9 -
    1.10  	BUG_ON(d->arch.mm->pgd != NULL);
    1.11 -	if (d->arch.mm->pgd != NULL)
    1.12 -	{
    1.13 -		list_for_each ( ent, &d->arch.mm->pt_list )
    1.14 -		{
    1.15 -			page = list_entry(ent, struct page_info, list);
    1.16 -			prev = ent->prev;
    1.17 -			list_del(ent);
    1.18 -			free_xenheap_page(page_to_virt(page));
    1.19 -			ent = prev;
    1.20 -		}
    1.21 -		pgd_free(d->arch.mm->pgd);
    1.22 -	}
    1.23  	if (d->arch.mm != NULL)
    1.24  		xfree(d->arch.mm);
    1.25  	if (d->shared_info != NULL)
    1.26 @@ -265,7 +250,6 @@ int arch_domain_create(struct domain *d)
    1.27  	if ((d->arch.mm = xmalloc(struct mm_struct)) == NULL)
    1.28  	    goto fail_nomem;
    1.29  	memset(d->arch.mm, 0, sizeof(*d->arch.mm));
    1.30 -	INIT_LIST_HEAD(&d->arch.mm->pt_list);
    1.31  
    1.32  	d->arch.physmap_built = 0;
    1.33  	if ((d->arch.mm->pgd = pgd_alloc(d->arch.mm)) == NULL)
    1.34 @@ -648,7 +632,6 @@ share_xen_page_with_guest(struct page_in
    1.35  static pte_t*
    1.36  lookup_alloc_domain_pte(struct domain* d, unsigned long mpaddr)
    1.37  {
    1.38 -    struct page_info *pt;
    1.39      struct mm_struct *mm = d->arch.mm;
    1.40      pgd_t *pgd;
    1.41      pud_t *pud;
    1.42 @@ -658,22 +641,16 @@ lookup_alloc_domain_pte(struct domain* d
    1.43      pgd = pgd_offset(mm, mpaddr);
    1.44      if (pgd_none(*pgd)) {
    1.45          pgd_populate(mm, pgd, pud_alloc_one(mm,mpaddr));
    1.46 -        pt = maddr_to_page(pgd_val(*pgd));
    1.47 -        list_add_tail(&pt->list, &d->arch.mm->pt_list);
    1.48      }
    1.49  
    1.50      pud = pud_offset(pgd, mpaddr);
    1.51      if (pud_none(*pud)) {
    1.52          pud_populate(mm, pud, pmd_alloc_one(mm,mpaddr));
    1.53 -        pt = maddr_to_page(pud_val(*pud));
    1.54 -        list_add_tail(&pt->list, &d->arch.mm->pt_list);
    1.55      }
    1.56  
    1.57      pmd = pmd_offset(pud, mpaddr);
    1.58      if (pmd_none(*pmd)) {
    1.59          pmd_populate_kernel(mm, pmd, pte_alloc_one_kernel(mm, mpaddr));
    1.60 -        pt = maddr_to_page(pmd_val(*pmd));
    1.61 -        list_add_tail(&pt->list, &d->arch.mm->pt_list);
    1.62      }
    1.63  
    1.64      return pte_offset_map(pmd, mpaddr);
     2.1 --- a/xen/include/asm-ia64/domain.h	Fri May 12 08:58:56 2006 -0600
     2.2 +++ b/xen/include/asm-ia64/domain.h	Fri May 12 09:03:04 2006 -0600
     2.3 @@ -112,7 +112,6 @@ struct arch_vcpu {
     2.4  struct mm_struct {
     2.5  	pgd_t * pgd;
     2.6      //	atomic_t mm_users;			/* How many users with user space? */
     2.7 -	struct list_head pt_list;		/* List of pagetable */
     2.8  };
     2.9  
    2.10  extern struct mm_struct init_mm;