From: "Siddha, Suresh B" <suresh.b.siddha@intel.com>
To: David Hopwood <david.nospam.hopwood@blueyonder.co.uk>
Cc: xen-devel@lists.xensource.com
Subject: Re: [Patch] by default don't give all memory to dom0
Date: Thu, 18 Aug 2005 17:13:19 -0700 [thread overview]
Message-ID: <20050818171319.B19322@unix-os.sc.intel.com> (raw)
In-Reply-To: <430503E9.8040200@blueyonder.co.uk>; from david.nospam.hopwood@blueyonder.co.uk on Thu, Aug 18, 2005 at 10:55:53PM +0100
On Thu, Aug 18, 2005 at 10:55:53PM +0100, David Hopwood wrote:
> Siddha, Suresh B wrote:
> > On Thu, Aug 18, 2005 at 08:50:57PM +0100, David Hopwood wrote:
> >>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?
> >
> > I am just following the dom0_mem conventions for which default unit is kB.
> > Am I missing something?
>
> If Kbytes is to be the default unit, then that default should probably be
> encoded in 'parse_size_and_unit', rather than having code like the above
> convert from bytes to Kbytes in many places.
For "mem=" option, default unit is bytes. I think we should go with the
linux style and make the default unit as bytes. If no one has any objections,
then I can send a patch for it.
thanks,
suresh
next prev parent reply other threads:[~2005-08-19 0:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-18 19:24 [Patch] by default don't give all memory to dom0 Siddha, Suresh B
2005-08-18 19:50 ` David Hopwood
2005-08-18 20:28 ` Siddha, Suresh B
2005-08-18 21:55 ` David Hopwood
2005-08-19 0:13 ` Siddha, Suresh B [this message]
2005-08-19 8:31 ` Keir Fraser
2005-08-19 23:32 ` Default memory unit David Hopwood
2005-08-20 0:58 ` [Patch] by default don't give all memory to dom0 Siddha, Suresh B
2005-08-19 8:44 ` Keir Fraser
2005-08-19 13:45 ` Mark Williamson
2005-08-20 1:20 ` Siddha, Suresh B
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050818171319.B19322@unix-os.sc.intel.com \
--to=suresh.b.siddha@intel.com \
--cc=david.nospam.hopwood@blueyonder.co.uk \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.