diff options
| author | Daniel P. Berrangé <berrange@redhat.com> | 2025-05-22 12:05:31 -0700 |
|---|---|---|
| committer | Markus Armbruster <armbru@redhat.com> | 2025-05-28 18:54:18 +0200 |
| commit | 30fbb258717d81c32f11a0e4b7218442a43c4856 (patch) | |
| tree | 680f3dbf07aa5b5b272578e37c43001501e84440 /stubs | |
| parent | 7373759583650fff6f724c6c21d4234bf31b2af0 (diff) | |
| download | focaccia-qemu-30fbb258717d81c32f11a0e4b7218442a43c4856.tar.gz focaccia-qemu-30fbb258717d81c32f11a0e4b7218442a43c4856.zip | |
qapi: expose query-gic-capability command unconditionally
This removes the TARGET_ARM condition from the query-gic-capability command. This requires providing a QMP command stub for non-ARM targets. This in turn requires moving the command out of misc-target.json, since that will trigger symbol poisoning errors when built from target independent code. Following the earlier precedent, this creates a misc-arm.json file to hold this ARM specific command. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Message-ID: <20250522190542.588267-5-pierrick.bouvier@linaro.org> Reviewed-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'stubs')
| -rw-r--r-- | stubs/meson.build | 1 | ||||
| -rw-r--r-- | stubs/monitor-arm-gic.c | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/stubs/meson.build b/stubs/meson.build index 9922ec7b88..07e9d3799a 100644 --- a/stubs/meson.build +++ b/stubs/meson.build @@ -77,6 +77,7 @@ if have_system stub_ss.add(files('target-monitor-defs.c')) stub_ss.add(files('win32-kbd-hook.c')) stub_ss.add(files('xen-hw-stub.c')) + stub_ss.add(files('monitor-arm-gic.c')) stub_ss.add(files('monitor-i386-rtc.c')) stub_ss.add(files('monitor-i386-sev.c')) endif diff --git a/stubs/monitor-arm-gic.c b/stubs/monitor-arm-gic.c new file mode 100644 index 0000000000..b3429243ef --- /dev/null +++ b/stubs/monitor-arm-gic.c @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#include "qemu/osdep.h" +#include "qapi/error.h" +#include "qapi/qapi-commands-misc-arm.h" + + +GICCapabilityList *qmp_query_gic_capabilities(Error **errp) +{ + error_setg(errp, "GIC hardware is not available on this target"); + return NULL; +} |