Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com> --- qapi-schema.json | 3 ++- monitor.c | 11 ----------- 2 files changed, 2 insertions(+), 12 deletions(-)
diff --git a/qapi-schema.json b/qapi-schema.json index 278d7e2aa3..a5c28bc9ad 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -6437,7 +6437,8 @@ # { "version": 3, "emulated": false, "kernel": true } ] } # ## -{ 'command': 'query-gic-capabilities', 'returns': ['GICCapability'] } +{ 'command': 'query-gic-capabilities', 'returns': ['GICCapability'], + 'if': ['defined(NEED_CPU_H)', 'defined(TARGET_ARM)']} ## # @CpuInstanceProperties: diff --git a/monitor.c b/monitor.c index 505ee5c58d..3bdae8d9d0 100644 --- a/monitor.c +++ b/monitor.c @@ -970,9 +970,6 @@ static void qmp_query_qmp_schema(QDict *qdict, QObject **ret_data, */ static void qmp_unregister_commands_hack(void) { -#ifndef TARGET_ARM - qmp_unregister_command(&qmp_commands, "query-gic-capabilities"); -#endif #if !defined(TARGET_S390X) && !defined(TARGET_I386) qmp_unregister_command(&qmp_commands, "query-cpu-model-expansion"); #endif @@ -4141,14 +4138,6 @@ QemuOptsList qemu_mon_opts = { }, }; -#ifndef TARGET_ARM -GICCapabilityList *qmp_query_gic_capabilities(Error **errp) -{ - error_setg(errp, QERR_FEATURE_DISABLED, "query-gic-capabilities"); - return NULL; -} -#endif - HotpluggableCPUList *qmp_query_hotpluggable_cpus(Error **errp) { MachineState *ms = MACHINE(qdev_get_machine()); -- 2.14.0.rc0.1.g40ca67566