qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: josch <josch@pyneo.org>
To: Riku Voipio <riku.voipio@iki.fi>, qemu-devel@nongnu.org
Cc: Johannes Schauer <j.schauer@email.de>
Subject: [Qemu-devel] [PATCH] add QEMU_LD_PREFIX environment variable
Date: Sat, 23 Jul 2011 07:47:49 +0200	[thread overview]
Message-ID: <1311400070-9051-1-git-send-email-josch@pyneo.org> (raw)

From: Johannes Schauer <j.schauer@email.de>

Hi,

qemu allows to specify the elf interpreter prefix with the -L option. When
using qemu user mode emulation through the binfmt mechanism, it is not
possible to pass any commandline arguments to qemu. Having qemu evaluate an
environment variable makes it possible to still supply a custom elf
interpreter prefix, even if qemu is executed by the binfmt mechanism.

My motivation is an emdebian project which creates foreign debian
bootstraps. Since foreign binaries are executed without an explicit
qemu-user call but by the binfmt mechanism, it relied on having appropriate
content in /etc/qemu-binfmt/$arch/ which is the default elf interpreter
prefix path on debian. The downside currently is, that the shared libraries
in /etc/qemu-binfmt/$arch/ have to be adapted very often for different
debian systems running on the same qemu $arch. This could be avoided by
setting the proposed environment variable QEMU_LD_PREFIX to the just
created debian rootfs. As mentioned earlier, the usage of the -L option
is not possible in this scenario because qemu-user is only implicitly
called by the binfmt mechanism.

Hopefully this change can be applied.

thanks!

cheers, josch

Johannes Schauer (1):
  add QEMU_LD_PREFIX environment variable

 linux-user/main.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

-- 
1.7.5.4

             reply	other threads:[~2011-07-23  5:48 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-23  5:47 josch [this message]
2011-07-23  5:47 ` [Qemu-devel] [PATCH] add QEMU_LD_PREFIX environment variable 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
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
  -- strict thread matches above, loose matches on Subject: below --
2011-07-06  9:15 [Qemu-devel] [PATCH] add QEMU_LD_PREFIX environment variable Johannes Schauer
2011-07-06  9:15 ` Johannes Schauer

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=1311400070-9051-1-git-send-email-josch@pyneo.org \
    --to=josch@pyneo.org \
    --cc=j.schauer@email.de \
    --cc=qemu-devel@nongnu.org \
    --cc=riku.voipio@iki.fi \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).