qemu-trivial.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-trivial] [Qemu-devel][PATCH v3] hw/i386/pc: prompt not multboot or morden kernel image
@ 2013-04-09  2:27 liguang
  2013-04-09  4:36 ` [Qemu-trivial] [Qemu-devel] [PATCH " Jesse Larrew
  0 siblings, 1 reply; 6+ messages in thread
From: liguang @ 2013-04-09  2:27 UTC (permalink / raw)
  To: Stefan Hajnoczi, qemu-devel, qemu-trivial; +Cc: liguang

if head magic is missing or wrong unexpectedly, we'd
better to prompt memssage for this.
e.g.
I make a mistake to boot a vmlinuz for MIPS(which
I think it's for x86) like this:
qemu-system-x86_64 -kernel vmlinuz -initrd demord
then qemu report:
"qemu: linux kernel too old to load a ram disk"
that's misleading.

Signed-off-by: liguang <lig.fnst@cn.fujitsu.com>
---
 hw/i386/pc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/hw/i386/pc.c b/hw/i386/pc.c
index ebbf059..6b29c3f 100644
--- a/hw/i386/pc.c
+++ b/hw/i386/pc.c
@@ -686,6 +686,8 @@ static void load_linux(void *fw_cfg,
         if (load_multiboot(fw_cfg, f, kernel_filename, initrd_filename,
                            kernel_cmdline, kernel_size, header)) {
             return;
+        } else {
+            fprintf(stderr, "warn: invalid multiboot or modern kernel image\n");
         }
         protocol = 0;
     }
-- 
1.7.2.5



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

end of thread, other threads:[~2013-04-12 11:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-09  2:27 [Qemu-trivial] [Qemu-devel][PATCH v3] hw/i386/pc: prompt not multboot or morden kernel image liguang
2013-04-09  4:36 ` [Qemu-trivial] [Qemu-devel] [PATCH " Jesse Larrew
2013-04-09  5:05   ` li guang
2013-04-09 19:15     ` Jesse Larrew
2013-04-11  2:18       ` li guang
2013-04-12 11:40         ` Stefan Hajnoczi

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).