Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4206571ybp; Mon, 7 Oct 2019 05:06:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqw1R5IfUOo62WPn0CHV8F0gNs2Fwe+ml9bxY9rkS9rrJru0xn40hwzF4MTcfIgQkTcGkDmi X-Received: by 2002:a17:906:3083:: with SMTP id 3mr23074261ejv.259.1570449959906; Mon, 07 Oct 2019 05:05:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570449959; cv=none; d=google.com; s=arc-20160816; b=dffwFlIa0KPo+Z2bqsUpssJ6eUDizMaHt2iXeWHio406gbIvqYipbToE1pxmIsd95O 3R/QNbIsYaHci8b9tkpoiqPhL4MRpnNK03D2BzwWKXr7iEk/xBhfzT/n38NvHcahxGzD s0VdP5v+SJEg0qW7opTDZ8XwIgSY7kYpeDwwLQZcWKo6O+kx5+B13jlnr1laUOenc1fL g2I/LLM8Z/lYaRFEI3Pu9fdW5e3jkH5dzSS6M6kBwf52m67dxW2ojXe+AYKq919LDjCw kcr/G8vMH1zsRhTXvE7i8WvWVtwFmdzW++FdwTGiqQkx0ppbYk4VRYKJNfyPk06kcWxw m+kA== 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:openpgp:from:references:cc:to:subject; bh=bsJhXhtGYtCH4CJ8wCC3ALCtO7mJ3gdkqUkiOJ5d8pY=; b=i0b/IgENie9LzPe4FFM/p6hUIjQz8RoYpQaYb8tbOhvDf21C3j+JpCT7ov6Pg3QnZ+ JQ2+4EF0giiLPTZ35hBOq0lQY21Mw4uFNHNDOIY0R4bVUHJCiof3zyVD+qwbtsL+CVmM 0a9o40i513yZoNOV8xiEh0qMUjWle953qLh/XqnwP3nNRlKQGrKGiUElHsi20ffjvP+p vh8gZuZABfXiMJEC9YfRGEBTFvNyz34cKaW5OpuI+Eio+mTRJTy1vMiHdvB8E3LiCCQZ 7KwuCEsIABIo9GuqU11gkL8EiSKrTQa4CE4uVq2h22YD5xTewYJrVV5j4ZavNic6poVC zRXw== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z7si7066594ejr.99.2019.10.07.05.05.36; Mon, 07 Oct 2019 05:05:59 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727745AbfJGMBx (ORCPT + 99 others); Mon, 7 Oct 2019 08:01:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35936 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727786AbfJGMBx (ORCPT ); Mon, 7 Oct 2019 08:01:53 -0400 Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C90DF4E926 for ; Mon, 7 Oct 2019 12:01:52 +0000 (UTC) Received: by mail-wm1-f72.google.com with SMTP id r21so3227070wme.5 for ; Mon, 07 Oct 2019 05:01:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=bsJhXhtGYtCH4CJ8wCC3ALCtO7mJ3gdkqUkiOJ5d8pY=; b=E3gLbrw2BR5eL6ibm14cAFhCVMfMmp2Ew9YCTJIxyPQGctPDNiwxq53jMaLII0j5xE 4WaOw1r4kNVHcz+k7SaLjALPQCO+Zf+2pCv+ALXRF78Y/6/Kwe2wWC6pxYi5fKVf4Jb5 XR1Mk+DmW1AbN+t1GHVwRfnINtgypOJbecDQJbFiro6bMuF8+PPGixGenVdXbfHCkDo/ DBPV9vK97dMdVcfNqO7UpNP37mRLW+XMfq7l6FPz7v+etPGIWnVelxz13LxEWNo78/HZ L4s3b70uGvD2BlmTPQbYsO1ae82MNS4Ph1sEe6u8/TCY4CRwTLt88R2FpBIO8aLeypAk x7QQ== X-Gm-Message-State: APjAAAURVxpgEwYXGWOx8EmNKfN0LKH3vcfVY1GnAmV2uaNYrttSTPRS Z+u34HVlX53bWj38AKs7yXld8niLG2lPl8srQ2B3ylx4ejM1ImrRPe8X8Mx8VHCm+C80rx9iweG GC/81JhWhBuOWJWInrUXjrv0R X-Received: by 2002:a7b:c758:: with SMTP id w24mr18575850wmk.148.1570449711347; Mon, 07 Oct 2019 05:01:51 -0700 (PDT) X-Received: by 2002:a7b:c758:: with SMTP id w24mr18575822wmk.148.1570449711066; Mon, 07 Oct 2019 05:01:51 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:9dd9:ce92:89b5:d1f2? ([2001:b07:6468:f312:9dd9:ce92:89b5:d1f2]) by smtp.gmail.com with ESMTPSA id l18sm15770965wrc.18.2019.10.07.05.01.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Oct 2019 05:01:50 -0700 (PDT) Subject: Re: [PATCH 1/3] perf/core: Provide a kernel-internal interface to recalibrate event period To: Like Xu , kvm@vger.kernel.org, rkrcmar@redhat.com, sean.j.christopherson@intel.com, vkuznets@redhat.com, peterz@infradead.org, Jim Mattson Cc: 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: <20190930072257.43352-1-like.xu@linux.intel.com> <20190930072257.43352-2-like.xu@linux.intel.com> From: Paolo Bonzini Openpgp: preference=signencrypt Message-ID: <6439df1c-df4a-9820-edb2-0ff41b581d37@redhat.com> Date: Mon, 7 Oct 2019 14:01:53 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190930072257.43352-2-like.xu@linux.intel.com> Content-Type: text/plain; charset=utf-8 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 On 30/09/19 09:22, Like Xu wrote: > -static int perf_event_period(struct perf_event *event, u64 __user *arg) > +static int _perf_event_period(struct perf_event *event, u64 value) __perf_event_period or perf_event_period_locked would be more consistent with other code in Linux. Paolo