From nobody Tue Feb 10 00:23:24 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=de.ibm.com ARC-Seal: i=1; a=rsa-sha256; t=1556277160; cv=none; d=zoho.com; s=zohoarc; b=MGds1jrfILBjcQR3LoREIO3l5NLFK5nKl/84Q593+KvrLXCbKsHtqGzWGN+1VsJAkVWgMS8uwUHpadJkdqsfEuTkX8tmMvHFNO7+SvjEMdLxy1ZUKPAipV0Bfb/0LdmLO44bW6JWicmEh+A/vHy3dGF4/YJqhUKwPapQaspM2Lc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556277160; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=kpWrfRBL1GOvuixJvovXiCfCRSHJ4j/bXQkdZUYuLj0=; b=h4hHfqbOhesxeeyj5mQiBH7hhixWfa54QUmtqhLRo3lshu5j2jPOhkMtTO3rLjsJv54az8DAF/IHz0Lo6+X5qKvbL/xjFru14Qxa/Cjiu8/j3JuuM67YT5Ho+IkrMPgFZra+RMAvGTSiRaa/KNocKUKJlu4vxMOABmmxyWcmjTk= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (209.51.188.17 [209.51.188.17]) by mx.zohomail.com with SMTPS id 1556277160337419.9778692841911; Fri, 26 Apr 2019 04:12:40 -0700 (PDT) Received: from localhost ([127.0.0.1]:44937 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJymO-0003UV-QN for importer@patchew.org; Fri, 26 Apr 2019 07:12:32 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJykV-0001vc-Ae for qemu-devel@nongnu.org; Fri, 26 Apr 2019 07:10:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hJykU-00035n-D5 for qemu-devel@nongnu.org; Fri, 26 Apr 2019 07:10:35 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:35066) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hJykU-00033o-26 for qemu-devel@nongnu.org; Fri, 26 Apr 2019 07:10:34 -0400 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x3QB8dfW085147 for ; Fri, 26 Apr 2019 07:10:32 -0400 Received: from e35.co.us.ibm.com (e35.co.us.ibm.com [32.97.110.153]) by mx0a-001b2d01.pphosted.com with ESMTP id 2s3y20nmt9-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 26 Apr 2019 07:10:27 -0400 Received: from localhost by e35.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 26 Apr 2019 12:10:22 +0100 Received: from b03cxnp07029.gho.boulder.ibm.com (9.17.130.16) by e35.co.us.ibm.com (192.168.1.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Fri, 26 Apr 2019 12:10:15 +0100 Received: from b03ledav006.gho.boulder.ibm.com (b03ledav006.gho.boulder.ibm.com [9.17.130.237]) by b03cxnp07029.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x3QBADNw15007820 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 26 Apr 2019 11:10:13 GMT Received: from b03ledav006.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 664ABC6059; Fri, 26 Apr 2019 11:10:13 +0000 (GMT) Received: from b03ledav006.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A03FDC6055; Fri, 26 Apr 2019 11:10:12 +0000 (GMT) Received: from localhost.localdomain (unknown [9.114.17.106]) by b03ledav006.gho.boulder.ibm.com (Postfix) with ESMTP; Fri, 26 Apr 2019 11:10:12 +0000 (GMT) From: Christian Borntraeger To: Cornelia Huck Date: Fri, 26 Apr 2019 07:10:02 -0400 X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190426111003.21246-1-borntraeger@de.ibm.com> References: <20190426111003.21246-1-borntraeger@de.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 19042611-0012-0000-0000-0000172C49F1 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00010998; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000285; SDB=6.01194611; UDB=6.00626339; IPR=6.00975446; MB=3.00026607; MTD=3.00000008; XFM=3.00000015; UTC=2019-04-26 11:10:20 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19042611-0013-0000-0000-000057047BC5 Message-Id: <20190426111003.21246-10-borntraeger@de.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-04-26_07:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=492 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904260078 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 148.163.156.1 Subject: [Qemu-devel] [PATCH v2 09/10] s390x/cpumodel: disable csske and bpb from gen15 cpu models onwards X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Jason J . Herne" , Collin Walling , David Hildenbrand , qemu-devel , Halil Pasic , qemu-s390x , Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" These facilities are deprecated and no longer needed. Signed-off-by: Christian Borntraeger --- target/s390x/gen-features.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/target/s390x/gen-features.c b/target/s390x/gen-features.c index 6260f56dc1..c346b76bdf 100644 --- a/target/s390x/gen-features.c +++ b/target/s390x/gen-features.c @@ -13,6 +13,7 @@ =20 #include #include +#include #include "cpu_features_def.h" =20 #define ARRAY_SIZE(array) (sizeof(array) / sizeof(array[0])) @@ -833,6 +834,11 @@ static void set_bits(uint64_t list[], BitSpec bits) } } =20 +static inline void clear_bit(uint64_t list[], unsigned long nr) +{ + list[nr / 64] &=3D ~(1ULL << (nr % 64)); +} + static void print_feature_defs(void) { uint64_t base_feat[S390_FEAT_MAX / 64 + 1] =3D {}; @@ -843,6 +849,12 @@ static void print_feature_defs(void) printf("\n/* CPU model feature list data */\n"); =20 for (i =3D 0; i < ARRAY_SIZE(CpuFeatDef); i++) { + /* With gen15 CSSKE and BPB are deprecated */ + if (strcmp(CpuFeatDef[i].name, "S390_FEAT_LIST_GEN15_GA1") =3D=3D = 0) { + clear_bit(base_feat, S390_FEAT_CONDITIONAL_SSKE); + clear_bit(default_feat, S390_FEAT_CONDITIONAL_SSKE); + clear_bit(default_feat, S390_FEAT_BPB); + } set_bits(base_feat, CpuFeatDef[i].base_bits); /* add the base to the default features */ set_bits(default_feat, CpuFeatDef[i].base_bits); --=20 2.17.1