[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 08/12] qapi: Make CpuModelExpansionInfo::deprecated-props optiona
From: |
Pierrick Bouvier |
Subject: |
[PATCH 08/12] qapi: Make CpuModelExpansionInfo::deprecated-props optional and generic |
Date: |
Wed, 14 May 2025 16:41:04 -0700 |
From: Philippe Mathieu-Daudé <philmd@linaro.org>
We'd like to have some unified QAPI schema. Having a structure field
conditional to a target being built in is not very practical.
While @deprecated-props is only used by s390x target, it is generic
enough and could be used by other targets (assuming we expand
CpuModelExpansionType enum values).
Let's always include this field, regardless of the target, but
make it optional.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
---
qapi/machine-target.json | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/qapi/machine-target.json b/qapi/machine-target.json
index 426ce4ee82d..e153291a7fc 100644
--- a/qapi/machine-target.json
+++ b/qapi/machine-target.json
@@ -244,19 +244,18 @@
#
# @model: the expanded CpuModelInfo.
#
-# @deprecated-props: a list of properties that are flagged as
+# @deprecated-props: an optional list of properties that are flagged as
# deprecated by the CPU vendor. The list depends on the
# CpuModelExpansionType: "static" properties are a subset of the
# enabled-properties for the expanded model; "full" properties are
# a set of properties that are deprecated across all models for
-# the architecture. (since: 9.1).
+# the architecture. (since: 10.1 -- since 9.1 on s390x --).
#
# Since: 2.8
##
{ 'struct': 'CpuModelExpansionInfo',
'data': { 'model': 'CpuModelInfo',
- 'deprecated-props' : { 'type': ['str'],
- 'if': 'TARGET_S390X' } },
+ '*deprecated-props' : { 'type': ['str'] } },
'if': { 'any': [ 'TARGET_S390X',
'TARGET_I386',
'TARGET_ARM',
--
2.47.2
- [PATCH 00/12] qapi: remove all TARGET_* conditionals from the schema, Pierrick Bouvier, 2025/05/14
- [PATCH 01/12] qapi: expose rtc-reset-reinjection command unconditionally, Pierrick Bouvier, 2025/05/14
- [PATCH 02/12] qapi: expand docs for SEV commands, Pierrick Bouvier, 2025/05/14
- [PATCH 04/12] qapi: expose query-gic-capability command unconditionally, Pierrick Bouvier, 2025/05/14
- [PATCH 07/12] qapi: remove the misc-target.json file, Pierrick Bouvier, 2025/05/14
- [PATCH 08/12] qapi: Make CpuModelExpansionInfo::deprecated-props optional and generic,
Pierrick Bouvier <=
- [PATCH 03/12] qapi: make SEV commands unconditionally available, Pierrick Bouvier, 2025/05/14
- [PATCH 05/12] qapi: make SGX commands unconditionally available, Pierrick Bouvier, 2025/05/14
- [PATCH 06/12] qapi: make Xen event commands unconditionally available, Pierrick Bouvier, 2025/05/14
- [PATCH 11/12] qapi: remove qapi_specific_outputs from meson.build, Pierrick Bouvier, 2025/05/14
- [PATCH 09/12] qapi: make most CPU commands unconditionally available, Pierrick Bouvier, 2025/05/14
- [PATCH 10/12] qapi: make s390x specific CPU commands unconditionally available, Pierrick Bouvier, 2025/05/14