ia64/xen-unstable

changeset 10376:97226bfc659c

[IA64] Pull changes from xen-unstable.hg cset 10242 into mm.c

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
author awilliam@xenbuild.aw
date Tue Jun 13 13:13:39 2006 -0600 (2006-06-13)
parents db31c4e5e22f
children e62685b48500
files xen/arch/ia64/xen/mm.c
line diff
     1.1 --- a/xen/arch/ia64/xen/mm.c	Tue Jun 13 12:50:47 2006 -0600
     1.2 +++ b/xen/arch/ia64/xen/mm.c	Tue Jun 13 13:13:39 2006 -0600
     1.3 @@ -35,26 +35,16 @@ alloc_dom_xen_and_dom_io(void)
     1.4       * Any Xen-heap pages that we will allow to be mapped will have
     1.5       * their domain field set to dom_xen.
     1.6       */
     1.7 -    dom_xen = alloc_domain();
     1.8 +    dom_xen = alloc_domain(DOMID_XEN);
     1.9      BUG_ON(dom_xen == NULL);
    1.10 -    spin_lock_init(&dom_xen->page_alloc_lock);
    1.11 -    INIT_LIST_HEAD(&dom_xen->page_list);
    1.12 -    INIT_LIST_HEAD(&dom_xen->xenpage_list);
    1.13 -    atomic_set(&dom_xen->refcnt, 1);
    1.14 -    dom_xen->domain_id = DOMID_XEN;
    1.15  
    1.16      /*
    1.17       * Initialise our DOMID_IO domain.
    1.18       * This domain owns I/O pages that are within the range of the page_info
    1.19       * array. Mappings occur at the priv of the caller.
    1.20       */
    1.21 -    dom_io = alloc_domain();
    1.22 +    dom_io = alloc_domain(DOMID_IO);
    1.23      BUG_ON(dom_io == NULL);
    1.24 -    spin_lock_init(&dom_io->page_alloc_lock);
    1.25 -    INIT_LIST_HEAD(&dom_io->page_list);
    1.26 -    INIT_LIST_HEAD(&dom_io->xenpage_list);
    1.27 -    atomic_set(&dom_io->refcnt, 1);
    1.28 -    dom_io->domain_id = DOMID_IO;
    1.29  }
    1.30  
    1.31  // heavily depends on the struct page_info layout.