qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "andrzej zaborowski" <balrogg@gmail.com>
To: "Daniel P. Berrange" <berrange@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] make /usr/bin/qemu the native arch
Date: Wed, 11 Jul 2007 20:54:14 +0200	[thread overview]
Message-ID: <fb249edb0707111154k3771b2c2o7dc468ab7d88f0e9@mail.gmail.com> (raw)
In-Reply-To: <20070708201618.GA21405@redhat.com>

On 08/07/07, Daniel P. Berrange <berrange@redhat.com> wrote:
> On Sun, Jul 08, 2007 at 06:04:51PM +0100, Ricardo Almeida wrote:
> > On 7/8/07, Daniel P. Berrange <berrange@redhat.com> wrote:
> > >On Sun, Jul 08, 2007 at 02:21:02PM +0200, Robert Millan wrote:
> > >> Shouldn't /usr/bin/qemu be an alias for qemu-system-$(ARCH), where
> > >$(ARCH) is
> > >> the native architecture?  Defaulting to i386 doesn't make much sense
> > >nowadays,
> > >> specially since x86_64 is gradually obsoleting it.
> > >
> > >Management tools for QEMU will have come to rely on existing semantics of
> > >/usr/bin/qemu being i386.
> >
> > Why?! If they rely on 386 I think they should directly use
> > qemu-system-i386... If they manage in an architecture independent way
> > then use the qemu link...
>
> Rely on a binary which doesn't currently exist ? A fresh checkout & build
> of qemu cvs  does not produce any qemu-system-i386 binary. So that's not

Maybe it's a good idea to make qemu-system-i386 a symlink to qemu or
the other way, for now, and after some time do what Ricardo proposed,
which is more logical. After all qemu has already broken commandline
backwards compatibility many times and probably will do more times.

And here's one of my usual strange but fun ideas: make "qemu" a
wrapper that reads a number of first bytes of the
harddisk/cdrom/kernel image or whatever media was given, and applies a
heuristic to decide what architecture the instructions would be best
interpreted as. The "file" program likely already contains a sample of
such heuristic.

(A similar idea with reusing "file" code was for vvfat to detect what
OS is on a given partition and fake an MBR respective to the OS).

Cheers,
Andrzej

  reply	other threads:[~2007-07-11 18:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-08 12:21 [Qemu-devel] [PATCH] make /usr/bin/qemu the native arch Robert Millan
2007-07-08 16:35 ` Daniel P. Berrange
2007-07-08 17:04   ` Ricardo Almeida
2007-07-08 20:16     ` Daniel P. Berrange
2007-07-11 18:54       ` andrzej zaborowski [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-08-01 19:53 Robert Millan

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=fb249edb0707111154k3771b2c2o7dc468ab7d88f0e9@mail.gmail.com \
    --to=balrogg@gmail.com \
    --cc=berrange@redhat.com \
    --cc=qemu-devel@nongnu.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 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).