aboutsummaryrefslogtreecommitdiff
path: root/accel/meson.build
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2024-07-12 14:24:54 +0100
committerKonstantin Kostiuk <kkostiuk@redhat.com>2024-07-19 11:50:35 +0300
commit4be55a4fce18de5ce660a0c2b0961a6333fd957f (patch)
tree2ee5d4d9f2352843b2f953f9cffc4c19674db87c /accel/meson.build
parent2799f434a404276027f3e33debdcfae465ddac97 (diff)
downloadqemu-4be55a4fce18de5ce660a0c2b0961a6333fd957f.zip
qemu-4be55a4fce18de5ce660a0c2b0961a6333fd957f.tar.gz
qemu-4be55a4fce18de5ce660a0c2b0961a6333fd957f.tar.bz2
qga: conditionalize schema for commands not supported on other UNIX
Rather than creating stubs for every command that just return QERR_UNSUPPORTED, use 'if' conditions in the QAPI schema to fully exclude generation of the commands on other UNIX. The command will be rejected at QMP dispatch time instead, avoiding reimplementing rejection by blocking the stub commands. This changes the error message for affected commands from {"class": "CommandNotFound", "desc": "Command FOO has been disabled"} to {"class": "CommandNotFound", "desc": "The command FOO has not been found"} This has the additional benefit that the QGA protocol reference now documents what conditions enable use of the command. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Konstantin Kostiuk <kkostiuk@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org> Message-ID: <20240712132459.3974109-18-berrange@redhat.com> Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
Diffstat (limited to 'accel/meson.build')
0 files changed, 0 insertions, 0 deletions