From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-22.4 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 83E09C433F5 for ; Tue, 7 Sep 2021 11:40:43 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 0768D6103D for ; Tue, 7 Sep 2021 11:40:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 0768D6103D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:41504 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNZSz-0007Bq-Sf for qemu-devel@archiver.kernel.org; Tue, 07 Sep 2021 07:40:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59800) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNZQt-0006I3-7h for qemu-devel@nongnu.org; Tue, 07 Sep 2021 07:38:31 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:47910) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNZQi-0008Fy-CD for qemu-devel@nongnu.org; Tue, 07 Sep 2021 07:38:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1631014695; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HAtL6L3SYVGu3MNvxU+Sd6EzPHhfsbErp71QFuR7lNM=; b=BxgqBVjVwcGYb42277+dE+dBZo9Z3kUob5moqfL8J7DUBACCW/8Jn7H9abYERH2046du0U B0tJ0SPLFVLc0b0zP8WCZ3mVhghdqs1lVo2ZMKaxSAvzP/C1BTRAi5cZrD9zu5rSNWBJDS d5dag7OaOgy5qbh0Tihh/b93HJPXE7o= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-585-M_02Mzp9P8idWyFZsnemeg-1; Tue, 07 Sep 2021 07:38:14 -0400 X-MC-Unique: M_02Mzp9P8idWyFZsnemeg-1 Received: by mail-wm1-f69.google.com with SMTP id v2-20020a7bcb420000b02902e6b108fcf1so1061114wmj.8 for ; Tue, 07 Sep 2021 04:38:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=HAtL6L3SYVGu3MNvxU+Sd6EzPHhfsbErp71QFuR7lNM=; b=Tazu7HfwHQ3N68l0gcQlgSO6oA7yhvdfUD4lgxLPsIgJc3BgkZecULblHQdrfwIIGB ALfK4UHRcqlIV32dR7CLbEl+TPQmGRKXA3yxQV/dPiDPqAV2Q7D06qCa5Pgow/eesVM5 WlIEPkiZ+ulqYVhcNLe4hlqXkT+RouunfbNlqj9LcyhTNv47oW8Cglfa6vPHWNbDGvxT epJzUdwX+rysBGadKp/HARQoprSh8277V0xTrSbA03WRsn7ZYNaTOLsHg6Fu1UoZe1Ks VhkcbLhlOLYcGMNFVOOY1S0sauXg5xpGsItG6p5Ez9sIO6BBA5FaqxyEWegsocV97IeM IUlQ== X-Gm-Message-State: AOAM530vJ2XhLk+UGmnYPE4LxTUjhQ9gGKXko1NIFW9Rohh3dJ9RJ2pd nfqQasEtylvpPQWmD463nnm4zCckesQ9WUHLk2ajhq90YjjaFDYwR7XrPu8W8vZ6kFWqecFaugs JZgAYC2Ixb6yrNOA= X-Received: by 2002:a5d:548f:: with SMTP id h15mr17869969wrv.290.1631014693298; Tue, 07 Sep 2021 04:38:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlVdd56lDF5YYOUwfugECWM3sFKZ3zu7IwwqRGcaDFkM4/lRR5RuguV1CWsQkXFK0hif2n3A== X-Received: by 2002:a5d:548f:: with SMTP id h15mr17869936wrv.290.1631014693103; Tue, 07 Sep 2021 04:38:13 -0700 (PDT) Received: from thuth.remote.csb (pd9e8396c.dip0.t-ipconnect.de. [217.232.57.108]) by smtp.gmail.com with ESMTPSA id 17sm2044238wmj.20.2021.09.07.04.38.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Sep 2021 04:38:12 -0700 (PDT) Subject: Re: [PATCH v2] s390x/cpumodel: Add more feature to gen16 default model To: Christian Borntraeger References: <20210907101017.27126-1-borntraeger@de.ibm.com> From: Thomas Huth Message-ID: <88d42564-3bcf-9058-dade-5ce85a7e9c1f@redhat.com> Date: Tue, 7 Sep 2021 13:38:11 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20210907101017.27126-1-borntraeger@de.ibm.com> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=thuth@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=216.205.24.124; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -54 X-Spam_score: -5.5 X-Spam_bar: ----- X-Spam_report: (-5.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.391, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-2.332, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Janosch Frank , David Hildenbrand , Cornelia Huck , Richard Henderson , qemu-devel , Halil Pasic , qemu-s390x Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 07/09/2021 12.10, Christian Borntraeger wrote: > Add the new gen16 features to the default model and fence them for > machine version 6.1 and earlier. > > Signed-off-by: Christian Borntraeger > --- > hw/s390x/s390-virtio-ccw.c | 5 +++++ > target/s390x/gen-features.c | 8 +++++++- > 2 files changed, 12 insertions(+), 1 deletion(-) > > diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c > index 4d25278cf20e..61aeccb163f7 100644 > --- a/hw/s390x/s390-virtio-ccw.c > +++ b/hw/s390x/s390-virtio-ccw.c > @@ -803,6 +803,11 @@ DEFINE_CCW_MACHINE(6_2, "6.2", true); > static void ccw_machine_6_1_instance_options(MachineState *machine) > { > ccw_machine_6_2_instance_options(machine); > + s390_cpudef_featoff_greater(16, 1, S390_FEAT_NNPA); > + s390_cpudef_featoff_greater(16, 1, S390_FEAT_VECTOR_PACKED_DECIMAL_ENH2); > + s390_cpudef_featoff_greater(16, 1, S390_FEAT_BEAR_ENH); > + s390_cpudef_featoff_greater(16, 1, S390_FEAT_RDP); > + s390_cpudef_featoff_greater(16, 1, S390_FEAT_PAI); > } > > static void ccw_machine_6_1_class_options(MachineClass *mc) > diff --git a/target/s390x/gen-features.c b/target/s390x/gen-features.c > index 7d85322d6814..7cb1a6ec10be 100644 > --- a/target/s390x/gen-features.c > +++ b/target/s390x/gen-features.c > @@ -663,7 +663,13 @@ static uint16_t default_GEN15_GA1[] = { > S390_FEAT_ETOKEN, > }; > > -#define default_GEN16_GA1 EmptyFeat > +static uint16_t default_GEN16_GA1[] = { > + S390_FEAT_NNPA, > + S390_FEAT_VECTOR_PACKED_DECIMAL_ENH2, > + S390_FEAT_BEAR_ENH, > + S390_FEAT_RDP, > + S390_FEAT_PAI, > +}; > > /* QEMU (CPU model) features */ > > Thanks, queued to my s390x-next branch: https://gitlab.com/thuth/qemu/-/commits/s390x-next/ Thomas