* Kevin Wolf (kw...@redhat.com) wrote: > Am 28.09.2017 um 01:05 hat Jan Dakinevich geschrieben: > > > OK but if it's useful as an hmp command, why not as a qmp command? > > > > The command is designed for debugging and produces quite sightly output. For > > respective qmp command most of `info virtio' output would excessive and > > unneccesary. > > The general policy is that HMP commands should only call QMP command > implementations internally rather than doing things themselves, to make > sure that a management tool can achieve everything the monitor provides > with QMP and doesn't have to fall back to parsing HMP output. > > If we are certain that this feature is useless for automated use and > nobody will ever want to use it in scripts (sounds like a bold claim to > me), maybe an exception can be justified. I think this is up to the > monitor maintainers.
I'm happy to add debug-only commands as HMP-only; but if there is a use for the data from QMP then I agree they should be built upon QMP; I'll leave that to virtio people to answer that distinction. Dave > Kevin -- Dr. David Alan Gilbert / dgilb...@redhat.com / Manchester, UK