qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Huth <thuth@redhat.com>
To: qemu-devel@nongnu.org
Cc: "Stefan Hajnoczi" <stefanha@redhat.com>,
	"Collin Walling" <walling@linux.ibm.com>,
	"Philippe Mathieu-Daudé" <philmd@linaro.org>
Subject: [PULL 7/9] target/s390x: set has_deprecated_props flag
Date: Wed,  2 Jul 2025 19:02:02 +0200	[thread overview]
Message-ID: <20250702170206.212303-8-thuth@redhat.com> (raw)
In-Reply-To: <20250702170206.212303-1-thuth@redhat.com>

From: Collin Walling <walling@linux.ibm.com>

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>
---
 target/s390x/cpu_models_system.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/target/s390x/cpu_models_system.c b/target/s390x/cpu_models_system.c
index 9d84faa3c9e..5b846048675 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;
 }
 
-- 
2.50.0



  parent reply	other threads:[~2025-07-02 17:04 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-02 17:01 [PULL 0/9] Various fixes for MAINTAINERS, s390x and tests Thomas Huth
2025-07-02 17:01 ` [PULL 1/9] MAINTAINERS: update docs file extensions (.txt -> .rst) Thomas Huth
2025-07-02 17:01 ` [PULL 2/9] MAINTAINERS: fix vendor capitalization (Vmware -> VMware) Thomas Huth
2025-07-02 17:01 ` [PULL 3/9] MAINTAINERS: fix VMware filename typo (vwm -> vmw) Thomas Huth
2025-07-02 17:01 ` [PULL 4/9] treewide: update docs file extensions (.txt -> .rst) in comments Thomas Huth
2025-07-02 17:02 ` [PULL 5/9] treewide: fix paths for relocated files " Thomas Huth
2025-07-02 17:02 ` [PULL 6/9] MAINTAINERS: fix paths for relocated files Thomas Huth
2025-07-02 17:02 ` Thomas Huth [this message]
2025-07-02 17:02 ` [PULL 8/9] target/s390x: A fix for the trouble with tribles Thomas Huth
2025-07-02 17:02 ` [PULL 9/9] tests/functional/test_aarch64_sbsaref_freebsd: Fix the URL of the ISO image Thomas Huth
2025-07-03 13:37 ` [PULL 0/9] Various fixes for MAINTAINERS, s390x and tests Stefan Hajnoczi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250702170206.212303-8-thuth@redhat.com \
    --to=thuth@redhat.com \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    --cc=walling@linux.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).