Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8ACEAD49222 for ; Mon, 18 Nov 2024 13:38:29 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tD1wp-0007ew-8J; Mon, 18 Nov 2024 08:37:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tD1wc-0007eI-Et; Mon, 18 Nov 2024 08:37:37 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tD1wZ-0004Zx-3w; Mon, 18 Nov 2024 08:37:32 -0500 Received: from pps.filterd (m0356516.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4AI92mgG026207; Mon, 18 Nov 2024 13:37:29 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pp1; bh=5JNFD5 1VP8B3hzEdKasNETb+EDOg/VMBnYPX1cO24eI=; b=CElXxFt2Gv1ZOZV6h/0AYq 6lz5DAJJLHcWogjpTN36WxCwTyMrM5djlgGneJSigrcyrivZsWERjIoPJP1QVxMi Wub/sEr2ovLFoNWy/0C1ze2RYqTQ8E3DOXqh3q5FeRC/vhQoxeGj6ZRdusj2wOu+ mqeBgeQVbpz6ngDDjLEK6QjkemnwII/cu4zlY2wTG+CI7FwaV2jDl9MWArw9hyVe 113xniTLEzkErLdHqUwV9WdesB/UAv2AOdaRYQjL31C8kEJYd/HS92qPHu2V1bOu G5tJBCj3jtfX3WLIkntkLLH0YUc6sxw/rRHd77UD+ebOK2gcLIghw7L7rz+86/Wg == Received: from ppma11.dal12v.mail.ibm.com (db.9e.1632.ip4.static.sl-reverse.com [50.22.158.219]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 42xgtt1v4c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 18 Nov 2024 13:37:29 +0000 (GMT) Received: from pps.filterd (ppma11.dal12v.mail.ibm.com [127.0.0.1]) by ppma11.dal12v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id 4AI4DHYw024623; Mon, 18 Nov 2024 13:37:28 GMT Received: from smtprelay03.fra02v.mail.ibm.com ([9.218.2.224]) by ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 42y8e1ahgp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 18 Nov 2024 13:37:28 +0000 Received: from smtpav05.fra02v.mail.ibm.com (smtpav05.fra02v.mail.ibm.com [10.20.54.104]) by smtprelay03.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 4AIDbPhq26280212 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 18 Nov 2024 13:37:25 GMT Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3FD0920043; Mon, 18 Nov 2024 13:37:25 +0000 (GMT) Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 06DFD20040; Mon, 18 Nov 2024 13:37:25 +0000 (GMT) Received: from [9.152.224.204] (unknown [9.152.224.204]) by smtpav05.fra02v.mail.ibm.com (Postfix) with ESMTP; Mon, 18 Nov 2024 13:37:24 +0000 (GMT) Message-ID: <367d5fdc-254f-4c9b-b201-255326bc0fdf@linux.ibm.com> Date: Mon, 18 Nov 2024 14:37:24 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH 03/14] s390x/cpumodel: add msa12 changes To: Hendrik Brueckner , qemu-devel@nongnu.org, qemu-s390x@nongnu.org, thuth@redhat.com Cc: nsg@linux.ibm.com, frankja@linux.ibm.com, mimu@linux.ibm.com References: <20241112155420.42042-1-brueckner@linux.ibm.com> <20241112155420.42042-4-brueckner@linux.ibm.com> Content-Language: en-US From: Christian Borntraeger In-Reply-To: <20241112155420.42042-4-brueckner@linux.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: rPtVDHNHg5-hUOtgxZFB4cIpPDhwGqNM X-Proofpoint-ORIG-GUID: rPtVDHNHg5-hUOtgxZFB4cIpPDhwGqNM X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1051,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-10-15_01,2024-10-11_01,2024-09-30_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 phishscore=0 mlxscore=0 malwarescore=0 mlxlogscore=999 adultscore=0 priorityscore=1501 bulkscore=0 impostorscore=0 spamscore=0 lowpriorityscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2409260000 definitions=main-2411180112 Received-SPF: pass client-ip=148.163.158.5; envelope-from=borntraeger@linux.ibm.com; helo=mx0b-001b2d01.pphosted.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Am 12.11.24 um 16:54 schrieb Hendrik Brueckner: > MSA12 changes the KIMD/KLMD instruction format for SHA3/SHAKE. > > Signed-off-by: Hendrik Brueckner Reviewed-by: Christian Borntraeger > --- > target/s390x/cpu_features_def.h.inc | 1 + > target/s390x/gen-features.c | 8 ++++++++ > 2 files changed, 9 insertions(+) > > diff --git a/target/s390x/cpu_features_def.h.inc b/target/s390x/cpu_features_def.h.inc > index 15ea51fc54..2e5dc96984 100644 > --- a/target/s390x/cpu_features_def.h.inc > +++ b/target/s390x/cpu_features_def.h.inc > @@ -90,6 +90,7 @@ DEF_FEAT(EDAT_2, "edat2", STFL, 78, "Enhanced-DAT facility 2") > DEF_FEAT(DFP_PACKED_CONVERSION, "dfppc", STFL, 80, "Decimal-floating-point packed-conversion facility") > DEF_FEAT(PPA15, "ppa15", STFL, 81, "PPA15 is installed") > DEF_FEAT(BPB, "bpb", STFL, 82, "Branch prediction blocking") > +DEF_FEAT(MSA_EXT_12, "msa12-base", STFL, 86, "Message-security-assist-extension-12 facility (excluding subfunctions)") > DEF_FEAT(VECTOR, "vx", STFL, 129, "Vector facility") > DEF_FEAT(INSTRUCTION_EXEC_PROT, "iep", STFL, 130, "Instruction-execution-protection facility") > DEF_FEAT(SIDE_EFFECT_ACCESS_ESOP2, "sea_esop2", STFL, 131, "Side-effect-access facility and Enhanced-suppression-on-protection facility 2") > diff --git a/target/s390x/gen-features.c b/target/s390x/gen-features.c > index d6305f945a..ab9ad51d5e 100644 > --- a/target/s390x/gen-features.c > +++ b/target/s390x/gen-features.c > @@ -270,6 +270,9 @@ > S390_FEAT_PCKMO_HMAC_512, \ > S390_FEAT_PCKMO_HMAC_1024 > > +#define S390_FEAT_GROUP_MSA_EXT_12 \ > + S390_FEAT_MSA_EXT_12 > + > #define S390_FEAT_GROUP_ENH_SORT \ > S390_FEAT_ESORT_BASE, \ > S390_FEAT_SORTL_SFLR, \ > @@ -339,6 +342,10 @@ static uint16_t group_MSA_EXT_11[] = { > S390_FEAT_GROUP_MSA_EXT_11, > }; > > +static uint16_t group_MSA_EXT_12[] = { > + S390_FEAT_GROUP_MSA_EXT_12, > +}; > + > static uint16_t group_MSA_EXT_9_PCKMO[] = { > S390_FEAT_GROUP_MSA_EXT_9_PCKMO, > }; > @@ -902,6 +909,7 @@ static FeatGroupDefSpec FeatGroupDef[] = { > FEAT_GROUP_INITIALIZER(MSA_EXT_10_PCKMO), > FEAT_GROUP_INITIALIZER(MSA_EXT_11), > FEAT_GROUP_INITIALIZER(MSA_EXT_11_PCKMO), > + FEAT_GROUP_INITIALIZER(MSA_EXT_12), > FEAT_GROUP_INITIALIZER(MULTIPLE_EPOCH_PTFF), > FEAT_GROUP_INITIALIZER(ENH_SORT), > FEAT_GROUP_INITIALIZER(DEFLATE_CONVERSION), As an optional enhancement we could add a dependency to MSA6 in check_consistency but certainly not important.