From: Collin Walling <walling@linux.ibm.com>
To: qemu-devel@nongnu.org, qemu-s390x@nongnu.org
Cc: Hendrik Brueckner <brueckner@linux.ibm.com>,
David Hildenbrand <david@kernel.org>,
Richard Henderson <richard.henderson@linaro.org>,
Ilya Leoshkevich <iii@linux.ibm.com>,
Cornelia Huck <cohuck@redhat.com>,
Eric Farman <farman@linux.ibm.com>,
Matthew Rosato <mjrosato@linux.ibm.com>
Subject: [PATCH v1 2/2] target/s390x: mark feats dependent on deprecated feats as deprecated
Date: Thu, 8 Oct 2026 17:59:56 -0400 [thread overview]
Message-ID: <20261008215956.164881-3-walling@linux.ibm.com> (raw)
In-Reply-To: <20261008215956.164881-1-walling@linux.ibm.com>
There are certain CPU model features that depend on other features
that are flagged for deprecation. For example `ineff_nc_tx` depends
on the `te` deprecated feature.
If a user defines a VM with the current list of deprecated features
disabled, the following is observed:
warning: 'ineff_nc_tx' requires 'te'
In some cases, this will cause a VM to crash or it may refuse to
start.
To alleviate this, add these "dependent features" to the deprecated
features list. This allows the user to see *all* features that should
be disabled to ensure a successful migration to a host system that
does not support certain deprecated features.
Signed-off-by: Collin Walling <walling@linux.ibm.com>
Reviewed-by: Hendrik Brueckner <brueckner@linux.ibm.com>
---
target/s390x/cpu_features.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/target/s390x/cpu_features.c b/target/s390x/cpu_features.c
index 20f9947c7be..297c8129e2d 100644
--- a/target/s390x/cpu_features.c
+++ b/target/s390x/cpu_features.c
@@ -359,11 +359,20 @@ void s390_get_deprecated_features(S390FeatBitmap features)
S390_FEAT_CONSTRAINT_TRANSACTIONAL_EXE,
S390_FEAT_TRANSACTIONAL_EXE
};
- int i;
+ int i, j;
for (i = 0; i < ARRAY_SIZE(feats); i++) {
set_bit(feats[i], features);
}
+
+ /* Mark features that depend on feats[] */
+ for (i = 0; i < ARRAY_SIZE(feats); i++) {
+ for (j = 0; j < s390_feat_deps_len; j++) {
+ if (s390_feat_deps[j][1] == feats[i]) {
+ set_bit(s390_feat_deps[j][0], features);
+ }
+ }
+ }
}
#define FEAT_GROUP_INIT(_name, _group, _desc) \
--
2.55.0
next prev parent reply other threads:[~2026-10-08 22:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-08 21:59 [PATCH v1 0/2] s390: mark features that depend on deprecated features as deprecated Collin Walling
2026-10-08 21:59 ` [PATCH v1 1/2] target/s390x: externalize feat dependency array Collin Walling
2026-10-08 21:59 ` Collin Walling [this message]
2026-10-08 22:53 ` [PATCH v1 2/2] target/s390x: mark feats dependent on deprecated feats as deprecated Matthew Rosato
2026-10-09 14:15 ` Collin Walling
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=20261008215956.164881-3-walling@linux.ibm.com \
--to=walling@linux.ibm.com \
--cc=brueckner@linux.ibm.com \
--cc=cohuck@redhat.com \
--cc=david@kernel.org \
--cc=farman@linux.ibm.com \
--cc=iii@linux.ibm.com \
--cc=mjrosato@linux.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-s390x@nongnu.org \
--cc=richard.henderson@linaro.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.