[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] qmp: Disable query-cpu-* commands when they're
From: |
Eduardo Habkost |
Subject: |
Re: [Qemu-devel] [PATCH] qmp: Disable query-cpu-* commands when they're unavailable |
Date: |
Tue, 4 Oct 2016 21:54:14 -0300 |
User-agent: |
Mutt/1.7.0 (2016-08-17) |
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 adding a new arch-specific hook:
> arch_init_qmp_commands(), that can enable the available QMP
> commands (which are now disabled by default).
>
> Signed-off-by: Eduardo Habkost <address@hidden>
Eric Blake just pointed me to qmp_unregister_commands_hack(). I
will try to move the query-cpu-* rules there, in v2.
--
Eduardo