Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3959488ybg; Mon, 21 Oct 2019 01:18:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDxxiKwoKus2L1EdV9rseU5dZoXuQlvy3mHr1cjO4/R3kkNK8CiqGsrtD60iFQTLOM39aQ X-Received: by 2002:a17:906:48d4:: with SMTP id d20mr15714586ejt.246.1571645887937; Mon, 21 Oct 2019 01:18:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571645887; cv=none; d=google.com; s=arc-20160816; b=wOu0xbIZgb682n+Qv1ewjJFw4dyPBYtul3WTIUHhT2Tzw7MzNSOsrviBxjl8mT+qxv wOFh6MIoeNYgV1RGNzVvnDveGzTRQjrKNmc8LHt/vJ7VqrW04o0fcN/nz/G+X8rmsxJy /o2sj/0qC2rojTsR/nCd+HB5bKXX7FSbocZeeZB1aHxB9GqrDdsb+0WLafEXVl9U0YCO JwxWtyNRrhVkMgNv3HpVv3cuErHPdFq8piE6e2NLuiJNN5jjSIY+QRRL5gUA0O0DW0Zc ouNHBCkaE3qS4cSC7IecXHoE/aWntAQz3bsZN7NL2CZE5okP2Vtui4of7eObR/IIuOs2 ++zQ== 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=FEWSJx5ExhiXQbFPXqcjHmCIciJdlnUswscQgGy3vfo=; b=u8QlEmVyZXF/MYhiYjwlHvpuw1CDFO7KH0bcO40pOYbPW23CuDajf4xsMp5hvNUM86 Y+r5lGYsc7YdoSvUAcZDnBUQ20YARAJtKJjASJ1YBTlKb69Rv2EyOCTYfyYn8NiyIlKB ggsD9lkWM8k3aqu4ScGDTqSMwouawr1U5H5ioiJWtODc8eip6n3YZ8xxPNa7ZLQ8ebWP BOzF8N3EPuNyIMLItuYTHRJtc2GA+eG/RQ6+5GTy3CsyH/X6hMYCQrmwX6CL7PAS33m4 Gf/o/6KQTfUhw9i2pRLzixyyeHg0prDaovMHr+Z4mxcQzSWyR7L5P2EKtkoXlkcMVcxG QWSA== 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 k12si4655836ede.181.2019.10.21.01.17.45; Mon, 21 Oct 2019 01:18:07 -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 S1727654AbfJUIQI (ORCPT + 99 others); Mon, 21 Oct 2019 04:16:08 -0400 Received: from mga07.intel.com ([134.134.136.100]:2946 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726480AbfJUIQI (ORCPT ); Mon, 21 Oct 2019 04:16:08 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Oct 2019 01:16:07 -0700 X-IronPort-AV: E=Sophos;i="5.67,322,1566889200"; d="scan'208";a="191037080" Received: from likexu-mobl1.ccr.corp.intel.com (HELO [10.239.196.130]) ([10.239.196.130]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/AES256-SHA; 21 Oct 2019 01:16:04 -0700 Subject: Re: [PATCH v2 3/4] KVM: x86/vPMU: Reuse perf_event to avoid unnecessary pmc_reprogram_counter To: Paolo Bonzini , kvm@vger.kernel.org, peterz@infradead.org, Jim Mattson Cc: rkrcmar@redhat.com, sean.j.christopherson@intel.com, vkuznets@redhat.com, Ingo Molnar , Arnaldo Carvalho de Melo , ak@linux.intel.com, wei.w.wang@intel.com, kan.liang@intel.com, like.xu@intel.com, ehankland@google.com, arbel.moshe@oracle.com, linux-kernel@vger.kernel.org References: <20191013091533.12971-1-like.xu@linux.intel.com> <20191013091533.12971-4-like.xu@linux.intel.com> <5020e826-e461-c28a-0b40-6e00aaa28163@redhat.com> From: Like Xu Organization: Intel OTC Message-ID: <931ebe53-48c8-669d-72a6-9bd8da78b095@linux.intel.com> Date: Mon, 21 Oct 2019 16:16:02 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <5020e826-e461-c28a-0b40-6e00aaa28163@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Paolo, On 2019/10/21 16:12, Paolo Bonzini wrote: > Just a naming tweak: > > On 13/10/19 11:15, Like Xu wrote: >> + /* the exact requested config to create perf_event */ >> + u64 programed_config; > > /* > * eventsel value for general purpose counters, ctrl value for > * fixed counters. > */ > u64 current_config; > > It looks good to me and I'll apply this. Is there more need for improvement?