direct-io.hg

changeset 11384:3e144748d36f

[XEN][POWERPC] do not set d->tot_pages, but check it.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Jimi Xenidis <jimix@watson.ibm.com>
date Mon Aug 28 17:28:55 2006 -0400 (2006-08-28)
parents 91fd23533210
children 030a041bbe90
files xen/arch/powerpc/domain_build.c
line diff
     1.1 --- a/xen/arch/powerpc/domain_build.c	Mon Aug 28 11:52:17 2006 -0400
     1.2 +++ b/xen/arch/powerpc/domain_build.c	Mon Aug 28 17:28:55 2006 -0400
     1.3 @@ -163,12 +163,10 @@ int construct_dom0(struct domain *d,
     1.4      }
     1.5  
     1.6      /* make sure we are at least as big as the RMA */
     1.7 -    if (dom0_nrpages < rma_nrpages)
     1.8 -        dom0_nrpages = rma_nrpages;
     1.9 -    else
    1.10 +    if (dom0_nrpages > rma_nrpages)
    1.11          dom0_nrpages = allocate_extents(d, dom0_nrpages, rma_nrpages);
    1.12  
    1.13 -    d->tot_pages = dom0_nrpages;
    1.14 +    ASSERT(d->tot_pages == dom0_nrpages);
    1.15      ASSERT(d->tot_pages >= rma_nrpages);
    1.16  
    1.17      if (opt_dom0_shadow == 0) {