Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10381208ybi; Thu, 11 Jul 2019 04:24:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxOA+aayAagYtlq4Pp9s7x0ijVaRAmCwLi1yKcrd2wKTM5fJqbWyLA27Vmqe0+GY75eZyNj X-Received: by 2002:a63:fb4b:: with SMTP id w11mr3844268pgj.415.1562844275701; Thu, 11 Jul 2019 04:24:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562844275; cv=none; d=google.com; s=arc-20160816; b=C9mMsBmqgs8tocLoHDek2A29+Qu9I0vQgeIL0NaWawZku6Ptg/ENoGLKWof0C89c8F PLOsPNThMooFyHThSMOhPVFecToltqeCn8EBsvEFNFfauDzX4WT8JH92ZK3fmaMdf7Om KOpWVKEoLKcDrkYeELXEKU1U8OdG1Oil6p22/JyQEe7/dxX5EYvyz15oDJGv9rXOUkbK b3kpOfK6g2BFAVjRq+gUe/qvew6Ar71+67r9du90DxlLVMd+QCyOhuIKPPuhfAcYw5ZT vK355fKxaWYou5F2X5gF6lrFtiV0hZe2ddJ/7H6vVcpCAyVdap2DJRl4YuAmlMk/MZpy ayMw== 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:from:references:cc:to:subject; bh=0xkQj6rXd6jhqOpnOodbdLnJbizN7yitMYfeVThGNA4=; b=hMqiCaw5nep7r1WnRy0KsBLcSzVEi/EGafxqbbJfraIa6cN+XFUycZEbPfdjFDYbC0 F2VLQC/89L4azzUrDm8aSTAD0G9ROCXwepJYkldd1A8fgST686WpYq/OXHwrSou9Bvnd PwC9RBkgJr7zN/YONIwdJ8CoLAISgBXixJtNFK4Iqaxw9z/kmWky6PTlTItkeSZp53gW +oTj9seY3dCy8PAJMhWSi3iRiN9/+W6hyq7VXBOUm6j4TV6Wd6L+IJxbJb8w+wS05+jd ualAja2ZCTGYErYGhcrzVLkeFeOzglOvoAT+v6PNPmAELtYV1VpZ4kzRi81F69+GUjqa 2ULA== 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 v38si4572398plg.277.2019.07.11.04.24.18; Thu, 11 Jul 2019 04:24:35 -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 S1728287AbfGKLXB (ORCPT + 99 others); Thu, 11 Jul 2019 07:23:01 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:33034 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727785AbfGKLXB (ORCPT ); Thu, 11 Jul 2019 07:23:01 -0400 Received: by mail-wr1-f66.google.com with SMTP id n9so5917024wru.0 for ; Thu, 11 Jul 2019 04:22:59 -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:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=0xkQj6rXd6jhqOpnOodbdLnJbizN7yitMYfeVThGNA4=; b=GspZzNvT47KtNY/8rlHjhi0PVNi+xZr3uTTTGZtCMaDMVdBYVdfwlacYOfz2aFAuVh 0PW8bBUoXb9BIVsZqilTDLeEHYIlXTsuEh6rGWZliUaccDlUaPhYFM+Ic5EY+9Wz75J0 uoO50wql4TEhoGPnfed+cFl306TWE3c+ajs+4Ac6sVU9cO7jydSB21IOpaTW7nZ7CS8W btFKVSO2ZjZ7bf7nG+YZWcyqaMxk0P8hMIJQ2QB1rN7OGKffrccLZm9/eotTVd1foDoA ayMfg3k4uYfnp5HZ0Yglzoo/naaL9ZCc62ocdzH2qmNz515oDCxNZWAWEVIdVShM6wTh VqlQ== X-Gm-Message-State: APjAAAW9PZRhmLnNZEpqoPoZxNQgoH7+6C1DqmrVUbCESmqIfGJC45kD ZAwGEmoOhvWIn4q7fpRZ8THAbQ== X-Received: by 2002:adf:e8c8:: with SMTP id k8mr4641153wrn.285.1562844179011; Thu, 11 Jul 2019 04:22:59 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:d066:6881:ec69:75ab? ([2001:b07:6468:f312:d066:6881:ec69:75ab]) by smtp.gmail.com with ESMTPSA id y2sm3690485wrl.4.2019.07.11.04.22.58 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Thu, 11 Jul 2019 04:22:58 -0700 (PDT) Subject: Re: [PATCH v2] KVM: x86: PMU Event Filter To: Eric Hankland , Wei Wang , rkrcmar@redhat.com Cc: linux-kernel@vger.kernel.org, Stephane Eranian , kvm@vger.kernel.org References: From: Paolo Bonzini Message-ID: <30b7a0a1-1dc7-7ab0-938a-e34e61152ec8@redhat.com> Date: Thu, 11 Jul 2019 13:22:57 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: 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 11/07/19 03:25, Eric Hankland wrote: > > +/* for KVM_CAP_PMU_EVENT_FILTER */ > +struct kvm_pmu_event_filter { > + __u32 type; > + __u32 nevents; > + __u64 events[0]; > +}; > + > +#define KVM_PMU_EVENT_WHITELIST 0 > +#define KVM_PMU_EVENT_BLACKLIST 1 > + "type" is a bit vague, so I am thinking of replacing it with "action" and rename the constants to KVM_PMU_EVENT_ACCEPT/REJECT. What do you think? Paolo