aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCollin Walling <walling@linux.ibm.com>2025-06-29 22:44:04 -0400
committerThomas Huth <thuth@redhat.com>2025-07-02 18:26:27 +0200
commit27aa790376c9b111f872445a17d660db5e881911 (patch)
treeeb9c4d11ff8c73a15caa80f7b670c7a585e4b368
parentc6198abbb1ed80036f42523d885e1682b0bd9987 (diff)
downloadqemu-27aa790376c9b111f872445a17d660db5e881911.zip
qemu-27aa790376c9b111f872445a17d660db5e881911.tar.gz
qemu-27aa790376c9b111f872445a17d660db5e881911.tar.bz2
target/s390x: set has_deprecated_props flag
Now that the deprecated_props is an optional field, the expansion method must now set the "has_deprecated_props" flag in order for the data to be output from the response. Fixes: 448553bb7c (qapi: Make CpuModelExpansionInfo::deprecated-props optional and generic) Signed-off-by: Collin Walling <walling@linux.ibm.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20250630024404.940882-1-walling@linux.ibm.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
-rw-r--r--target/s390x/cpu_models_system.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/target/s390x/cpu_models_system.c b/target/s390x/cpu_models_system.c
index 9d84faa..5b84604 100644
--- a/target/s390x/cpu_models_system.c
+++ b/target/s390x/cpu_models_system.c
@@ -252,6 +252,9 @@ CpuModelExpansionInfo *qmp_query_cpu_model_expansion(CpuModelExpansionType type,
s390_feat_bitmap_to_ascii(deprecated_feats,
&expansion_info->deprecated_props, list_add_feat);
+
+ expansion_info->has_deprecated_props = !!expansion_info->deprecated_props;
+
return expansion_info;
}