|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] [Patch] by default don't give all memory to dom0
Siddha, Suresh B wrote:
[...]
+static void parse_reserve_dmamem(char *s)
+{
+ unsigned long long bytes = parse_size_and_unit(s);
+ /* If no unit is specified we default to kB units, not bytes. */
+ if ( isdigit(s[strlen(s)-1]) )
+ reserve_dmapages = (unsigned int)bytes >> (PAGE_SHIFT - 10);
+ else
+ reserve_dmapages = (unsigned int)(bytes >> PAGE_SHIFT);
+}
Shouldn't the default unit be consistent for all Xen memory parameters?
--
David Hopwood <david.nospam.hopwood@xxxxxxxxxxxxxxxx>
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|