Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1508061rdb; Mon, 2 Oct 2023 11:39:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEyy0vnCLe8/KEtBQGwJ505E+YHKlcGSXBAEakNZ/4QgreszNOmzQfvXrsooCak7ZUs8gk1 X-Received: by 2002:a05:6870:8585:b0:1bb:6ee1:114e with SMTP id f5-20020a056870858500b001bb6ee1114emr12751303oal.28.1696271945432; Mon, 02 Oct 2023 11:39:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696271945; cv=none; d=google.com; s=arc-20160816; b=hcPlWKQS5GVvrUQ4WvO6g37RCjSX7zQjnRSI8pu/L6JLpGG2GSAMSizKqLIR3PXYc7 nNjWDcC+17uErA2eGMESCP8jK50lVdjBhZRQLh6IWxi/8HE83c5Ok3c61lGdfQZ3SeNa dixWN1utge6EXX0cMcTm0NiZhaNlvkAzVpLgIM7DW9gAYz4/oaYPyCRuH5Ek1aBaJm4g rVJ+ry8sTRm4tG7tH1hVF3GeoNdU0R9dKVpif1coMJu76xV4fTNyIcaYXeAoo3ANd6M5 GjVQoajX6sYXS3Xd8nfR4utCg2eXuViKobNdvxccO91MZ4yQSgzTmNh50Ns1rw7cvliC IDug== 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:sender:dkim-signature; bh=q8lMj7UsL/Ml50KMNpFYKOAmY39cvImv/aSmmjUAHj8=; fh=kzFxRrc8AQTqaBrEeZPyF7gXPIKU4yz3gRXOxxQuZ9s=; b=CtZI30BHXVSEkD3hzLfMmsR01TfL9/iLCX3TL8VuFpFY2FFEclooEL92tk9XuVjqYz 5rq4KxnpZFwsvIPolnicNx9T2TWsyioY2Ggjr0asITL2OVFFchcW5yiSxT7OZdZUQPAP 3de0bLpf0gRYKG745Oe/lH4AoDQf6YMLMfy7wExm/ox4blLPhtNl4Lt1oIf+jtEBKNMk L5VIGfoPd2yJhEhcBBspX11TrLqiwL9pAtPWCxBZvcY+KVFJ0Xcwi5SFz/be9cjeaZit oyWiJuoXq9tR+/LnBltSAxsqCt4nwAZB8PkbHGmsZIDlJkn3pKO2tkyWi68zl8RGkh90 /Yvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fsHBrjmm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id z16-20020a656650000000b0057787e286c4si25082602pgv.680.2023.10.02.11.39.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 11:39:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fsHBrjmm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id CE4E3807C851; Mon, 2 Oct 2023 06:30:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237351AbjJBNaR (ORCPT + 99 others); Mon, 2 Oct 2023 09:30:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236717AbjJBNaQ (ORCPT ); Mon, 2 Oct 2023 09:30:16 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F402AD; Mon, 2 Oct 2023 06:30:12 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-9a58dbd5daeso2323745166b.2; Mon, 02 Oct 2023 06:30:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696253411; x=1696858211; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=q8lMj7UsL/Ml50KMNpFYKOAmY39cvImv/aSmmjUAHj8=; b=fsHBrjmmr8V+2Cn4jh0hnaIZ6RVqbSbn8ld1nKB4fd72KDBztOllkZRiMBorriMJOr 0NeHEYmoRGq6odKLps3XcqxMH65/uhSphgqO3eBxF212gLpph634ZH47Oczxobd0dmID q1NT9uhFZxUiPWH3NPbF+j8iTKud2SkjP+WXsiHVgr0FSdF13vH24RonWasZDA7UeyAg LQD29+r/wSP89ynnirB9nEoVQ8sYe0GzgOzDC5RZcOLdjo3CSVTzMkUdrGtxhQZn08ms X0qkoHf23BFP+CEwMKrkY8S0gF74aERjOuWURkBPvfdHRsOOrzxEkciNShdwoBVWXEbX 5Rmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696253411; x=1696858211; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=q8lMj7UsL/Ml50KMNpFYKOAmY39cvImv/aSmmjUAHj8=; b=YZXKZRmDZ1jzHtmS8z3THHTnpsWXfJIlSFGeg7wbQ2ngvTqiuzqECcPZDwxlUcGY3G zIT6nl86DzW2Z/zQ7Ig6yn0KNJ8u9dg6isFNK859RGAWsaSpMk0UvCZS+ZPvCal8vyW4 IR7ElM6J88IOTxmMVYDrYP0pcRH9OL14WICwXWf8IJGY8rcDSAOXQArtetQV+VsOu+Fy 3A8vH1lhZxR7ISBbsC5c2LtxaVcr2h1cwzJsHgdHbkzKZk0UMoMU9WyDajyf/YjIub89 vNO7g6OcuDFuIAcjtsckzk0NpMGa+gyOFrn2TGtTzBPG6V3lvrv+8xmo3MV3iXK29kPX BzRg== X-Gm-Message-State: AOJu0YwpGbDA99WGdzCNwEy3hzvtGKE6caPeuJUJUXa+Gsh3BWkGZJNH VA+ca6sEorNRuI2ZQO24FY8= X-Received: by 2002:a17:906:58c6:b0:9b2:6ce3:bdf3 with SMTP id e6-20020a17090658c600b009b26ce3bdf3mr13024153ejs.54.1696253410572; Mon, 02 Oct 2023 06:30:10 -0700 (PDT) Received: from gmail.com (1F2EF530.nat.pool.telekom.hu. [31.46.245.48]) by smtp.gmail.com with ESMTPSA id ox12-20020a170907100c00b00988f168811bsm17030237ejb.135.2023.10.02.06.30.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 06:30:09 -0700 (PDT) Sender: Ingo Molnar Date: Mon, 2 Oct 2023 15:30:07 +0200 From: Ingo Molnar To: Peter Zijlstra Cc: Sean Christopherson , Dapeng Mi , Paolo Bonzini , Arnaldo Carvalho de Melo , Kan Liang , Like Xu , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , kvm@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Zhenyu Wang , Zhang Xiong , Lv Zhiyuan , Yang Weijiang , Dapeng Mi , Jim Mattson , David Dunn , Mingwei Zhang , Thomas Gleixner Subject: Re: [Patch v4 07/13] perf/x86: Add constraint for guest perf metrics event Message-ID: References: <20230927033124.1226509-1-dapeng1.mi@linux.intel.com> <20230927033124.1226509-8-dapeng1.mi@linux.intel.com> <20230927113312.GD21810@noisy.programming.kicks-ass.net> <20230929115344.GE6282@noisy.programming.kicks-ass.net> <20231002115718.GB13957@noisy.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231002115718.GB13957@noisy.programming.kicks-ass.net> X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 02 Oct 2023 06:30:36 -0700 (PDT) * Peter Zijlstra wrote: > On Fri, Sep 29, 2023 at 03:46:55PM +0000, Sean Christopherson wrote: > > > > I will firmly reject anything that takes the PMU away from the host > > > entirely through. > > > > Why? What is so wrong with supporting use cases where the platform owner *wants* > > to give up host PMU and NMI watchdog functionality? If disabling host PMU usage > > were complex, highly invasive, and/or difficult to maintain, then I can understand > > the pushback. > > Because it sucks. > > You're forcing people to choose between no host PMU or a slow guest PMU. > And that's simply not a sane choice for most people -- worse it's not a > choice based in technical reality. > > It's a choice out of lazyness, disabling host PMU is not a requirement > for pass-through. Not just a choice of laziness, but it will clearly be forced upon users by external entities: "Pass ownership of the PMU to the guest and have no host PMU, or you won't have sane guest PMU support at all. If you disagree, please open a support ticket, which we'll ignore." The host OS shouldn't offer facilities that severely limit its own capabilities, when there's a better solution. We don't give the FPU to apps exclusively either, it would be insanely stupid for a platform to do that. Thanks, Ingo