aboutsummaryrefslogtreecommitdiff
path: root/hw/net/virtio-net.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2024-03-05 15:59:18 +0100
committerMarkus Armbruster <armbru@redhat.com>2024-03-12 14:03:37 +0100
commit28054406715a90e3fab96d4a29190e8857e57fbc (patch)
tree5e905d389420c56ce857206aff2a290fa49b0d15 /hw/net/virtio-net.c
parent8934643a0e2631d468940b05ae2332f219631d17 (diff)
downloadqemu-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/net/virtio-net.c')
0 files changed, 0 insertions, 0 deletions