Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp140293ybc; Mon, 11 Nov 2019 22:09:38 -0800 (PST) X-Google-Smtp-Source: APXvYqzPwPwd+7/DIGRoNEelQ5lnZX5V6YwMbEn9CKdOQFmXTwLUjO9CQteHfYk5OUvMLGsjGs8T X-Received: by 2002:a17:906:d793:: with SMTP id pj19mr26581715ejb.303.1573538978494; Mon, 11 Nov 2019 22:09:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573538978; cv=none; d=google.com; s=arc-20160816; b=J4QT/zunC9JG3A5qDPo4nEJB8SzEe8a0QZ5qu5VOg6C8v2Rs2VbV3HgoHgRxFyhljz JKQO3mHEzq9sdcOGU+kzBjbPhYuD7hQBMLn2cpCWhL6nu/JjIXf9Ag7C571Tdu8bkkmk kdlOfCviZFJAMm/ztFZeaFRntzlp3WNGiMpyweRsnrIRCyKTAkZ1uMxvaev1NVzvQsGP 9nmOV7ZqrhWUwpqKYnw839GfSrlRIPLFDLpIhsEW4vAwyt8XiFOISXNHWOX+I/GjWXKZ l3XomSWPoHVOrfKgyWRQ+fUe6ptmHyu8WJ4hu/V8bA1O5sxy+XXuJ9/IHKokB/LiCM6F Y2yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=pbBD/4ueherz4k4jLJQEFtwzgoEtd3rXFT6eE3pG394=; b=xuy7Opc4LP1CqKImr7z0HQsKVvjrdKniwchbiEUMAdSb89wcvyjFjbFA3BWxoX23Ac ZLqFgxAlHaq5casU4uCTmShp/kKP8pq6bBtM3Rk7ma8CB0F2NE5VeeZMQ3D5b/GLjDSo BMVufbUsP31S4P5NXMqwVmERxo5RK27/ob0Wz4F+UYXLQ713M12eSE5yuVQWiiexDDeV QZHjQLVgA5C9lIr60D7pE/HbeWsmI3hTmr/Oiyq7hAguIik7QTduHvC8JXeUAxkmonS1 IO4NUpsj4n6MlZChv3Ld27uEVxZUfPlnTzzUtwNNqgd/Q77VdW0yGcSznFvDK8M5tbIB CO1A== 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 3si14539016edw.274.2019.11.11.22.09.13; Mon, 11 Nov 2019 22:09:38 -0800 (PST) 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 S1726924AbfKLGIl (ORCPT + 99 others); Tue, 12 Nov 2019 01:08:41 -0500 Received: from mga03.intel.com ([134.134.136.65]:18506 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725298AbfKLGIl (ORCPT ); Tue, 12 Nov 2019 01:08:41 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Nov 2019 22:08:39 -0800 X-IronPort-AV: E=Sophos;i="5.68,295,1569308400"; d="scan'208";a="197972475" Received: from likexu-mobl1.ccr.corp.intel.com (HELO [10.239.196.122]) ([10.239.196.122]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 11 Nov 2019 22:08:38 -0800 Subject: Re: [PATCH v4 0/6] KVM: x86/vPMU: Efficiency optimization by reusing last created perf_event To: Paolo Bonzini Cc: Peter Zijlstra , linux-kernel@vger.kernel.org, kvm@vger.kernel.org References: <20191027105243.34339-1-like.xu@linux.intel.com> <20191028164324.GJ4097@hirez.programming.kicks-ass.net> From: Like Xu Organization: Intel OTC Message-ID: Date: Tue, 12 Nov 2019 14:08:36 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <20191028164324.GJ4097@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Paolo, On 2019/10/29 0:43, Peter Zijlstra wrote: > On Sun, Oct 27, 2019 at 06:52:37PM +0800, Like Xu wrote: >> For perf subsystem, please help review first two patches. > >> Like Xu (6): >> perf/core: Provide a kernel-internal interface to recalibrate event >> period >> perf/core: Provide a kernel-internal interface to pause perf_event > > Acked-by: Peter Zijlstra (Intel) > Would you mind to revisit the following patches for upstream ? > KVM: x86/vPMU: Rename pmu_ops callbacks from msr_idx to rdpmc_ecx > KVM: x86/vPMU: Introduce a new kvm_pmu_ops->msr_idx_to_pmc callback > KVM: x86/vPMU: Reuse perf_event to avoid unnecessary > pmc_reprogram_counter > KVM: x86/vPMU: Add lazy mechanism to release perf_event per vPMC For vPMU, please review two more patches as well: + https://lore.kernel.org/kvm/20191030164418.2957-1-like.xu@linux.intel.com/ (kvm) + https://lore.kernel.org/lkml/20191105140955.22504-1-like.xu@linux.intel.com/ (perf) Thanks, Like Xu