qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 14/19] Add a query-argv command to QMP


From: Markus Armbruster
Subject: Re: [Qemu-devel] [PATCH 14/19] Add a query-argv command to QMP
Date: Sat, 26 Jun 2010 09:30:07 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Anthony Liguori <address@hidden> writes:

> On 06/07/2010 09:42 AM, Daniel P. Berrange wrote:
>> Add a new QMP command called 'query-argv' to information about the command
>> line arguments supported by the QEMU binary. This is intended to remove the
>> need for apps to parse '-help' output.
>>    
>
> This is just as bad as parsing -help output IMHO.
>
> The problem with something like this is that it discourages people
> from using proper APIs to get at capabilities information.

The interfaces to be used by management software should be
self-documenting, i.e. the client should be able to examine the
available interface over that interface.

This applies to QMP.  It equally applies to those parts of command line
we want management software to use.

Example: We don't need to provide machine-readable descriptions for all
the various options to configure devices, because management software
should use -device.  We do need to provide a description for -device.
Note: if we make device_add fully cold-plug capable, we could point
management software to QMP instead.

Such command-line self-documentation would also guide management
software to "proper" use of the command line.



reply via email to

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