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/include/xen/lib.h | |
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/include/xen/lib.h')
-rw-r--r-- | xen/include/xen/lib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/include/xen/lib.h b/xen/include/xen/lib.h index 18eaf96a95..6327f3106e 100644 --- a/xen/include/xen/lib.h +++ b/xen/include/xen/lib.h @@ -86,7 +86,7 @@ long long simple_strtoll( unsigned long long simple_strtoull( const char *cp,char **endp, unsigned int base); -unsigned long long parse_size_and_unit(char *s); +unsigned long long parse_size_and_unit(const char *s, char **ps); #define TAINT_UNSAFE_SMP (1<<0) #define TAINT_MACHINE_CHECK (1<<1) |