diff options
| author | Eduardo Habkost <ehabkost@redhat.com> | 2016-10-05 16:49:01 -0300 |
|---|---|---|
| committer | Markus Armbruster <armbru@redhat.com> | 2016-10-07 19:22:11 +0200 |
| commit | 728b1429b16ebcc09ca7936d8689db9e006acbef (patch) | |
| tree | 58bf43646d17fa161b6713a5c6c735bdcd6e58dd /docs/writing-qmp-commands.txt | |
| parent | daf5dc7806f7bbb825506054a7c00a90b841b7cc (diff) | |
| download | focaccia-qemu-728b1429b16ebcc09ca7936d8689db9e006acbef.tar.gz focaccia-qemu-728b1429b16ebcc09ca7936d8689db9e006acbef.zip | |
qmp: Disable query-cpu-* commands when they're unavailable
Instead of requiring clients to actually call the query-cpu-* commands to find out if they are implemented, remove them from the output of "query-commands", so clients know they are not available. This is implemented by extending the existing hack at qmp_unregister_commands_hack(). I wish I could avoid adding even more #ifdefs to that code, but that's the solution we have today. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <1475696941-8056-1-git-send-email-ehabkost@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'docs/writing-qmp-commands.txt')
0 files changed, 0 insertions, 0 deletions