qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Preconfig state reachable without --preconfig given


From: Max Reitz
Subject: Re: [Qemu-devel] Preconfig state reachable without --preconfig given
Date: Fri, 1 Jun 2018 15:44:17 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0

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

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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