Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp3416280rwe; Sun, 16 Apr 2023 19:52:36 -0700 (PDT) X-Google-Smtp-Source: AKy350Z6drozcNga+yyP5hi+Ty0nIoaa9579T4cWyCe794UAo/pLxW7tyNq2lkybbuay+yBlt4hJ X-Received: by 2002:a05:6a21:3281:b0:ef:af58:a90 with SMTP id yt1-20020a056a21328100b000efaf580a90mr3016576pzb.27.1681699955969; Sun, 16 Apr 2023 19:52:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681699955; cv=none; d=google.com; s=arc-20160816; b=iqDGQlViWgYzvEzwZEm6xQjCmojm7VmO1bVotuuz5zOty4qPYChJN/JFJZE0bmQMyO Mt7GWpPgkmOwMPna8zdpu6aPAbwPfiYBNKV3SYRv4NF4hGtHbwXop+bTIrS7HwCswaMz sugV3YxUyfkf79O1xqtdyAzRjmNdbHhoLhZEaubehHT1Rmf2vCbE6cLjbVjttS/XPbOU zxJBFYUQeKRpzzU8uKCCnB13Q7z74oRkKRlo0tKtbF0aNqGfJbbFZEtG/iHJvcskAzis /ndqA3N5zYuBJoq3I9lsyMk2cqSVWff8GaxN4KerDQ4v3FRDC3j6ZDEFw74uGW5NLf+T vjfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=jvO/FAjcaj1PbPYAH7TSFkcrMqlMFhcEMTd3cZkwHyE=; b=On1CLe4x9u+gjXCPhJPv0SJcZQN5zatpAdcFeokZ2Qw2ytL1yfJ7DDuYhBk2/5phuH vek9f1j6R9c1WQWMFMpfBlUdw0XCBij4Xr50OfL1a7zfsvfJtgP1QR4DIlZsGifMJbtg JdADDKJ2+NQ6ay2/ndlx/ZDNVE7eyM4eib065cB4WAyrlF94ZcPj07JuTKbzOLbUMPLv A8O3wPiHHU/9GS7LSNseVtXh4N1dZMo78JevfPSC97Ym/xyWofOYP6hdkrKJTvJSWYVY 179CcFahlUHOe730kksNgQ/z0DtYYzv2GiDG/mkVBJs1OaZ4Vllj1A12/+ilZh0LdToy 7HfQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w8-20020a634908000000b0051389efe297si10660086pga.265.2023.04.16.19.52.25; Sun, 16 Apr 2023 19:52:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229742AbjDQCrg (ORCPT + 99 others); Sun, 16 Apr 2023 22:47:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbjDQCre (ORCPT ); Sun, 16 Apr 2023 22:47:34 -0400 Received: from mx2.zhaoxin.com (mx2.zhaoxin.com [203.110.167.99]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 329222117 for ; Sun, 16 Apr 2023 19:47:33 -0700 (PDT) X-ASG-Debug-ID: 1681699650-1eb14e63880fab0001-xx1T2L Received: from ZXSHMBX1.zhaoxin.com (ZXSHMBX1.zhaoxin.com [10.28.252.163]) by mx2.zhaoxin.com with ESMTP id x1VcCWwhnV8HXCt1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Mon, 17 Apr 2023 10:47:30 +0800 (CST) X-Barracuda-Envelope-From: TonyWWang-oc@zhaoxin.com X-Barracuda-RBL-Trusted-Forwarder: 10.28.252.163 Received: from zxbjmbx1.zhaoxin.com (10.29.252.163) by ZXSHMBX1.zhaoxin.com (10.28.252.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Mon, 17 Apr 2023 10:47:29 +0800 Received: from [10.32.65.162] (10.32.65.162) by zxbjmbx1.zhaoxin.com (10.29.252.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Mon, 17 Apr 2023 10:47:28 +0800 X-Barracuda-RBL-Trusted-Forwarder: 10.28.252.163 Message-ID: <8647895b-560f-2272-aae4-eda00fc06eca@zhaoxin.com> X-Barracuda-RBL-Trusted-Forwarder: 10.32.65.162 Date: Mon, 17 Apr 2023 10:47:52 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH] x86/cpufeatures: extend CPUID leaf 0xc0000001 support for Zhaoxin Content-Language: en-US X-ASG-Orig-Subj: Re: [PATCH] x86/cpufeatures: extend CPUID leaf 0xc0000001 support for Zhaoxin To: Borislav Petkov CC: , , , , , , , , , , , , , , , References: <20230414095334.8743-1-TonyWWang-oc@zhaoxin.com> <20230414104808.GBZDkvaJechZSM+SI9@fat_crate.local> <7866e99a-df88-14fa-92ae-c5b5d176724b@zhaoxin.com> <20230414134824.GCZDlZqDWLl6A958SF@fat_crate.local> From: Tony W Wang-oc In-Reply-To: <20230414134824.GCZDlZqDWLl6A958SF@fat_crate.local> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.32.65.162] X-ClientProxiedBy: ZXSHCAS2.zhaoxin.com (10.28.252.162) To zxbjmbx1.zhaoxin.com (10.29.252.163) X-Barracuda-Connect: ZXSHMBX1.zhaoxin.com[10.28.252.163] X-Barracuda-Start-Time: 1681699650 X-Barracuda-Encrypted: ECDHE-RSA-AES128-GCM-SHA256 X-Barracuda-URL: https://10.28.252.36:4443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at zhaoxin.com X-Barracuda-Scan-Msg-Size: 807 X-Barracuda-BRTS-Status: 1 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.107522 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/14/23 21:48, Borislav Petkov wrote: > On Fri, Apr 14, 2023 at 09:14:17PM +0800, Tony W Wang-oc wrote: >> The instructions about these flags can be executed at any privilege >> level. I think using these flags in kernel mode is a case. This patch >> shows the statement of these flags to the user mode explicitly. So users >> can see and use these CPU features conveniently. >> >>> If you want to dump them on the hardware to know what's set or not, >>> there's tools/arch/x86/kcpuid/ for that. > > See this here. We have this tool exactly for users who wanna see CPU > features. All CPU features, as a matter of fact. > Ok, will patch this tool for Zhaoxin extended CPUID leaf. Will add Zhaoxin CPU features to kernel when they are used by the kernel. Sincerely TonyWWangoc