Re: [Qemu-devel] [PATCH v2] hw/i386/pc: reject to boot a wrong header magic kernel

2013-04-07 Thread li guang
在 2013-04-05五的 14:59 +0200,Stefan Hajnoczi写道: > On Mon, Apr 01, 2013 at 09:21:57AM +0800, liguang wrote: > > if head magic is missing or wrong unexpectedly, we'd > > better to reject booting. > > e.g. > > I make a mistake to boot a vmlinuz for MIPS(which > > I think it's for x86) like this: > > qem

Re: [Qemu-devel] [PATCH v2] hw/i386/pc: reject to boot a wrong header magic kernel

2013-04-05 Thread Stefan Hajnoczi
On Mon, Apr 01, 2013 at 09:21:57AM +0800, liguang wrote: > if head magic is missing or wrong unexpectedly, we'd > better to reject booting. > 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 r

[Qemu-devel] [PATCH v2] hw/i386/pc: reject to boot a wrong header magic kernel

2013-03-31 Thread liguang
if head magic is missing or wrong unexpectedly, we'd better to reject booting. 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 misleadin