Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4448898ioa; Wed, 27 Apr 2022 04:14:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJxf4fxHcUeIVpOjb15SXPYB/gMVXT+/N7KaVqF9u7MiIu483TY6f/xx8grJ2qX0IKQAba X-Received: by 2002:a63:8749:0:b0:3ab:2603:c80d with SMTP id i70-20020a638749000000b003ab2603c80dmr13665734pge.412.1651058041332; Wed, 27 Apr 2022 04:14:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651058041; cv=none; d=google.com; s=arc-20160816; b=yHKd7THa9Kh9nw4L558LkbwBYnE4C1e4EU4kDxw2MySvtkztGRcrWpJNWgnbZ1DOP2 xpttds62szfhBXv64rTo+GXnqVlEKhnY9cNaP+fIZQoquF77QDsNBKTNUGVtmiVA54bU YTAZVHPYzLvJIwE5VCotvInedIv2OxSqQOjNNaQMzEX8mmD3nmxSjVcblULm04Dh42IN W6gtAQ8UEF4/Jca/NTceD9ACYeaY6iOgiCMQM6Am7lZy1+zYNPgXb08B4R38ThouMu+h uCyOSnxbOVGzWfIALp/3k78wEh4DyAknSa4y139FlfBv6aJP6cCjkRdfq7ALB5BwD6Wc ezAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from; bh=bMz7JzwJ6NtrlbD+H6SNNIEK+OkBFlyf0Gg5Gk8QYV8=; b=xp5iWUg/DJFgVFD7d3afbKInkbPhieOXBGw+IBMrxHzpZNf5SA5mh/BERYgnrELXeJ fk5swomy3ZHe0tVfFa/GkJ+TnXjG7+Uk96lIcEUUD52o7v+9MDRzEh9sDrJkCor2edU2 FulEnH6FfdcYYPoJzNZeUrVAm8Gw28bJIa4irXEDtCY9jMm5TdzUNoyUjbb16q2wWJRi tIL71J5SIHHivCm410p0iz9GEUCSdU8fFmNlO4WXNto71CACcpiMM1N1Xby0lYDklDKB wGwztAadXh6D3coSiwQTJo6hkV+YkV24MtGERbK2YlmcjmIOxlcpJR+aiMlyeGY7Y4BD 7pBw== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hygon.cn Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id be6-20020a170902aa0600b0015cd18f032fsi344769plb.155.2022.04.27.04.14.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 04:14:01 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hygon.cn Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BEF0144D7C3; Wed, 27 Apr 2022 03:08:01 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349661AbiDZLw3 (ORCPT + 99 others); Tue, 26 Apr 2022 07:52:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244202AbiDZLw0 (ORCPT ); Tue, 26 Apr 2022 07:52:26 -0400 Received: from spam2.hygon.cn (unknown [110.188.70.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81CFA38DB8 for ; Tue, 26 Apr 2022 04:49:17 -0700 (PDT) Received: from MK-DB.hygon.cn ([172.23.18.60]) by spam2.hygon.cn with ESMTP id 23QBjhUM002405; Tue, 26 Apr 2022 19:45:43 +0800 (GMT-8) (envelope-from puwen@hygon.cn) Received: from cncheex01.Hygon.cn ([172.23.18.10]) by MK-DB.hygon.cn with ESMTP id 23QBjavX089615; Tue, 26 Apr 2022 19:45:36 +0800 (GMT-8) (envelope-from puwen@hygon.cn) Received: from cncheex01.Hygon.cn (172.23.18.10) by cncheex01.Hygon.cn (172.23.18.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 26 Apr 2022 19:45:32 +0800 Received: from cncheex01.Hygon.cn ([172.23.18.10]) by cncheex01.Hygon.cn ([172.23.18.10]) with mapi id 15.01.2375.024; Tue, 26 Apr 2022 19:45:32 +0800 From: Wen Pu To: Sandipan Das , Peter Zijlstra CC: "linux-kernel@vger.kernel.org" , "linux-perf-users@vger.kernel.org" , "x86@kernel.org" , "bp@alien8.de" , "dave.hansen@linux.intel.com" , "acme@kernel.org" , "mark.rutland@arm.com" , "alexander.shishkin@linux.intel.com" , "namhyung@kernel.org" , "jolsa@kernel.org" , "tglx@linutronix.de" , "mingo@redhat.com" , "pbonzini@redhat.com" , "jmattson@google.com" , "like.xu.linux@gmail.com" , "eranian@google.com" , "ananth.narayan@amd.com" , "ravi.bangoria@amd.com" , "santosh.shukla@amd.com" Subject: Re: [PATCH v2 7/7] kvm: x86/cpuid: Fix CPUID leaf 0xA Thread-Topic: [PATCH v2 7/7] kvm: x86/cpuid: Fix CPUID leaf 0xA Thread-Index: AQHYWHxbGifZsj53i0W4Cl6nd1FFc60BVJgAgAAG9ICAADOjAA== Date: Tue, 26 Apr 2022 11:45:32 +0000 Message-ID: <25e89d27-d7da-2dea-dd20-0a9d8dcdee83@hygon.cn> References: <54bc7fe4cadf6bdef823bab1fba43d4891d2e1a9.1650515382.git.sandipan.das@amd.com> <20220426081550.GO2731@worktop.programming.kicks-ass.net> <9e6d14a0-a658-195c-c7a3-7d2687a61544@amd.com> In-Reply-To: <9e6d14a0-a658-195c-c7a3-7d2687a61544@amd.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.23.18.44] Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MAIL: spam2.hygon.cn 23QBjhUM002405 X-DNSRBL: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE autolearn=no 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 T24gMjAyMi80LzI2IDE2OjQwLCBTYW5kaXBhbiBEYXMgd3JvdGU6DQo+IEhpIFBldGVyLA0KPiAN Cj4gT24gNC8yNi8yMDIyIDE6NDUgUE0sIFBldGVyIFppamxzdHJhIHdyb3RlOg0KPj4gT24gVGh1 LCBBcHIgMjEsIDIwMjIgYXQgMTE6MTY6NTlBTSArMDUzMCwgU2FuZGlwYW4gRGFzIHdyb3RlOg0K Pj4+IE9uIHNvbWUgeDg2IHByb2Nlc3NvcnMsIENQVUlEIGxlYWYgMHhBIHByb3ZpZGVzIGluZm9y bWF0aW9uDQo+Pj4gb24gQXJjaGl0ZWN0dXJhbCBQZXJmb3JtYW5jZSBNb25pdG9yaW5nIGZlYXR1 cmVzLiBJdA0KPj4+IGFkdmVydGlzZXMgYSBQTVUgdmVyc2lvbiB3aGljaCBRZW11IHVzZXMgdG8g ZGV0ZXJtaW5lIHRoZQ0KPj4+IGF2YWlsYWJpbGl0eSBvZiBhZGRpdGlvbmFsIE1TUnMgdG8gbWFu YWdlIHRoZSBQTUNzLg0KP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