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

RE: [Xen-ia64-devel] [PATCH] dom0_mem support

To: "Masaki Kanno" <kanno.masaki@xxxxxxxxxxxxxx>, <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-ia64-devel] [PATCH] dom0_mem support
From: "Magenheimer, Dan (HP Labs Fort Collins)" <dan.magenheimer@xxxxxx>
Date: Mon, 14 Nov 2005 09:45:28 -0800
Delivery-date: Mon, 14 Nov 2005 17:45:22 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcXpD6eFlBLp+Ej+SaiLbbqXTUJNLAAMxokQ
Thread-topic: [Xen-ia64-devel] [PATCH] dom0_mem support
Thank you for your patch!  I have added dom0_align
support and committed it to the xen-ia64-unstable tree. 

> -----Original Message-----
> From: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx 
> [mailto:xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf 
> Of Masaki Kanno
> Sent: Monday, November 14, 2005 4:35 AM
> To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
> Subject: [Xen-ia64-devel] [PATCH] dom0_mem support
> 
> Hi, 
> 
> This is the first time I posted to this list, 
> so please be gentle...
> 
> Attached is a small patch that supports dom0_mem parameter at boot 
> option.
> Usage is the likely same as that of x86.
> ex. append="dom0_mem=768M ..."
> 
> Signed-off-by Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
> 
> Thanks,
> Kan
> 
> diff -r bd234c9603ce xen/arch/ia64/xen/domain.c
> --- a/xen/arch/ia64/xen/domain.c        Fri Nov 11 19:23:04 2005
> +++ b/xen/arch/ia64/xen/domain.c        Mon Nov 14 04:27:03 2005
> @@ -11,6 +11,7 @@
>   */
>  
>  #include <xen/config.h>
> +#include <xen/init.h>
>  #include <xen/lib.h>
>  #include <xen/errno.h>
>  #include <xen/sched.h>
> @@ -48,7 +49,7 @@
>  
>  #define CONFIG_DOMAIN0_CONTIGUOUS
>  unsigned long dom0_start = -1L;
> -unsigned long dom0_size = 512*1024*1024; //FIXME: Should be 
> configurable
> +unsigned long dom0_size = 512*1024*1024;
>  //FIXME: alignment should be 256MB, lest Linux use a 256MB page size
>  unsigned long dom0_align = 256*1024*1024;
>  #ifdef DOMU_BUILD_STAGING
> @@ -1154,3 +1155,17 @@
>         }
>         // FIXME SMP: Anything else needed here for SMP?
>  }
> +
> +static void parse_dom0_mem(char *s)
> +{
> +    unsigned long long bytes;
> +    bytes = parse_size_and_unit(s);
> +    dom0_size = bytes;
> +    
> +    if (dom0_size % dom0_align)
> +    {
> +        dom0_size = (dom0_size / dom0_align + 1) * dom0_align;
> +    }
> +}
> +custom_param("dom0_mem", parse_dom0_mem);
> +
> 
> _______________________________________________
> Xen-ia64-devel mailing list
> Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-ia64-devel
> 

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

<Prev in Thread] Current Thread [Next in Thread>