diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-11-01 11:18:29 +0000 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-11-01 11:18:29 +0000 |
commit | 7ffcc43b02744f2ec9a064635ff09ea17c0a7253 (patch) | |
tree | 0731809d2480fa9813c11b193335e6aa144d9e9f /xen/arch/x86/e820.c | |
parent | aeade7ad12cc2efefe88d19fb03a62c263aae885 (diff) | |
download | xen-7ffcc43b02744f2ec9a064635ff09ea17c0a7253.tar.gz xen-7ffcc43b02744f2ec9a064635ff09ea17c0a7253.tar.bz2 xen-7ffcc43b02744f2ec9a064635ff09ea17c0a7253.zip |
[XEN] Extend dom0_mem syntax to support min/max clamps.
dom0_mem=[min:<min_amt>,][max:<max_amt>,][<amt>]
<min_amt>: The minimum amount of memory which should be allocated for dom0.
<max_amt>: The maximum amount of memory which should be allocated for dom0.
<amt>: The precise amount of memory to allocate for dom0.
Notes:
1. <amt> is clamped from below by <min_amt> and from above by available
memory and <max_amt>
2. <min_amt> is clamped from above by available memory and <max_amt>
3. <min_amt> is ignored if it is greater than <max_amt>
4. If <amt> is not specified, it is calculated as follows:
"All of memory is allocated to domain 0, minus 1/16th which is reserved
for uses such as DMA buffers (the reservation is clamped to 128MB)."
Each value can be specified as positive or negative:
If +ve: The specified amount is an absolute value.
If -ve: The specified amount is subtracted from total available memory.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/arch/x86/e820.c')
-rw-r--r-- | xen/arch/x86/e820.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/e820.c b/xen/arch/x86/e820.c index bbc147139c..b12eb68c87 100644 --- a/xen/arch/x86/e820.c +++ b/xen/arch/x86/e820.c @@ -6,7 +6,7 @@ /* opt_mem: Limit of physical RAM. Any RAM beyond this point is ignored. */ unsigned long long opt_mem; -static void parse_mem(char *s) { opt_mem = parse_size_and_unit(s); } +static void parse_mem(char *s) { opt_mem = parse_size_and_unit(s, NULL); } custom_param("mem", parse_mem); struct e820map e820; |