Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2716396pxb; Tue, 9 Mar 2021 09:09:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJzb5o/BGfulEnFIVE0UVEYIY3u68L2XBf04lk0y6cfHXWZaww0OlCXs9tXoZA4dALRqZqaM X-Received: by 2002:a05:6402:2d0:: with SMTP id b16mr5375369edx.194.1615309742180; Tue, 09 Mar 2021 09:09:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615309742; cv=none; d=google.com; s=arc-20160816; b=M7+cD4Nu/6evBixBaXHS1KjcySJuK/Z/s4H9uQhcZ+rBhiEOjyp/diuc+Gw73Eb04o W2t00TtTq2hNYhrcqaoSVAptIbJ3cSLiwJIEeEFYMXif2nzkCw/B9KoKMCfkuBaQ8tHk 2FJiwfAwXT2JKwNxJSa7wM8KW2bfCX18o35DiwaJ0F8A9FpPfJLEpRg3dM1sFwkJ59/5 d2XHvU+TqQerepZcR6H9fZgemCxY69gNePqChbtICqDkfLsQs6tSoib1J4RA/ykn9hdH VPi+U+sV1GpVah9fZDxVgUI2oTDpZSsoJ0nHoVTYgfqpPa53ZrHklzgVsBgH3H0cBXju 8gPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=56FbvxYSyCO6wMKJdNcCg3DsZ58M3AgopzwpcrCwJ8M=; b=VmFXHDSfmgpaSFIMrT1N8509JASCYAAfGxOaqF/+ZClrmCvjLmTRqtyOr6bUJQ807N moNCAiSP4SqrlaMbOUQnzrvWlUIUpzt6VniO1htzzOyTu/+OHDFwj6zSDNGyArzZRDW6 E+Gu7rPtblM77cWiSf9+bZbmjftA2KQWxVgRMIIKdnuqN4C+SzkiuIxiky2OO/bQXCU+ jg8Hd+5lQ7oGpqWPJZPNuP0VyqyxuZjaBhlIs92gagwNT5DSw9oYVRsmGs5AbSfzSWFh ElkUo0cnuKqxp9Vnht2lZqrul9S8te5fI6R1P+15scgCl+pSscaT3W8ymAlDLgUEVIjk +a8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=p9MFtEix; 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 k24si9672591ejs.280.2021.03.09.09.08.38; Tue, 09 Mar 2021 09:09:02 -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=p9MFtEix; 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 S231389AbhCIRHj (ORCPT + 99 others); Tue, 9 Mar 2021 12:07:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231490AbhCIRH0 (ORCPT ); Tue, 9 Mar 2021 12:07:26 -0500 Received: from mail-qt1-x836.google.com (mail-qt1-x836.google.com [IPv6:2607:f8b0:4864:20::836]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 937F7C06174A for ; Tue, 9 Mar 2021 09:07:26 -0800 (PST) Received: by mail-qt1-x836.google.com with SMTP id n26so1559664qtv.8 for ; Tue, 09 Mar 2021 09:07:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=56FbvxYSyCO6wMKJdNcCg3DsZ58M3AgopzwpcrCwJ8M=; b=p9MFtEixfJK+C3OPIvyxsnbCCdPeJyP3yuIayQyx4bcy51/7AwiQHD3E2kH2inD3Sl dZDcwuFfelPyoPNTWto0FOXnVbZ4TquFs/P+y92UFfHoOXPVcFZcZFjDIoe77pTJT4OO SEt6H9KErkFAg7BGl7kYWMyC63q1CeR4dWZ4lyGhmbyb5fbOWiS5m5BxZb2huYOL+KuE FQjbUmGWAT1ypB8dukJilItUFmrV6gSu1Ryzz0clWm1Dpcqud3jCYwx0KM7HOpP9Ps3L a/I7xOsBGQqH8E/TXf1gdaLWPw2obeK/IAEpRUYkcrokwD4iBCSC6A3jvQ2t83xq8EGD MqMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=56FbvxYSyCO6wMKJdNcCg3DsZ58M3AgopzwpcrCwJ8M=; b=OL7X2WjjGLZLwK5/qOY+dBZ5Ex39P6MBEWNujoObv5iqi4hBalGuTMMr288R1G5cWy A64Bc/BxRI6iKTS1mhHXXyaYSbeYQ+b7BHw6t/z2w+4vkju0XRIDDQFVQnIzmu6Wqf6H ZlHFQsv8Gw+GelfKqrEFaoMYVO4hSEh1iVPUJBDWOFvt1WeCD/MwKgWSNmrsh8LLxTLy aOxmlCX/Ufq//HQK4hxj8AXstSqvGth7tJM30SxUXFeYDyaSKMAw9AzruDdps8RIKh5i h7mgMPmpFz67EM56o0TjenYFTsCaWo1UXEf03a4jrfMmnThc2bYOwaoiEn50iBb8Jqeh FweQ== X-Gm-Message-State: AOAM533/QW4I52tPg0Zjn1p+OnqGOXOT7inEqnNqDmvuazFGJhsxlWM9 GUWVPjoRahm1UlrcpLSUEJXf5kN5uxW4Z/3OiaUCxA== X-Received: by 2002:ac8:7318:: with SMTP id x24mr7500268qto.67.1615309645573; Tue, 09 Mar 2021 09:07:25 -0800 (PST) MIME-Version: 1.0 References: <20210305223331.4173565-1-seanjc@google.com> <053d0a22-394d-90d0-8d3b-3cd37ca3f378@intel.com> In-Reply-To: From: Dmitry Vyukov Date: Tue, 9 Mar 2021 18:07:14 +0100 Message-ID: Subject: Re: [PATCH] x86/perf: Fix guest_get_msrs static call if there is no PMU To: Sean Christopherson Cc: Peter Zijlstra , "Xu, Like" , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , "H. Peter Anvin" , LKML , Like Xu , Paolo Bonzini , Jim Mattson , KVM list , "Thomas Gleixner (x86/pti/timer/core/smp/irq/perf/efi/locking/ras/objtool) (x86@kernel.org)" , Borislav Petkov , Arnaldo Carvalho de Melo , Ingo Molnar Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 9, 2021 at 6:05 PM Sean Christopherson wrote: > > 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. If you are resending, please also add the syzbot Reported-by tag. Thanks.