Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2356667pxb; Mon, 8 Mar 2021 23:49:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJwsIgmZmItf6hyByDnyd7uvidA1WYCFjulndhLGMz+RIbbkJmOtzf8hxEL6j7ODF7GMe3Ld X-Received: by 2002:a50:d753:: with SMTP id i19mr2599962edj.43.1615276144875; Mon, 08 Mar 2021 23:49:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615276144; cv=none; d=google.com; s=arc-20160816; b=tE6h7H4DynKA2HFb4+1FPfs3E63UFwIQvTChJCCzw071NQsS6Ew0cjv7KDnQRAtOWI gp1X4PJAApUx12xE+nTA6m9zFRSutV0MqvsZfNNgCdL54NG9my/6bgccPfEh8gPT7qcg s/pVBftPbEFrhZO8qAWK3TAW/MBRY/Rf/sF0/a3VJvbZga4TwoZUs3WaiS5zP3Z+ES/a tbxHejeZeHs80t9SGCdDtBvsCkvPqTjUC91KdSY6i+B5PcYqV41uOk58eR+zajSVPAUz H0wpQ4qBXhDbmBvYqkGV81210XwSdlgHH8WWJ+ZOM8NATWdPwG/EbebsBpn090a/RWUa mzIQ== 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=RPwvJ0Jon3MBhA2x2dbU/aIzqjciZdMt7fGLLK+Bmg4=; b=UMGUAkp93O1wcJcOcEliJl/wcb7j+R7OUT1BAACyKMziAaRaABrU86FYB74Bj/AKA9 EJe1bUAA58CJlB7vqXfNqsAXzmAUTbeK75Rm4tgi8+UnaWd4GDqdYVQUI14TKN+8tyFd rgnHr2ZMV7SRxY+LwNu+th+cv00h1VfRFakPvo3UmDdSel2nKBaQCVJiR56CzM4o5kSH bOxLM/xqzwqkEfiDrBeBoiXQNv9JYkA7a0ll5QhHy/PrkOisWRt8Vb6pHbqgAWVEdcEP iamBp8mXM/CnjV0FLwCRli2auY0iX7Xgb5zGZrZSPsLGn0SzZ1CE9K0fsHEZAtCKYrCn LKeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=X30w+6Wv; 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 b16si8696128eds.502.2021.03.08.23.48.42; Mon, 08 Mar 2021 23:49:04 -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=X30w+6Wv; 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 S229714AbhCIHre (ORCPT + 99 others); Tue, 9 Mar 2021 02:47:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229555AbhCIHrT (ORCPT ); Tue, 9 Mar 2021 02:47:19 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8D0DC06174A; Mon, 8 Mar 2021 23:47:16 -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=RPwvJ0Jon3MBhA2x2dbU/aIzqjciZdMt7fGLLK+Bmg4=; b=X30w+6Wvc01lmwIjNzZTrvnThG lripCyh+tEcuH81V/Xfz5k3pAOZlnGor/U2AYHEmn1ugWPWTZZ9qbPhDmlvpoW6rxXKApgLEMUxjB QOj05UyBosnZD9f8HlsT3VsIYJrpT1A2F7Y2eQtXqqO1bJLZ77zD8cZMBbAACTUpCDj2fiZUdtTsU d0VloWCdSROPAJF5sMBjFlV+5H7/cWPppShULjG7GQ5fqX+HywxcCfLegZIEWIBpZCWICT/2VW6Jz BHPizM5tXbdkbcXBbgi+rC6gMY0vYPxZyF7OPR1nEhK6t54Lf6BZyKfmtNkPR4dLKetKXMxzJpUSO sjUwRDlA==; 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 (Red Hat Linux)) id 1lJX4s-000CUQ-Jk; Tue, 09 Mar 2021 07:46:52 +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 B7AE33010CF; Tue, 9 Mar 2021 08:46:49 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 9BF992D3E9B35; Tue, 9 Mar 2021 08:46:49 +0100 (CET) Date: Tue, 9 Mar 2021 08:46:49 +0100 From: Peter Zijlstra To: Sean Christopherson Cc: "Xu, Like" , Dmitry Vyukov , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , "H. Peter Anvin" , linux-kernel@vger.kernel.org, Like Xu , Paolo Bonzini , Jim Mattson , kvm@vger.kernel.org, "Thomas Gleixner (x86/pti/timer/core/smp/irq/perf/efi/locking/ras/objtool) (x86@kernel.org)" , Borislav Petkov , Arnaldo Carvalho de Melo , Ingo Molnar Subject: Re: [PATCH] x86/perf: Fix guest_get_msrs static call if there is no PMU Message-ID: References: <20210305223331.4173565-1-seanjc@google.com> <053d0a22-394d-90d0-8d3b-3cd37ca3f378@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 08, 2021 at 12:40:44PM -0800, Sean Christopherson wrote: > On Mon, Mar 08, 2021, Peter Zijlstra wrote: > > Given the one user in atomic_switch_perf_msrs() that should work because > > it doesn't seem to care about nr_msrs when !msrs. > > Uh, that commit quite cleary says: D0h! I got static_call_cond() and __static_call_return0 mixed up. Anyway, let me see if I can make something work here.