On Mon, 22 Apr 2013 09:00:05 -0600 Eric Blake <ebl...@redhat.com> wrote:
> At any rate, we really DO want introspection, and having it in 1.5 is a > worthwhile goal. Even if the introspection turns up empty on legacy > options, having it for the sake of new options is worth the effort. Agreed. But as you said in another email, we need a JSON representation for this command. Dumping all options as strings is just like using -help. Something else that has occurred to me is that, do we want this to be a QMP command or do we want this to be a command-line option? If we do this as a QMP command then libvirt would have to actually start QEMU just to query supported options. Another interesting point is about full schema introspection. This patch only supports command-line options. It would be desirable to be able to introspect all QAPI types and QMP commands, although I'm aware that this might be a lot of work to do for 1.5.