qemu option parsing error.

John Clemens
2007-11-10T18:22:06Z

It appears the qemu in KVM-51 has a weird glitch where it will ignore
the '-m' memory parameter if it's the first parameter on the command
line (the case 'QEMU_OPTION_m' stanza never gets called in
qemu/hw/vl.c:main()). A quick look at the code doesn't reveal anything
obvious to me as to why. Putting some other parameter first (like
'-hda') works just fine. This doesn't happen with the current qemu
cvs.

i.e.:

qemu-system-x86_64 -m 512 -hda test.img == 128MB ram in VM.
qemu-system-x86_64 -hda test.img -m 512 == 512MB ram in VM.

john.c