On 2018-06-01 15:28, Max Reitz wrote: > Hi, > > The @preconfig RunState documentation states: > >> The state is reachable only if the --preconfig CLI option is used. > > However, this is not true: > > $ echo | x86_64-softmmu/qemu-system-x86_64 -monitor stdio > QEMU 2.12.50 monitor - type 'help' for more information > (qemu) > HMP not available in preconfig state, use QMP instead
Another issue that has been introduced by commit 047f7038f586d2150f16c6d9ba9cfd0479f0f6ac is this: $ echo quit | x86_64-softmmu/qemu-system-x86_64 \ -drive file=/dev/null,if=ide,readonly=on -monitor stdio QEMU 2.12.50 monitor - type 'help' for more information (qemu) qqemu-system-x86_64: Initialization of device ide-hd failed: Block node is read-only Or: $ echo foo | x86_64-softmmu/qemu-system-x86_64 \ -drive file=/dev/null,if=ide,readonly=on -monitor stdio QEMU 2.12.50 monitor - type 'help' for more information (qemu) fqemu-system-x86_64: Initialization of device ide-hd failed: Block node is read-only So the first character of the next command is printed before the error message. First, this is a change in behavior, and secondly, it seems weird that the monitor accepts a single character before the command line is fully interpreted. (I suspect this is also the reason why the "HMP not available..." message does not appear when you actually execute any command, because processing anything more than a single character is held off until after the runstate transition.) Max
signature.asc
Description: OpenPGP digital signature