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

[Xen-changelog] [IA64] xen: remove mm_struct::pt_list

# HG changeset patch
# User awilliam@xxxxxxxxxxx
# Node ID 304b3d9011c356d0d95b587f1069f9d4a68d6f4f
# Parent  666bc6079577c09853354e3d7a7a5a6e10020004
[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@xxxxxxxxxxxxx>
---
 xen/arch/ia64/xen/domain.c    |   23 -----------------------
 xen/include/asm-ia64/domain.h |    1 -
 2 files changed, 24 deletions(-)

diff -r 666bc6079577 -r 304b3d9011c3 xen/arch/ia64/xen/domain.c
--- a/xen/arch/ia64/xen/domain.c        Fri May 12 08:58:56 2006 -0600
+++ b/xen/arch/ia64/xen/domain.c        Fri May 12 09:03:04 2006 -0600
@@ -83,22 +83,7 @@ static void try_to_clear_PGC_allocate(st
 /* this belongs in include/asm, but there doesn't seem to be a suitable place 
*/
 void arch_domain_destroy(struct domain *d)
 {
-       struct page_info *page;
-       struct list_head *ent, *prev;
-
        BUG_ON(d->arch.mm->pgd != NULL);
-       if (d->arch.mm->pgd != NULL)
-       {
-               list_for_each ( ent, &d->arch.mm->pt_list )
-               {
-                       page = list_entry(ent, struct page_info, list);
-                       prev = ent->prev;
-                       list_del(ent);
-                       free_xenheap_page(page_to_virt(page));
-                       ent = prev;
-               }
-               pgd_free(d->arch.mm->pgd);
-       }
        if (d->arch.mm != NULL)
                xfree(d->arch.mm);
        if (d->shared_info != NULL)
@@ -265,7 +250,6 @@ int arch_domain_create(struct domain *d)
        if ((d->arch.mm = xmalloc(struct mm_struct)) == NULL)
            goto fail_nomem;
        memset(d->arch.mm, 0, sizeof(*d->arch.mm));
-       INIT_LIST_HEAD(&d->arch.mm->pt_list);
 
        d->arch.physmap_built = 0;
        if ((d->arch.mm->pgd = pgd_alloc(d->arch.mm)) == NULL)
@@ -648,7 +632,6 @@ static pte_t*
 static pte_t*
 lookup_alloc_domain_pte(struct domain* d, unsigned long mpaddr)
 {
-    struct page_info *pt;
     struct mm_struct *mm = d->arch.mm;
     pgd_t *pgd;
     pud_t *pud;
@@ -658,22 +641,16 @@ lookup_alloc_domain_pte(struct domain* d
     pgd = pgd_offset(mm, mpaddr);
     if (pgd_none(*pgd)) {
         pgd_populate(mm, pgd, pud_alloc_one(mm,mpaddr));
-        pt = maddr_to_page(pgd_val(*pgd));
-        list_add_tail(&pt->list, &d->arch.mm->pt_list);
     }
 
     pud = pud_offset(pgd, mpaddr);
     if (pud_none(*pud)) {
         pud_populate(mm, pud, pmd_alloc_one(mm,mpaddr));
-        pt = maddr_to_page(pud_val(*pud));
-        list_add_tail(&pt->list, &d->arch.mm->pt_list);
     }
 
     pmd = pmd_offset(pud, mpaddr);
     if (pmd_none(*pmd)) {
         pmd_populate_kernel(mm, pmd, pte_alloc_one_kernel(mm, mpaddr));
-        pt = maddr_to_page(pmd_val(*pmd));
-        list_add_tail(&pt->list, &d->arch.mm->pt_list);
     }
 
     return pte_offset_map(pmd, mpaddr);
diff -r 666bc6079577 -r 304b3d9011c3 xen/include/asm-ia64/domain.h
--- a/xen/include/asm-ia64/domain.h     Fri May 12 08:58:56 2006 -0600
+++ b/xen/include/asm-ia64/domain.h     Fri May 12 09:03:04 2006 -0600
@@ -112,7 +112,6 @@ struct mm_struct {
 struct mm_struct {
        pgd_t * pgd;
     // atomic_t mm_users;                      /* How many users with user 
space? */
-       struct list_head pt_list;               /* List of pagetable */
 };
 
 extern struct mm_struct init_mm;

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [IA64] xen: remove mm_struct::pt_list, Xen patchbot-unstable <=