target/s390x: move @deprecated-props to CpuModelExpansion Info
authorCollin Walling <walling@linux.ibm.com>
Fri, 26 Jul 2024 20:36:46 +0000 (16:36 -0400)
committerDavid Hildenbrand <david@redhat.com>
Mon, 29 Jul 2024 19:47:16 +0000 (21:47 +0200)
commit442110bc6f3f308aedf884103fdba87ba906dfe7
tree35292c5c46ace4ebed417294addcc811bc325088
parent8e466dd092469e5ab0f355775c571ea96f3a8e23
target/s390x: move @deprecated-props to CpuModelExpansion Info

CpuModelInfo is used both as command argument and in command
returns.

Its @deprecated-props array does not make any sense in arguments,
and is silently ignored.  We actually want it only as return value
of query-cpu-model-expansion.

Move it from CpuModelInfo to CpuModelExpansionType, and document
its dependence on expansion type property.

This was identified late during review [1] and we have to fix it up
while it's not part of an official QEMU release yet.

[1] https://lore.kernel.org/qemu-devel/20240719181741.35146-1-walling@linux.ibm.com/

Message-ID: <20240726203646.20279-1-walling@linux.ibm.com>
Fixes: eed0e8ffa38f ("target/s390x: filter deprecated properties based on model expansion type")
Signed-off-by: Collin Walling <walling@linux.ibm.com>
[ david: - add "Fixes", adjust description, reference v3 instead
         - make property s390x-only and non-optional
         - fixup "populate" vs. "populated" ]
Signed-off-by: David Hildenbrand <david@redhat.com>
qapi/machine-target.json
target/s390x/cpu_models_sysemu.c