qemu-devel
[Top][All Lists]
Advanced

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

Re: [PULL 31/31] qemu-option: warn for short-form boolean options


From: Paolo Bonzini
Subject: Re: [PULL 31/31] qemu-option: warn for short-form boolean options
Date: Tue, 16 Feb 2021 00:14:54 +0100

Il lun 15 feb 2021, 20:56 Peter Maydell <peter.maydell@linaro.org> ha scritto:
Alternatively, maybe we could not deprecate this really common syntax
pattern that's going to be in lots of peoples' examples, tutorials,
shell scripts and command lines ?

Unfortunately there is no way to change the code to distinguish okay uses from broken ones. The fundamental issue is that QemuOpts is sometimes typed and sometimes not, so it lacks the information to say that "-chardev socket,server" is fine but "-device virtio-blk-pci,noserial" ("set serial number to the string 'no'") is not.

I don't plan to remove the syntax altogether from QemuOpts, but I want to keep open the possibility of switching some options (especially -machine and -object) to a parser which doesn't support it.

Paolo


thanks
-- PMM


reply via email to

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