All of lore.kernel.org
 help / color / mirror / Atom feed
From: Riku Voipio <riku.voipio@iki.fi>
To: Johannes Schauer <j.schauer@email.de>
Cc: 632192@bugs.debian.org, Riku Voipio <riku.voipio@iki.fi>,
	qemu-devel@nongnu.org, Vagrant Cascadian <vagrant@freegeek.org>
Subject: Re: [Qemu-devel] Bug#632192: [PATCH] add QEMU_LD_PREFIX environment variable
Date: Sat, 30 Jul 2011 16:58:43 +0300	[thread overview]
Message-ID: <20110730135843.GA2492@afflict.kos.to> (raw)
In-Reply-To: <20110729152159.GA9135@hoothoot>

On Fri, Jul 29, 2011 at 05:21:59PM +0200, Johannes Schauer wrote:
> So if we agree on using environment variables to pass options to
> qemu-user we next need to agree on how to name the options.
 
> The following commandline arguments exist (in order as they are checked
> in linux-user/main.c) and I shortly described and proposed a name for
> the environment variable in the same line.
 
> -d (activate log)             - QEMU_LOG
> -D (logfile)                  - QEMU_LOGFILE
> -E (set target env variabe)   - QEMU_SET_ENV
> -U (unset target env variabe) - QEMU_UNSET_ENV
> -0 (set target argv[0])       - QEMU_ARGV0
> -s (stack size)               - QEMU_STACK_SIZE
> -L (elf interpreter prefix)   - QEMU_LD_PREFIX
> -p (page size)                - QEMU_PAGESIZE
> -g (listen for gdb on port)   - QEMU_GDB
> -r (uname)                    - QEMU_UNAME
> -cpu (cpu model)              - QEMU_CPU
> -B (guest base)               - QEMU_GUEST_BASE
> -R (reserved virtual address) - QEMU_RESERVED_VA
> -drop-ld-preload              - QEMU_DROP_LD_PRELOAD

This is a legacy option that could be removed already. The
-U LD_PRELOAD replaces this option. The only known user of this
option (scratchbox) has migrated -U LD_PRELOAD years ago.

> -singlestep                   - QEMU_SINGLESTEP
> -strace                       - QEMU_STRACE
 
> also, there already is the QEMU_STRACE environment variable which could
> be incorporated into the solution?

Else names look good to me.
 
> the -E and -U options can be specified several times so the environment
> variables should be able to receive a list - maybe in the getsubopt(3)
> style?

getsubopt would mean that passing enviroment variable contents with commas
wouldn't work. Perhaps that would still be an acceptable limitation.

Riku

  reply	other threads:[~2011-07-30 13:58 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-23  5:47 [Qemu-devel] [PATCH] add QEMU_LD_PREFIX environment variable josch
2011-07-23  5:47 ` josch
2011-07-28  8:41 ` Riku Voipio
2011-07-28 11:24   ` Johannes Schauer
2011-07-28 16:50     ` Geert Stappers
2011-07-28 17:28       ` Alexander Graf
2011-07-29 12:52   ` [Qemu-devel] Bug#632192: " Vagrant Cascadian
2011-07-29 15:21     ` Johannes Schauer
2011-07-30 13:58       ` Riku Voipio [this message]
2011-07-31 11:51         ` [Qemu-devel] [PATCH] introduce environment variables for all qemu-user options j.schauer
2011-07-31 12:12           ` Peter Maydell
2011-07-31 21:40             ` Johannes Schauer
2011-08-05 10:04               ` Peter Maydell
2011-08-06  6:54                 ` Johannes Schauer
2011-08-20 17:29                   ` Yann Dirson

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=20110730135843.GA2492@afflict.kos.to \
    --to=riku.voipio@iki.fi \
    --cc=632192@bugs.debian.org \
    --cc=j.schauer@email.de \
    --cc=qemu-devel@nongnu.org \
    --cc=vagrant@freegeek.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.