Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp2893119ybg; Sat, 6 Jun 2020 04:58:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZ4RCxPKRo8WI44QfZ901ObWYLwTMYHwje+op6TsUi725bjhX9P5hEocUKXPEL04sY4eYv X-Received: by 2002:a50:a701:: with SMTP id h1mr12049003edc.170.1591444698509; Sat, 06 Jun 2020 04:58:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591444698; cv=none; d=google.com; s=arc-20160816; b=NCcGJU0vN3+hgZunACOX/BO4enwctYMteXFBQ0LQ5bzH1xrsH//Qo/RdhLc7a43Ee7 iqY3e2qslSS1ETxTUh8C2TohOB53FjKItGsZvLW/6SSaPJuE+cf5G1xy+hfirOmKD68L bd3p+/Rs/ZfxJKPWNhP8V/UcXHtHzYMBDksSVq9oMhGIqE+wAMKvHsrUXrSMiqd3wTGB LaAqPYz5ge7046Jiao3c82PZqEvXBJJO8zzsZr98EItPawUlesCfUD4UbUCY2bcXLkFW YFXtaMofzH/A8QCgInMrsRrN4xfdMLevVLuSYrBdpmDpcaB7Gtsh32KuSo5b5ql+oeZ7 opGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=OzEBQb0AUyOkm7E5aR0NyBP9c7nz51e9QdrIthb3sUM=; b=LA+WoFn6r+I+JjBLxNuo3daACO9tpieaezHrtCdVA3PgjQ//HsgdKg5IKEXvheLVsh U3xP8P/zp8xyjPVrsoGhJCYtMMEBsc32eCw6n2/WdOguk/3zF84DplN287Q3kzPhi/iW obldkvpsEk7AphmbHmScOwdVVJ89lgiGPF8biU85UCD221T4VTMp9B0LvxQ3su57oH3e CBEqLhRktkKI4ZVNfi/fdzLou4TBRoJ1vUfy+gm/hzfqGMMR1of/TShcdT6r2S/BY2Eh yflgdWG7LFFq4UG+EW4U+bKNNlTO373Oy4lwb1WDX/hLTBrTinhLlPBG1Bh/8kM/+CIh nThQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ds17si6381703ejc.619.2020.06.06.04.57.19; Sat, 06 Jun 2020 04:58:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728748AbgFFLxm (ORCPT + 99 others); Sat, 6 Jun 2020 07:53:42 -0400 Received: from mx24.baidu.com ([111.206.215.185]:36350 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725831AbgFFLxl (ORCPT ); Sat, 6 Jun 2020 07:53:41 -0400 Received: from BC-Mail-Ex14.internal.baidu.com (unknown [172.31.51.54]) by Forcepoint Email with ESMTPS id 48047EE440090CF01259; Sat, 6 Jun 2020 19:53:30 +0800 (CST) Received: from BJHW-Mail-Ex13.internal.baidu.com (10.127.64.36) by BC-Mail-Ex14.internal.baidu.com (172.31.51.54) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1531.3; Sat, 6 Jun 2020 19:53:29 +0800 Received: from BJHW-Mail-Ex13.internal.baidu.com ([100.100.100.36]) by BJHW-Mail-Ex13.internal.baidu.com ([100.100.100.36]) with mapi id 15.01.1713.004; Sat, 6 Jun 2020 19:53:23 +0800 From: "Li,Rongqing" To: Paolo Bonzini , Jim Mattson CC: Xiaoyao Li , LKML , kvm list , the arch/x86 maintainers , "H . Peter Anvin" , Borislav Petkov , Ingo Molnar , Thomas Gleixner , Wanpeng Li , Vitaly Kuznetsov , "Sean Christopherson" , "wei.huang2@amd.com" Subject: =?utf-8?B?562U5aSNOiBbUEFUQ0hdW3Y2XSBLVk06IFg4Njogc3VwcG9ydCBBUEVSRi9N?= =?utf-8?Q?PERF_registers?= Thread-Topic: [PATCH][v6] KVM: X86: support APERF/MPERF registers Thread-Index: AQHWOtrZ4X/t3pkmBEG7o3WCZUgoeKjI8MGAgAAac4CAALL6AIAAAaWAgAG8BDA= Date: Sat, 6 Jun 2020 11:53:23 +0000 Message-ID: <15a134b739614f8bbaf18ce40662f6b3@baidu.com> References: <1591321466-2046-1-git-send-email-lirongqing@baidu.com> <72a75924-c3cb-6b23-62bd-67b739dec166@redhat.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.127.81.84] x-baidu-bdmsfe-datecheck: 1_BC-Mail-Ex14_2020-06-06 19:53:30:236 x-baidu-bdmsfe-viruscheck: BC-Mail-Ex14_GRAY_Inside_WithoutAtta_2020-06-06 19:53:30:173 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCj4gLS0tLS3pgq7ku7bljp/ku7YtLS0tLQ0KPiDlj5Hku7bkuro6IFBhb2xvIEJvbnppbmkg W21haWx0bzpwYm9uemluaUByZWRoYXQuY29tXQ0KPiDlj5HpgIHml7bpl7Q6IDIwMjDlubQ25pyI NuaXpSAxOjIyDQo+IOaUtuS7tuS6ujogSmltIE1hdHRzb24gPGptYXR0c29uQGdvb2dsZS5jb20+ DQo+IOaKhOmAgTogWGlhb3lhbyBMaSA8eGlhb3lhby5saUBpbnRlbC5jb20+OyBMaSxSb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