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-ppc-devel

[XenPPC] [xenppc-unstable] [ppc] oops, tot_pages hack for dom0 only not

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [xenppc-unstable] [ppc] oops, tot_pages hack for dom0 only not other domains
From: Xen patchbot-xenppc-unstable <patchbot-xenppc-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 15 Jun 2006 19:46:18 +0000
Delivery-date: Thu, 15 Jun 2006 13:10:05 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID 88bf33b61d7644d2c5225402ea290d7a4017864b
# Parent  39539f462cd7f4d3e000c290264e33462a683627
[ppc] oops, tot_pages hack for dom0 only not other domains

Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
---
 xen/arch/ppc/domain.c       |    1 -
 xen/arch/ppc/domain_build.c |    1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff -r 39539f462cd7 -r 88bf33b61d76 xen/arch/ppc/domain.c
--- a/xen/arch/ppc/domain.c     Thu Jun 15 13:33:04 2006 -0400
+++ b/xen/arch/ppc/domain.c     Thu Jun 15 15:46:42 2006 -0400
@@ -82,7 +82,6 @@ int arch_domain_create(struct domain *d)
     /* XXX the hackage... hardcode 64M domains */
     d->arch.rma_base = (64<<20) * (d->domain_id + 1);
     d->arch.rma_size = (64<<20);
-    d->tot_pages = d->arch.rma_size >> PAGE_SHIFT;
 
     printk("clearing RMO: 0x%lx[0x%lx]\n", d->arch.rma_base, d->arch.rma_size);
     memset((void*)d->arch.rma_base, 0, d->arch.rma_size);
diff -r 39539f462cd7 -r 88bf33b61d76 xen/arch/ppc/domain_build.c
--- a/xen/arch/ppc/domain_build.c       Thu Jun 15 13:33:04 2006 -0400
+++ b/xen/arch/ppc/domain_build.c       Thu Jun 15 15:46:42 2006 -0400
@@ -145,6 +145,7 @@ int construct_dom0(struct domain *d,
 
     /* By default DOM0 is allocated all available memory. */
     d->max_pages = ~0U;
+    d->tot_pages = (d->arch.rma_size >> PAGE_SHIFT);
 
     ASSERT( image_len < rma_sz );
 

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

<Prev in Thread] Current Thread [Next in Thread>
  • [XenPPC] [xenppc-unstable] [ppc] oops, tot_pages hack for dom0 only not other domains, Xen patchbot-xenppc-unstable <=