All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] Qemu binary and list of supported arches
@ 2015-04-09  8:30 Michal Privoznik
  2015-04-09  9:21 ` Peter Maydell
  0 siblings, 1 reply; 2+ messages in thread
From: Michal Privoznik @ 2015-04-09  8:30 UTC (permalink / raw)
  To: qemu-devel

Dear list,

when trying to solve this bug [1] I've realized qemu is not reporting a
list of supported architectures for given binary. I mean, we do have
'query-target' but as I understand it it merely reports only the default
architecture. For instance for qemu-system-i386 I get 'i386', for
-x86_64 I get 'x84_64'. However, other binaries like -ppc or -ppc64 can
run other architectures like ppc, ppcle, ppc64, ppc64le and so on.

So I believe my question is, now that we have a binary capable of
running multiple architectures (and an architecture capable of being run
by several binaries) what is the best way to compute the table?

Michal

1: https://bugzilla.redhat.com/show_bug.cgi?id=1209948

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] Qemu binary and list of supported arches
  2015-04-09  8:30 [Qemu-devel] Qemu binary and list of supported arches Michal Privoznik
@ 2015-04-09  9:21 ` Peter Maydell
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Maydell @ 2015-04-09  9:21 UTC (permalink / raw)
  To: Michal Privoznik; +Cc: QEMU Developers

On 9 April 2015 at 09:30, Michal Privoznik <mprivozn@redhat.com> wrote:
> Dear list,
>
> when trying to solve this bug [1] I've realized qemu is not reporting a
> list of supported architectures for given binary. I mean, we do have
> 'query-target' but as I understand it it merely reports only the default
> architecture. For instance for qemu-system-i386 I get 'i386', for
> -x86_64 I get 'x84_64'. However, other binaries like -ppc or -ppc64 can
> run other architectures like ppc, ppcle, ppc64, ppc64le and so on.

Some of these I think are more properties of the guest image than
the CPU/QEMU. For instance the fact that you can run both big and
little endian PPC images on qemu-system-ppc64 is just because that's
how the CPU works; from QEMU's point of view there's not much difference
between a kernel that sets the LE flag on bootup and one that doesn't.
(This is a slight simplification, but not I think a misleading one.)

There's also the "64-bit variants of QEMU still support all the 32
bit CPUs", which is why x86_64 will run all the i386 CPUs, ppc64
will run the ppc CPUs, and aarch64 will run the arm CPUs.
(That last one doesn't look from the patch you reference like it's
in your table of equivalents, incidentally.)

> So I believe my question is, now that we have a binary capable of
> running multiple architectures (and an architecture capable of being run
> by several binaries) what is the best way to compute the table?

Well, what's your definition of "architecture"? QEMU's definition
is probably not the same as yours :-)

Personally I'd be more inclined to say "identify the *machine*
you want to run on and the *cpu* you want to use, then check that
the executable supports that machine and cpu".

-- PMM

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-04-09  9:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-09  8:30 [Qemu-devel] Qemu binary and list of supported arches Michal Privoznik
2015-04-09  9:21 ` Peter Maydell

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.