Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2715883pxb; Tue, 9 Mar 2021 09:08:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJwQJ3vEaZ+zpA+jj/9mJLCNgcA1oRxsnOw56y2boiaLrYGdQYv+jwADbe+oQQTjSoTzPhS5 X-Received: by 2002:adf:bc46:: with SMTP id a6mr29503450wrh.418.1615309706777; Tue, 09 Mar 2021 09:08:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615309706; cv=none; d=google.com; s=arc-20160816; b=Hzljmly1P4bphPZCBHQuVF/tddm5bmJWDm1gbV0oEMOfrLKe486mSvPxGcLiwqXrJc XOc42GYmF2GlqwVKuBlAt5yDJ9OmJvV7/bRZL4SxbXw0saGNWSoTsoyfyDCDkBazoE4e JyLP6K53BTWTxQjpHYWCfrne9b/jEhTOUb2jyYZHfAcl7N7VcBrIdNK3YRxJt/2UiZLo 1a95Q/8ubFZUMnP6yQUJj4GaYbnzOAtva3T9JyIyU6GO5M2VwfENB8iYbGJMm1HR9G28 G6T846SKorJdI150MYgD6KtkDDT+SXz2nUjPMCzijbRPRF/aix0SQVqyfDaX+6ztqbOg NKfA== 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=tQCrZGAl0b60/4Ggr0xLToEhk1KYEANewuulT6STebg=; b=p7ZU4DFzUTPQbjv821q7hOKW0I46E5ubuSfVazXA+hp8/ZsEpz2zyGyPF5AaNC6axL yLMJwpxuwMcSw5TBUroto4ugtaiDSzo2piTTra9fU1dNlooSKNiLT/MsbzjBczTIk4Sy 99b7K3lqDetT3Zhwz+zJ7BmngqEc5yrB9K6amg3PcrAM7RW0tEd/duFXfMCNIMM8Gv0B 5gp4BubOhT9Hr2CPYh0kGad74gR8BN2SvjfSFFLdN7p2eDng3HgzZgLvCd/gpgnHkYcA DzotpKyE9tnEFs9BkglMQx61xLSLOdQ2Ka4UUWzmx4V6R7axSyTsanplMQW2snCvjW+x 2/tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=B8PvmorM; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x27si634466edi.240.2021.03.09.09.08.03; Tue, 09 Mar 2021 09:08:26 -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=@google.com header.s=20161025 header.b=B8PvmorM; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230303AbhCIRFc (ORCPT + 99 others); Tue, 9 Mar 2021 12:05:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230397AbhCIRFI (ORCPT ); Tue, 9 Mar 2021 12:05:08 -0500 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9B1CC06175F for ; Tue, 9 Mar 2021 09:05:08 -0800 (PST) Received: by mail-pl1-x62d.google.com with SMTP id j6so6894831plx.6 for ; Tue, 09 Mar 2021 09:05:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=tQCrZGAl0b60/4Ggr0xLToEhk1KYEANewuulT6STebg=; b=B8PvmorMpqrWVpxlNrzzWceE/e3T4Q2YCqZ8sVuCFzH46o80eZ81cDA5moe5lAaNzp P918sQFhr+LkMw3+2ZHLxO5f084u1jcdJUg3VTMSsWxcn//w8zMEvR/7AIZoGA62exnO hvcJ3ahs5+mNk+p2SAUSMgcloq84rVlaGSQRNJF52IkKc+0hfiLSV/Yv/qHM2/URlV3C pJutN/rEKfAjfNFxZcgtFTvJ3YJ+vos6W1OGWu8tbRyj7Wgi4Zuvu91Sv4g2lLs3i0it LGFuvqx+uINrsfGh6egqCmVeoI+UQEzxgbxwA5IhYqENUko/OT0fMcGQBHAA4AemfDDY OycQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=tQCrZGAl0b60/4Ggr0xLToEhk1KYEANewuulT6STebg=; b=AxnjX+9zEP53ZlPWIftO6ZbME8gbON1pUCqiAA4l2b73xoxW1MqXKozge6WS71/Oxj r8seLSyEueFlPnVOcilXlj3d6PQ8/XtZSE+5lg1ALec6hGcX7Ddk3JtgkZHdLWsMspMr ignDOrBuvJOjEjkYP0yeSsPiN/slZdBLc0X1j1g2nicVP6KIvAlFdLy/G7zmUCMu1OKC x3DznQsIS9g4MWBKm03ChS1F9An15Ka3grGd8HTTHswq88uXrAAFEy7dnYDl5Ccfns10 y7lvbaFn8hWU5lCFMNL2pgmGUUsSCR2sck42M1TXj9Re8KMOhJen6EeUeTd/KM3VKFgw xLyA== X-Gm-Message-State: AOAM532XPc3v2kvxYR5gNtN1V8qbRzoNgvGDdtF9MQhnJHzAf19FlqJR nB4UvfKvRf9uzTXOUtUuGmmWQQ== X-Received: by 2002:a17:90a:f190:: with SMTP id bv16mr5526843pjb.187.1615309507956; Tue, 09 Mar 2021 09:05:07 -0800 (PST) Received: from google.com ([2620:15c:f:10:8:847a:d8b5:e2cc]) by smtp.gmail.com with ESMTPSA id v16sm13253080pfu.76.2021.03.09.09.05.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Mar 2021 09:05:06 -0800 (PST) Date: Tue, 9 Mar 2021 09:05:00 -0800 From: Sean Christopherson To: Peter Zijlstra 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 Tue, Mar 09, 2021, Peter Zijlstra wrote: > On Tue, Mar 09, 2021 at 08:46:49AM +0100, Peter Zijlstra wrote: > > 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. > > Does this work? I can never seem to start a VM, and if I do accidentally > manage, then it never contains the things I need :/ Yep, once I found the dependencies in tip/sched/core (thank tip-bot!). I'll send v2 your way.