Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3022222ybl; Thu, 29 Aug 2019 17:03:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqx52xkNWlmvV5QNxEQewy4Eg9eWMtZEes1ZxIgkJa8WAIVePQeyVgmiHCsjuwdkl1Va3u5W X-Received: by 2002:a65:5183:: with SMTP id h3mr10720176pgq.250.1567123402622; Thu, 29 Aug 2019 17:03:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567123402; cv=none; d=google.com; s=arc-20160816; b=sBdpUzjzheom5WHJIt0gyfY+kzL2eglTAWq05JM65rNwYhREifIeSgpcjuBxYYcFua 1XmjNAguOmNgJRVuAoKHPW3+tq9JGM+fpptfbWzqybX8b+QssxMa1AKXdRdkS3yZehiL pQu49XudYeNOJaz4QFgY6LZHfO82SGettpM66tJQK1IIZn+8MnpSkCe4UrPnML/+DEp7 xhklJHsHP1d29Jj3EkjIBSDmaON3TUE3HZd/iIbptMfbzyu/HaXCiqWIbPkEHIyO6Z9O CIRDoHNTZyhDG/4ffUK0D+eeS6CYUrGgSAyPFUgDKxx8gMyDEdnrg+Fj1E6P8GSoa9LW pUuw== 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=BecPVGplT1v9dwrpa1WWQS9/DXJygJnwwQid5Qnah1c=; b=S+n+ACSnUk/SJGSOKcLiaPD8KRq6vN0Hy6abgiZsKpi/akeV2W5Q6V/CD+us9IBHA6 3XS3Bp2u1nXQa04PzFs5zL7YFBYxO0hieKUNSqt7goDCRtB7xJjjZZaBDqsTAFn+Sp4E VszQ9DH6kf4GWx1p40Q4C5FvQ4+neb2k3UhOovFuP8p/pXWUMFzPuAY0+7hzpZCC/BbZ aYyVEAeBenTmyhYymiEeDU1SK8/jKlhGAJX29mHDfESqWW2AYiiEJyZn7EsUIAMxWDaj mSA1CChxnRb5fNxR8cc4ngUvdVzO8iK0wRchoRpFfCs3kNcUaknERnzFl/lDAHwdvyCA u69Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z190si3154083pgb.182.2019.08.29.17.03.07; Thu, 29 Aug 2019 17:03:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727331AbfH3ACC (ORCPT + 99 others); Thu, 29 Aug 2019 20:02:02 -0400 Received: from mga09.intel.com ([134.134.136.24]:58438 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726416AbfH3ACB (ORCPT ); Thu, 29 Aug 2019 20:02:01 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Aug 2019 17:02:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,445,1559545200"; d="scan'208";a="172067948" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga007.jf.intel.com with ESMTP; 29 Aug 2019 17:01:59 -0700 Received: from fmsmsx115.amr.corp.intel.com (10.18.116.19) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 29 Aug 2019 17:01:59 -0700 Received: from shsmsx153.ccr.corp.intel.com (10.239.6.53) by fmsmsx115.amr.corp.intel.com (10.18.116.19) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 29 Aug 2019 17:01:59 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.112]) by SHSMSX153.ccr.corp.intel.com ([169.254.12.215]) with mapi id 14.03.0439.000; Fri, 30 Aug 2019 08:01:57 +0800 From: "Kang, Luwei" To: Jim Mattson CC: Paolo Bonzini , =?utf-8?B?UmFkaW0gS3JjbcOhcg==?= , "Christopherson, Sean J" , Vitaly Kuznetsov , Wanpeng Li , Joerg Roedel , "Thomas Gleixner" , Ingo Molnar , "Borislav Petkov" , "H . Peter Anvin" , "the arch/x86 maintainers" , Andi Kleen , kvm list , LKML , Stephane Eranian Subject: RE: [RFC v1 1/9] KVM: x86: Add base address parameter for get_fixed_pmc function Thread-Topic: [RFC v1 1/9] KVM: x86: Add base address parameter for get_fixed_pmc function Thread-Index: AQHVXiwTvN9l0Wf/9ESeUncX5js89qcR9eUAgADWJzA= Date: Fri, 30 Aug 2019 00:01:56 +0000 Message-ID: <82D7661F83C1A047AF7DC287873BF1E1737F7871@SHSMSX104.ccr.corp.intel.com> References: <1567056849-14608-1-git-send-email-luwei.kang@intel.com> <1567056849-14608-2-git-send-email-luwei.kang@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] 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 PiA+IFBFQlMgb3V0cHV0IEludGUgUFQgaW50cm9kdWNlcyBzb21lIG5ldyBNU1JzIChNU1JfUkVM T0FEX0ZJWEVE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