Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8003625ybn; Tue, 1 Oct 2019 01:25:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqwX7ziXfVpuZtyF9OVhrJjcVNOKPa1Jthe3al82nA3TzQzOkV0abCIDMmYFrAT5VKxDnnBH X-Received: by 2002:a50:a532:: with SMTP id y47mr23915458edb.273.1569918318724; Tue, 01 Oct 2019 01:25:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569918318; cv=none; d=google.com; s=arc-20160816; b=RrYRhXuKrJHnKt6QioJ+N2Iyd6BZ335voo8g706ov4YW4A9C/ggO9y1NM3UEU5hqHB L1DRwHLW/7ZGc1C16YSegq+yp6Y92mMGDH4CGArSMUwSrq0DXs0vaM7NCFcJjFHHgo+V 9QlNcTNR4rm58LRB40GHeVy7bQiFeoaondrN8v3bs+yV2mKaQO5LxMI/koqRxrSRiXGH CQ4J2C+wa4uexBqdLaj/hlrSvzDFX+fSfPWqoQzWt/DI9jZ2QQVw9FlgugeVvdzz0wjs W8Kp4m3SXpf3QbfdE/fPJEJKQUu2u5QdbFREzl3gwgam5dhPsHs5eo5psRF5VpK9HBGs dxUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=gGeaYFs4bdA7xPmyy+azgQMth/2oXWf7Tl63bP6CEY0=; b=RvDRdiODYvmnob8Q4JO/W8fs/Le4UPCVSgHGg/PoTfCUbv/hiYIlk3TW7R8UXllnS8 wIzTxwnhHuUWcaYVsUXi8f3EHC7i2/NSJu2CUNK1jtdd/v9rfB4P9WUNtJEe+lMtDIbl W+KfEjSU8JVSCC/MAvlirb9ntU3Q+YkwnvPiHm10ojH6JztewjXlhy7M19I5lJyZGZgg Jcud3LwRypCMHl695RCYlEERn5FiOgtitgO3IM4mVTL5RVLXPnwGY7DsstXiceJBdnmi LA5/3fzGEhTigbYWyMg9lJPA8DD0heDRtLzjaaFvi3PBNvOz/hJnQWhex1wEHf6CyZcV 2meA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=ON+g6YOg; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f57si8950636ede.78.2019.10.01.01.24.53; Tue, 01 Oct 2019 01:25:18 -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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=ON+g6YOg; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732996AbfJAIXo (ORCPT + 99 others); Tue, 1 Oct 2019 04:23:44 -0400 Received: from merlin.infradead.org ([205.233.59.134]:58940 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726148AbfJAIXo (ORCPT ); Tue, 1 Oct 2019 04:23:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=gGeaYFs4bdA7xPmyy+azgQMth/2oXWf7Tl63bP6CEY0=; b=ON+g6YOgA2qDnJ19wUIBM7ci9 H9J9f3tU+TYT4GsARKS1FQo6vO6R4TSzSKGKW2tZ5QCxd+SlJt4mLXOTG69Xkzzauubswfg/FFXkK lRITm95PlUqBRnWcYb8lNbPAncGzPj+0zbO1mlxrpmjB3ztO9OPRHzugw2mGMHIXmTBSZPqKEcp1d yinEQLrAOdilPeFe3VoJdCty40HJSmJwT3/EiPvGhIbSawXrPmeXmZQXoMoi8hmnG+M6dBBYzZ7o2 GOy57/OZoTPD+hH9vY7KC0Z+P7ZDqLD734paPaAK6XcJzmEW/JiHhJ+pXP5tpsuYrpoKiGCUv4uDz A31XxcIjQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.2 #3 (Red Hat Linux)) id 1iFDRM-0001wa-Tm; Tue, 01 Oct 2019 08:23:25 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 7A8B7305E4E; Tue, 1 Oct 2019 10:22:33 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id CDA4423E90CDA; Tue, 1 Oct 2019 10:23:21 +0200 (CEST) Date: Tue, 1 Oct 2019 10:23:21 +0200 From: Peter Zijlstra To: Like Xu Cc: Paolo Bonzini , kvm@vger.kernel.org, rkrcmar@redhat.com, sean.j.christopherson@intel.com, vkuznets@redhat.com, Jim Mattson , 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 Subject: Re: [PATCH 3/3] KVM: x86/vPMU: Add lazy mechanism to release perf_event per vPMC Message-ID: <20191001082321.GL4519@hirez.programming.kicks-ass.net> References: <20190930072257.43352-1-like.xu@linux.intel.com> <20190930072257.43352-4-like.xu@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190930072257.43352-4-like.xu@linux.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 30, 2019 at 03:22:57PM +0800, Like Xu wrote: > + union { > + u8 event_count :7; /* the total number of created perf_events */ > + bool enable_cleanup :1; That's atrocious, don't ever create a bitfield with base _Bool. > + } state;