Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1973237pxb; Wed, 9 Feb 2022 08:19:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJxTVWE1Cu9aBu6TS6nwFEQkTE9rAsfegLHg9OCt0XGTTSdlWq1fYA2sPntd1jvKor+attNA X-Received: by 2002:a17:907:a40c:: with SMTP id sg12mr2659895ejc.147.1644423595556; Wed, 09 Feb 2022 08:19:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644423595; cv=none; d=google.com; s=arc-20160816; b=QFgHoN+VZjtVM8tDJUW/yctZ+2fs2RGyby6V1i0vrWcUObxkwF+se3sl4JbFmiFdq8 bfiWRKmF7+EgLIrKOGKrrjbTor+GFYK5IYfh+Ukt3xFZWDctHVNkRFr28OGBysjqvdgH 2IRi8yXQDjMfsVqI/6GsCuj/CbdaN9jMZuY2zdn+DpE7HuFIZvxxOnQDekeD+A/IKnnS N43nrt9VUW1ClpmOWMI9TtsrBjPK0pJCo91gyzg+3fJOoU4sIGSzZjj2vwrU82V3gaPR FpcuWwva7HR3DFfAW+bbnOFjyO5ViQUn63JOQvbiQXX8pVNrYFk+LPhL+31RJN0O/MVG fbAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=oeFFjFlQuMCb4LjY09Gt4tIG1cY81yS5diz3DP2Ve1k=; b=BCZo/aaRZvNZMDuorjQhagAFz+KUsSGp6yfAc5jDTb2deHCDWNgyP4xi8DIJ7lywWR FJSYdgamSe7utzpebRKWq1sTVzAAW2fwo+AOpjqC7rv7PgRRiaKwAg5ore8rXVdfwzo1 k9o9oVdkkOUOKCy0IJpJKf2QMEBLeaza5N1Pht6PrR8bHGOoFWBRPVBi9fIH5KaYlq3U wjXClqGLnnx3GO4oE35+V8+ivLdu2zLYCjgOT/iATTzkR/ziXlKkfqaLwPAuRXw/vKGK o4Z1vyUw3d3+yfZMjZ+3VnfMDCEBs2YYYxrTR4LTnQMdj01/jiyY0LWcKZDO6BiOIxAE p55g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="BGeyLh/e"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sa11si8739291ejc.119.2022.02.09.08.19.26; Wed, 09 Feb 2022 08:19:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="BGeyLh/e"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231926AbiBINVy (ORCPT + 99 others); Wed, 9 Feb 2022 08:21:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229558AbiBINVw (ORCPT ); Wed, 9 Feb 2022 08:21:52 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97107C0613C9; Wed, 9 Feb 2022 05:21:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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; bh=oeFFjFlQuMCb4LjY09Gt4tIG1cY81yS5diz3DP2Ve1k=; b=BGeyLh/eMBiT+JHvm2PcXjlCcz V1VCwafubxlWpyG51odgsFU0b+xm5Jd13JqbQsoWPEahsyrcgZ3JOXJEBg4AKiDCHHGFmwpCc11gg Eqj8jNfW4CCkqDMsE9DKma7sjBvklb5C8OsvggKr47rtysYiD1oj9iUuBb1NqAqjBWR2P1Fsu7nMZ vNHzA3SoEdJnNLroNJB8+OZIz9go5/JEDO4oBpncQgoljSh1ZMkroeH1KS4MmJoUqePSMJSNt53Q+ rX1ixwocRSiZy3zEIop5g5xybLde3Dt/S2VNw0qfjLVhmOmAH3VQS8+nOj4r0HnTIpUI0pOE/8WPz ks/Mu1/Q==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nHmuf-007mBs-MU; Wed, 09 Feb 2022 13:21:37 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 50CEA300478; Wed, 9 Feb 2022 14:21:36 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 2F6FA20218D82; Wed, 9 Feb 2022 14:21:34 +0100 (CET) Date: Wed, 9 Feb 2022 14:21:34 +0100 From: Peter Zijlstra To: Jim Mattson Cc: Like Xu , Paolo Bonzini , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Like Xu , Stephane Eranian , David Dunn Subject: Re: [PATCH kvm/queue v2 2/3] perf: x86/core: Add interface to query perfmon_event_map[] directly Message-ID: References: <20220117085307.93030-1-likexu@tencent.com> <20220117085307.93030-3-likexu@tencent.com> <20220202144308.GB20638@worktop.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 02, 2022 at 02:35:45PM -0800, Jim Mattson wrote: > 3) TDX is going to pull the rug out from under us anyway. When the TDX > module usurps control of the PMU, any active host counters are going > to stop counting. We are going to need a way of telling the host perf > subsystem what's happening, or other host perf clients are going to > get bogus data. That's not acceptible behaviour. I'm all for unilaterally killing any guest that does this.