[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] arm: add dom0_mem command line argument
# HG changeset patch # User David Vrabel <david.vrabel@xxxxxxxxxx> # Date 1333381843 -3600 # Node ID 5cbe2ab76a9cb4880cd0354cb3e3111930d985ee # Parent ed36e57043941bdeb733559fec9b0d630beb6557 arm: add dom0_mem command line argument Add a simple dom0_mem command line argument. It's not as flexible as the x86 equivalent (the 'max' and 'min' prefixes are not supported). Signed-off-by: David Vrabel <david.vrabel@xxxxxxxxxx> Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Committed-by: Ian Campbell <ian.campbell@xxxxxxxxxx> --- diff -r ed36e5704394 -r 5cbe2ab76a9c xen/arch/arm/domain_build.c --- a/xen/arch/arm/domain_build.c Mon Apr 02 16:50:42 2012 +0100 +++ b/xen/arch/arm/domain_build.c Mon Apr 02 16:50:43 2012 +0100 @@ -17,6 +17,17 @@ static unsigned int __initdata opt_dom0_max_vcpus; integer_param("dom0_max_vcpus", opt_dom0_max_vcpus); +#define DOM0_MEM_DEFAULT 0x8000000 /* 128 MiB */ +static u64 __initdata dom0_mem = DOM0_MEM_DEFAULT; + +static void __init parse_dom0_mem(const char *s) +{ + dom0_mem = parse_size_and_unit(s, &s); + if ( dom0_mem == 0 ) + dom0_mem = DOM0_MEM_DEFAULT; +} +custom_param("dom0_mem", parse_dom0_mem); + /* * Amount of extra space required to dom0's device tree. No new nodes * are added (yet) but one terminating reserve map entry (16 bytes) is @@ -191,6 +202,8 @@ static int prepare_dtb(struct domain *d, int new_size; int ret; + kinfo->unassigned_mem = dom0_mem; + fdt = device_tree_flattened; new_size = fdt_totalsize(fdt) + DOM0_FDT_EXTRA_SIZE; @@ -260,8 +273,6 @@ int construct_dom0(struct domain *d) if ( (rc = p2m_alloc_table(d)) != 0 ) return rc; - kinfo.unassigned_mem = 0x08000000; /* XXX */ - rc = prepare_dtb(d, &kinfo); if ( rc < 0 ) return rc; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |