diff options
author | Markus Armbruster <armbru@redhat.com> | 2024-03-05 15:59:18 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2024-03-12 14:03:37 +0100 |
commit | 28054406715a90e3fab96d4a29190e8857e57fbc (patch) | |
tree | 5e905d389420c56ce857206aff2a290fa49b0d15 /hw/remote/proxy.c | |
parent | 8934643a0e2631d468940b05ae2332f219631d17 (diff) | |
download | qemu-28054406715a90e3fab96d4a29190e8857e57fbc.zip qemu-28054406715a90e3fab96d4a29190e8857e57fbc.tar.gz qemu-28054406715a90e3fab96d4a29190e8857e57fbc.tar.bz2 |
target/loongarch: Fix query-cpu-model-expansion to reject props
query-cpu-model-expansion takes a CpuModelInfo argument. The
loongarch version of the command silently ignores the argument's
member @props. For instance,
{"execute": "query-cpu-model-expansion", "arguments": {"type": "static", "model": {"name": "la464", "props": null}}}
and
{"execute": "query-cpu-model-expansion", "arguments": {"type": "static", "model": {"name": "la464", "props": {"prop": null}}}}
succeed.
Add skeleton code for property processing that recognizes no
properties. Now the two commands fail as they should:
{"error": {"class": "GenericError", "desc": "Invalid parameter type for 'model.props', expected: object"}}
and
{"error": {"class": "GenericError", "desc": "Parameter 'model.props.prop' is unexpected"}}
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20240305145919.2186971-5-armbru@redhat.com>
[Drop #include now superfluous]
Diffstat (limited to 'hw/remote/proxy.c')
0 files changed, 0 insertions, 0 deletions