All of lore.kernel.org
 help / color / mirror / Atom feed
From: Scott Garman <scott.a.garman@intel.com>
To: "Ke, Liping" <liping.ke@intel.com>
Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org>,
	"Purdie, Richard" <richard.purdie@intel.com>
Subject: Re: Add extra parameters for qemu script
Date: Thu, 9 Dec 2010 12:44:12 -0800	[thread overview]
Message-ID: <4D013F9C.2010404@intel.com> (raw)
In-Reply-To: <789F9655DD1B8F43B48D77C5D30659733104D391@shsmsx501.ccr.corp.intel.com>

On 12/09/2010 12:44 AM, Ke, Liping wrote:
> Hi, Scott
>
> The patch is in the attachment for your review. Below is some notes:
>
> 1) Basically I wouldn't like to change any logic of the original code.
> 2) -serial stdio and -nographic options are removed since they're be covered by the extra parameters.
> 3) User input would be $poky-qemu qemux86 "<-nographic -m 300>"
> 4) -m input will be checked still. If it exceeds 128 for arm, it will be changed back to
>     128M, same logic as before. And after parsing, -m option will be removed and replaced by
>      Kernel options mem=128M for avoiding some instability issue.
>
> Generally I modified very few, just add an extra parameters with least intrusion of
> Current logic.
>
> Any comments are welcomed.
> I will conduct more test with latest code in parallel.

Hi Criping,

Thanks for the patch. Overall I think this looks good.

However, one thing I feel the need to run by Richard, as he expressed 
some preferences with how the poky-qemu script would work with regard to 
options.

Richard: Criping's patch would remove the standalone options we had to 
the poky-qemu script (e.g, nographic, serial) and instead requires the 
user to specify them in one command option which can take any qemu 
command switch.

So for example:

poky-qemu qemux86 nographic

would become:

poky-qemu qemux86 "<-nographic>"

The benefit of this is that this allows the user to specify any qemu 
option they wish. Previously they were limited by the options we allowed 
them to specify (which were quite limited).

I tend to feel that this approach is more flexible, and scales better 
than having to support each and every qemu option with our own script 
syntax. Is this acceptable, or should we continue to support our own 
custom options in addition to Criping's new approach?

Scott

-- 
Scott Garman
Embedded Linux Distro Engineer - Yocto Project


  reply	other threads:[~2010-12-09 20:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-09  8:44 Add extra parameters for qemu script Ke, Liping
2010-12-09 20:44 ` Scott Garman [this message]
2010-12-09 21:16   ` Zhang, Jessica
2010-12-10 13:34   ` Richard Purdie
2010-12-13  1:43     ` Ke, Liping
2010-12-13  2:16       ` Scott Garman
2010-12-14  3:41         ` Ke, Liping
2010-12-14 22:27           ` Scott Garman
2010-12-14 22:29             ` Scott Garman
2010-12-15  1:17               ` Ke, Liping

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=4D013F9C.2010404@intel.com \
    --to=scott.a.garman@intel.com \
    --cc=liping.ke@intel.com \
    --cc=richard.purdie@intel.com \
    --cc=yocto@yoctoproject.org \
    /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.