direct-io.hg

changeset 7517:d25ac5cbd8d3

Remove next_io_page field from domain structure.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Fri Oct 28 17:51:37 2005 +0100 (2005-10-28)
parents ab0addb6dcbb
children 8cf7d1d715f4
files xen/arch/x86/domain_build.c xen/include/xen/sched.h
line diff
     1.1 --- a/xen/arch/x86/domain_build.c	Fri Oct 28 17:11:59 2005 +0100
     1.2 +++ b/xen/arch/x86/domain_build.c	Fri Oct 28 17:51:37 2005 +0100
     1.3 @@ -583,21 +583,17 @@ int construct_dom0(struct domain *d,
     1.4              _initrd_start, (_initrd_start+initrd_len+PAGE_SIZE-1) & PAGE_MASK);
     1.5      }
     1.6  
     1.7 -    d->next_io_page = max_page;
     1.8 -
     1.9      /* Set up start info area. */
    1.10      si = (start_info_t *)vstartinfo_start;
    1.11      memset(si, 0, PAGE_SIZE);
    1.12      si->nr_pages = nr_pages;
    1.13  
    1.14 +    si->shared_info = virt_to_phys(d->shared_info);
    1.15      if ( opt_dom0_translate )
    1.16      {
    1.17 -        si->shared_info  = d->next_io_page << PAGE_SHIFT;
    1.18 -        set_pfn_from_mfn(virt_to_phys(d->shared_info) >> PAGE_SHIFT, d->next_io_page);
    1.19 -        d->next_io_page++;
    1.20 +        si->shared_info  = max_page << PAGE_SHIFT;
    1.21 +        set_pfn_from_mfn(virt_to_phys(d->shared_info) >> PAGE_SHIFT, max_page);
    1.22      }
    1.23 -    else
    1.24 -        si->shared_info  = virt_to_phys(d->shared_info);
    1.25  
    1.26      si->flags        = SIF_PRIVILEGED | SIF_INITDOMAIN;
    1.27      si->pt_base      = vpt_start;
     2.1 --- a/xen/include/xen/sched.h	Fri Oct 28 17:11:59 2005 +0100
     2.2 +++ b/xen/include/xen/sched.h	Fri Oct 28 17:51:37 2005 +0100
     2.3 @@ -101,7 +101,6 @@ struct domain
     2.4      struct list_head xenpage_list;    /* linked list, of size xenheap_pages */
     2.5      unsigned int     tot_pages;       /* number of pages currently possesed */
     2.6      unsigned int     max_pages;       /* maximum value for tot_pages        */
     2.7 -    unsigned int     next_io_page;    /* next io pfn to give to domain      */
     2.8      unsigned int     xenheap_pages;   /* # pages allocated from Xen heap    */
     2.9  
    2.10      /* Scheduling. */