Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1164723ybi; Wed, 17 Jul 2019 10:31:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqziZel2GwH7qf+gdjl/cT0QqJFSFK73N6ntDb7t+jF0GNRMIfWlycJIbI2mCTxqh9exQEJq X-Received: by 2002:a63:2a08:: with SMTP id q8mr10607469pgq.415.1563384698129; Wed, 17 Jul 2019 10:31:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563384698; cv=none; d=google.com; s=arc-20160816; b=JzU9Xf1geHP8fr602qVrV6QPa5r8Sk4RuWU7ZEsDifA6JK+cIILfaEMPfqCOdjdwz/ a/ym0taA4DSj0eX+DvY2upujzUuixeW26oAq6RnyQjFbbc43dKa8owTSHm2oS5qphyiP 9lEkVAYK7HEz8GsuyNHE+zNXHIrrIEipJPCiQfFOWE8c6pX46YD/H2M8bcHrd9YczKNv jsaWVJAb24IfFE7Hb+vlwg120NXCyIGiF/7lSo01aUTXMOg/N6Y+KAiDw610SLW7oxbk 9n2hGd53cAOo9EywS2KPe2645NziNQfijj0Xln2SnheF+Xu85pfpyypjgFvfjmNfG0Hf vHrg== 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=okpiWpdfnwyM1YLlRg9SVp2HCONGDPFvxji/Vr8VZhQ=; b=SkHQmBc9gzmoiXRHw79wupE4VP6vn5I5ysy0hewzQhIj6cgxRy2+N62gGVRPyzIfA3 J+4LnJANwqYelYtR3+cwdaD4GlFdpNLJH4euUrJ0f0tWIfY+rejwo81x9GpGI2g8bqvw cCNaaGb/sHRguuJd8HShFoAecbAYqVTTphUlmriCno95acEkQOhxuUNo0maW8z0+0VNY 3W2L4V5B5gLaHQah1PY72Q5HQ5cRwO2tLk1EVOwDnFgW7pslOpCgt+yQfqH3HjVqKreh 5qxy+5xF9qGaFPrEhtPbS/8PAun5zg6sjRNS6lWf17or2dhekWTnxvPYs3wRPJFTvZ07 snMw== 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 r63si23092194plb.136.2019.07.17.10.31.21; Wed, 17 Jul 2019 10:31:38 -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 S2388254AbfGQRaL (ORCPT + 99 others); Wed, 17 Jul 2019 13:30:11 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:39963 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726917AbfGQRaK (ORCPT ); Wed, 17 Jul 2019 13:30:10 -0400 Received: by mail-wm1-f66.google.com with SMTP id v19so22991752wmj.5 for ; Wed, 17 Jul 2019 10:30:09 -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=okpiWpdfnwyM1YLlRg9SVp2HCONGDPFvxji/Vr8VZhQ=; b=kxf7AZ/9S6AkyOy8eZe9RSKDX7ezjC6bdIHcMtCEO+t3a6wlS67l/jeyWh2JKo5VdO f8GI+oPuw4aBIWRVWlThEHNhiHAIGa3Spp3hYOpIgWpeYTBVzMLlTA7VsUmj/zvVqjfa k54rTHbdA1sT1NcCt9yUrZ3yohjbpseupX34fiCQeTDo892Rpkb6rYbZ2gnddy5F1K9i lVtxTSYzc94yAYt2OCWR178yNmV+1lbHRLJfaOw0RLjc+QDdtynD8ty9L6IJHJsca5GF XJtqavKR3uQZ5HbZrDczDq96r4tLQVKDYB5Viq4iR426tUWCnQ3HeCiHZ/wboi0LdmpU NcQQ== X-Gm-Message-State: APjAAAWYJChqtVPhjvnvkRto6j/AxCkG6sFUPmQMBVVtuiZdPy0aeEco Ih35FbdUXnzrD8isatRGWWMxjA== X-Received: by 2002:a1c:f515:: with SMTP id t21mr39364355wmh.39.1563384608699; Wed, 17 Jul 2019 10:30:08 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:e427:3beb:1110:dda2? ([2001:b07:6468:f312:e427:3beb:1110:dda2]) by smtp.gmail.com with ESMTPSA id i18sm29599639wrp.91.2019.07.17.10.30.07 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Wed, 17 Jul 2019 10:30:08 -0700 (PDT) Subject: Re: [PATCH v2] KVM: x86: PMU Event Filter To: Eric Hankland Cc: Wei Wang , rkrcmar@redhat.com, linux-kernel@vger.kernel.org, Stephane Eranian , kvm@vger.kernel.org References: <5D27FE26.1050002@intel.com> <5D2D8FB4.3020505@intel.com> <5580889b-e357-e7bc-88e6-d68c4a23dd64@redhat.com> From: Paolo Bonzini Openpgp: preference=signencrypt Message-ID: <0c1655c8-3a5b-f961-ab52-290a69ef4af6@redhat.com> Date: Wed, 17 Jul 2019 19:30:06 +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 17/07/19 19:05, Eric Hankland wrote: >> Let's just implement the bitmap of fixed counters (it's okay to follow >> the same action as gp counters), and add it to struct >> kvm_pmu_event_filter. While at it, we can add a bunch of padding u32s >> and a flags field that can come in handy later (it would fail the ioctl >> if nonzero). >> >> Wei, Eric, who's going to do it? :) > > I'm happy to do it - I'll send out a v3. Please send a patch on top of what is currently in Linus's tree. Thanks! Paolo