Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2110538pxm; Fri, 4 Mar 2022 09:33:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJyQVHECG+rdIqWCv25sT4YJPK8wE67L0xs5a/Pfsy0S3AuUc88i8EA0LxSRMFhZdpS+QDwJ X-Received: by 2002:a17:907:d16:b0:6d6:e3b6:9cd8 with SMTP id gn22-20020a1709070d1600b006d6e3b69cd8mr16112767ejc.94.1646415193688; Fri, 04 Mar 2022 09:33:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646415193; cv=none; d=google.com; s=arc-20160816; b=VShHXlTk/r49UIiWBIpiNdJWmjTYAwiAAR/nLdMmAlzKWL0eNi15EDkGO2RKW0PyTc 79PnxKg1dKknDrROyVmC005wbnu2Ay9gqpG7pYPtcdCIrQTGPXX7+dDzFJJt4OErNidv UBo+dDdyd0VwC5pUxpkcjumWpqTgud8r7HsJe/AnvHgZpoRCPJNmCkIqN75DhxP0yZK/ TmGBpzPV5GMJPb7RVeDjYhswSEKoJBueY4LSqRmbDXFcOJqrUpVRD1vSkA+O4k13OFJZ qWRUTEZsJvSt96pePbICZ3LF7gcKXtmcsaN6CiyMpzzb9RaP6EqyKC8FFcz20WuE5AmE BAAg== 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=y9PpE0gkDy9J4jeFuVca7c+WURC8tyGMPwoneuqmxJo=; b=HjSXJT/DJTG+3R2JZcIPoHGeb6BNRwCznozwWfZcNHQLkeYRpcslWLvH0IDVh+7xdc JdqKbMKm1YvXEyRhPfTEZlnFO7oO7F7pr/ueMD/5ORIhRv3fvH3jyvWxrJRTQOz50AXJ kOnu53nVznwLw2g3QYuu74cz1W8iUkjOMNYP/PzcxglbvgzL+j1TUuwul6x499U0R3Yu SsCaBQB5RFHz52boMpdsM1GBbdsz+qZ/5BX106dY7vK/wat+xRsGgzYEXfsEZ/U2EE6A LHUUVZZCrnSSc8Rz71twHEkLpLMyQz0Gv6jSiSsA5MzCWnptFGaBC33V0MaP+HZqD9MJ WkjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=i2dMqtCB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sg35-20020a170907a42300b006cd01b62f25si3884160ejc.323.2022.03.04.09.32.20; Fri, 04 Mar 2022 09:33:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=i2dMqtCB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236455AbiCDNnD (ORCPT + 99 others); Fri, 4 Mar 2022 08:43:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237225AbiCDNmz (ORCPT ); Fri, 4 Mar 2022 08:42:55 -0500 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A62A91B8BC3; Fri, 4 Mar 2022 05:42:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; 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=y9PpE0gkDy9J4jeFuVca7c+WURC8tyGMPwoneuqmxJo=; b=i2dMqtCBRJbiz7rFAWzNKCr52E philOHD1okKyQDRyMeL9Gcwmh4Yi/19FrTp81UNuP21poIVa16/x/QwNAnqN5zZuLNN2lD9iEd+H0 H/kgTxQumAnsf+qpSKxGwfc703k1iBKK+v5m8TYQ3UIQTCZWsmntCYK9JUTd6KBA0HZYUs1LrDww9 PlUK0tV2WHFMz6w9UqyucqAcgWOHdzvlYJ3kizKztQkQvFKsj6tHyR57QHsegm8adXNYHJMFMK1LV h+7YpME0R03XHQWQsJobOR8JTFuAcj6zSzfOV4E9yYDHk6bsKu0OskAiAzoT+ebET1PLREB6jXyBx LLlRHYRA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nQ8Bk-00FCcj-A2; Fri, 04 Mar 2022 13:41:44 +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) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 8ADFC3001EA; Fri, 4 Mar 2022 14:41:42 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 7550C201A4139; Fri, 4 Mar 2022 14:41:42 +0100 (CET) Date: Fri, 4 Mar 2022 14:41:42 +0100 From: Peter Zijlstra To: Adrian Hunter Cc: Alexander Shishkin , Arnaldo Carvalho de Melo , Jiri Olsa , linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, kvm@vger.kernel.org, H Peter Anvin , Mathieu Poirier , Suzuki K Poulose , Leo Yan Subject: Re: [PATCH V2 03/11] perf/x86: Add support for TSC in nanoseconds as a perf event clock Message-ID: References: <20220214110914.268126-1-adrian.hunter@intel.com> <20220214110914.268126-4-adrian.hunter@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220214110914.268126-4-adrian.hunter@intel.com> 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 Mon, Feb 14, 2022 at 01:09:06PM +0200, Adrian Hunter wrote: > Currently, when Intel PT is used within a VM guest, it is not possible to > make use of TSC because perf clock is subject to paravirtualization. Yeah, so how much of that still makes sense, or ever did? AFAIK the whole pv_clock thing is utter crazy. Should we not fix that instead?