Re: [Qemu-devel] [PATCH] qmp: Disable query-cpu-* commands when they're unavailable

2016-10-04 Thread Eduardo Habkost
On Tue, Oct 04, 2016 at 04:25:15PM -0300, Eduardo Habkost wrote: > 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 a

[Qemu-devel] [PATCH] qmp: Disable query-cpu-* commands when they're unavailable

2016-10-04 Thread Eduardo Habkost
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 adding a new arch-specific hook: arch_init_qmp_commands(), that can enable the