qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [RFC PATCH] elf loader: exit if incompatible architectu


From: Peter Maydell
Subject: Re: [Qemu-devel] [RFC PATCH] elf loader: exit if incompatible architecture is detected
Date: Mon, 20 Jan 2014 15:24:46 +0000

On 7 January 2014 04:35, Alexey Kardashevskiy <address@hidden> wrote:
> One of our users tried an X86 image with qemu-system-ppc64. Instead of
> printing some reasonable message (which is possible in this case as the image
> is ELF), QEMU (spapr.c) simply copied the image in RAM as a raw image and
> SLOF failed to boot from it.
>
> The patch fixes the issue but there are still questions.
>
> 1. Do we need more sophisticated error checking here? Return -2 instead of 
> exit(1)
> and do exit(1) few levels up?

I definitely don't think we should be doing printf-and-exit
at this level; we should report something helpful to the
next level up.

-kernel is a mess anyway, the behaviour differs across
architectures regarding what is and isn't supported.

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]