From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.3 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E3AEBC433F5 for ; Thu, 16 Sep 2021 22:30:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C752A61209 for ; Thu, 16 Sep 2021 22:30:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241066AbhIPWcN (ORCPT ); Thu, 16 Sep 2021 18:32:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241063AbhIPWcL (ORCPT ); Thu, 16 Sep 2021 18:32:11 -0400 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75FADC061766 for ; Thu, 16 Sep 2021 15:30:50 -0700 (PDT) Received: by mail-pf1-x42e.google.com with SMTP id y8so7257619pfa.7 for ; Thu, 16 Sep 2021 15:30:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=SbpJPJ4GLHhtaxBB1xHIdRhJVAuKGVRHlo9Wp9BtXvg=; b=igafNvMA1/3Bo/Hn8R9+USa5il0ulFxjx+nPIh2XyZCbl93vTOyT82CSDzdcKRJJgO FkJ5tfOZgSqPwIB2uy13Vsv6TyxDZo5SSSg6NO0tCl0m6iggfHrPIgqTtDvi9KZvPNYG 8S05G6PCVB/DKu6Qps+LsPTZQ05wevCQFNZ+BICkpGZZdeZrOwvM4eNTBKGGZV/zaEby /Uo1noNrpUpRnME+TSkjRKmfn4qrb0maTPZTyYR72JBGteB/DiewqWAa7W2K5Npk1E/o h4Ealz2zUj5Dq5lsSJIpFakB2CCLO0hEG1zQ+M9xbiD1cysQ1HBn46apv1+McHJBcrYb Amkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=SbpJPJ4GLHhtaxBB1xHIdRhJVAuKGVRHlo9Wp9BtXvg=; b=ZlNI+CDi58fMegRrB+4OMuFwyswxfWww7wQz8wiAbB4dg6tCBAK6hcmTEqo2J9ZxSd JwxK2chr/cP24HK5ctxTNVRYuNzlH3/CY8DUfPCXXZD1KJFmAL6xf9iPZ8w6zbkO686a IMFFS/jM71bYGq63OdZeIw/OMPIRBg7cKRzMyIIM/HNbQvLKdBjSqSNLvQFBIaqdDY8b VRpsMBDxRMB5sYURy3dfBZlNPmZlkeMIb4XmsYR4WArf4Hk35v12xPlpPwhSLWZlx0mx aZPZlvdmC5jg38grBJfvNw0SRkR1Bpex7hPo9YNG0KK+cFM1XuApTBHMUT5LmQmOALIj BCAw== X-Gm-Message-State: AOAM5320VHqlmiqBSi48s1hvcr4vsI2bFKQjWF//jQln5+G2apodZ6Ru ogLtnc4+wrgzOUM/JX82km3T3A== X-Google-Smtp-Source: ABdhPJx9Zno3oAszEpQSd/n4PnO2QNAuNkUGb12hjpp8HsLen9cxO4C/uNjsvLGvYRAHddpH9w+INQ== X-Received: by 2002:a63:6ec9:: with SMTP id j192mr7022031pgc.115.1631831449675; Thu, 16 Sep 2021 15:30:49 -0700 (PDT) Received: from google.com (157.214.185.35.bc.googleusercontent.com. [35.185.214.157]) by smtp.gmail.com with ESMTPSA id b1sm3951150pjl.4.2021.09.16.15.30.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Sep 2021 15:30:49 -0700 (PDT) Date: Thu, 16 Sep 2021 22:30:45 +0000 From: Sean Christopherson To: Peter Zijlstra Cc: Ingo Molnar , Arnaldo Carvalho de Melo , Will Deacon , Mark Rutland , Catalin Marinas , Marc Zyngier , Guo Ren , Nick Hu , Greentime Hu , Vincent Chen , Paul Walmsley , Palmer Dabbelt , Albert Ou , Thomas Gleixner , Borislav Petkov , x86@kernel.org, Paolo Bonzini , Boris Ostrovsky , Juergen Gross , Alexander Shishkin , Jiri Olsa , Namhyung Kim , James Morse , Alexandru Elisei , Suzuki K Poulose , "H. Peter Anvin" , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Stefano Stabellini , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-csky@vger.kernel.org, linux-riscv@lists.infradead.org, kvm@vger.kernel.org, xen-devel@lists.xenproject.org, Artem Kashkanov , Like Xu , Zhu Lingshan Subject: Re: [PATCH v2 05/13] perf: Force architectures to opt-in to guest callbacks Message-ID: References: <20210828003558.713983-1-seanjc@google.com> <20210828003558.713983-6-seanjc@google.com> <20210828194752.GC4353@worktop.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210828194752.GC4353@worktop.programming.kicks-ass.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 28, 2021, Peter Zijlstra wrote: > On Fri, Aug 27, 2021 at 05:35:50PM -0700, Sean Christopherson wrote: > > diff --git a/init/Kconfig b/init/Kconfig > > index 55f9f7738ebb..9ef51ae53977 100644 > > --- a/init/Kconfig > > +++ b/init/Kconfig > > @@ -1776,6 +1776,9 @@ config HAVE_PERF_EVENTS > > help > > See tools/perf/design.txt for details. > > > > +config HAVE_GUEST_PERF_EVENTS > > + bool > depends on HAVE_KVM > > ? Ah, nice! We can go even further to: depends on HAVE_PERF_EVENTS && HAVE_KVM though I'm pretty sure all architectures that select HAVE_KVM also select HAVE_PERF_EVENTS. Huh. arm64 doesn't select HAVE_KVM even though it selects almost literally every other HAVE_KVM_* config. arm64 has some other weirdness with CONFIG_KVM, I'll add a patch or two to fix that stuff and amend this patch as above. Thanks again! From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0B51EC433EF for ; Thu, 16 Sep 2021 22:31:32 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C53B361130 for ; Thu, 16 Sep 2021 22:31:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C53B361130 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=uEPAdzVnY6h9s6TLJpF2qzwoXu13w/ZWS7s5twofBOw=; b=NPZ3RSuD6TkW7b toEs61TcFvyuh2rqrk3Tv7gpqCszVsO1uXm6nNBMRVnKC5S7QkhuDzarN0rZsY8BZTRuy5l6zKveD bdx9+ljqR5BsOd0dar2LGhqF9NV9VLfZIgH0Bv9YyvRN6JGS9768T10bjWb0fA1X6tJHQGfkc3KAK Sm5POG4ut1PrU3WtNM8H1TMvAxZCGIJwz53nccI/TaR4hlLzyyY5xwc8DA8P7svxNeeiB44vuzCN4 /T/NVNgAWcP50pUvDluTjYN7BcihAni/t4A2PwNQ2DT+JufJ/8vDAqQbRcu+RR5H4ad9lbWcjWyBa B4eOy+6VFvYNU9MERMpg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mQzuM-00CVgf-1u; Thu, 16 Sep 2021 22:31:06 +0000 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mQzu8-00CVeb-1F for linux-riscv@lists.infradead.org; Thu, 16 Sep 2021 22:30:53 +0000 Received: by mail-pf1-x42d.google.com with SMTP id g14so7350205pfm.1 for ; Thu, 16 Sep 2021 15:30:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=SbpJPJ4GLHhtaxBB1xHIdRhJVAuKGVRHlo9Wp9BtXvg=; b=igafNvMA1/3Bo/Hn8R9+USa5il0ulFxjx+nPIh2XyZCbl93vTOyT82CSDzdcKRJJgO FkJ5tfOZgSqPwIB2uy13Vsv6TyxDZo5SSSg6NO0tCl0m6iggfHrPIgqTtDvi9KZvPNYG 8S05G6PCVB/DKu6Qps+LsPTZQ05wevCQFNZ+BICkpGZZdeZrOwvM4eNTBKGGZV/zaEby /Uo1noNrpUpRnME+TSkjRKmfn4qrb0maTPZTyYR72JBGteB/DiewqWAa7W2K5Npk1E/o h4Ealz2zUj5Dq5lsSJIpFakB2CCLO0hEG1zQ+M9xbiD1cysQ1HBn46apv1+McHJBcrYb Amkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=SbpJPJ4GLHhtaxBB1xHIdRhJVAuKGVRHlo9Wp9BtXvg=; b=oC5T3i/t404zlokK6k4NUYvqQI6bODpr/CIMgBTttqEPjRb2XIEVFAAn7bvBePZQFO A39QmjkW4jVmkfx53qzZmLmyEmxBWQYD769KDv5nj/6pX5DxDbALWWofpbbamq7qDLNG uxs7VHkz82mLbdZJ7kXc2ZC6LjghVD+3CRXtiP2HRXa21s1dA6GEjU58aGZHjM8NklEy SOBbv5d41s2JCRJOx//Po6FkxtMdsn+rMVZYd/c0pTKE8sYSO0lMehKQxjEh0W+4MREA nJJOEijF8GUSS7Id6AfnOAWBHOAZs8vUZu6l0J7ZaLbak/8Q5VdoyHbO6c9odyivtsmu 6Hmw== X-Gm-Message-State: AOAM5328oSiDioDkAHfFnYR5krYOrZ8jwb3ErwaHnG2OS4nv0fHh+L4D 3k9gF5NOqjwzGd6d40uL+czXeA== X-Google-Smtp-Source: ABdhPJx9Zno3oAszEpQSd/n4PnO2QNAuNkUGb12hjpp8HsLen9cxO4C/uNjsvLGvYRAHddpH9w+INQ== X-Received: by 2002:a63:6ec9:: with SMTP id j192mr7022031pgc.115.1631831449675; Thu, 16 Sep 2021 15:30:49 -0700 (PDT) Received: from google.com (157.214.185.35.bc.googleusercontent.com. [35.185.214.157]) by smtp.gmail.com with ESMTPSA id b1sm3951150pjl.4.2021.09.16.15.30.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Sep 2021 15:30:49 -0700 (PDT) Date: Thu, 16 Sep 2021 22:30:45 +0000 From: Sean Christopherson To: Peter Zijlstra Cc: Ingo Molnar , Arnaldo Carvalho de Melo , Will Deacon , Mark Rutland , Catalin Marinas , Marc Zyngier , Guo Ren , Nick Hu , Greentime Hu , Vincent Chen , Paul Walmsley , Palmer Dabbelt , Albert Ou , Thomas Gleixner , Borislav Petkov , x86@kernel.org, Paolo Bonzini , Boris Ostrovsky , Juergen Gross , Alexander Shishkin , Jiri Olsa , Namhyung Kim , James Morse , Alexandru Elisei , Suzuki K Poulose , "H. Peter Anvin" , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Stefano Stabellini , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-csky@vger.kernel.org, linux-riscv@lists.infradead.org, kvm@vger.kernel.org, xen-devel@lists.xenproject.org, Artem Kashkanov , Like Xu , Zhu Lingshan Subject: Re: [PATCH v2 05/13] perf: Force architectures to opt-in to guest callbacks Message-ID: References: <20210828003558.713983-1-seanjc@google.com> <20210828003558.713983-6-seanjc@google.com> <20210828194752.GC4353@worktop.programming.kicks-ass.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210828194752.GC4353@worktop.programming.kicks-ass.net> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210916_153052_171319_E13FEAEE X-CRM114-Status: GOOD ( 15.71 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org On Sat, Aug 28, 2021, Peter Zijlstra wrote: > On Fri, Aug 27, 2021 at 05:35:50PM -0700, Sean Christopherson wrote: > > diff --git a/init/Kconfig b/init/Kconfig > > index 55f9f7738ebb..9ef51ae53977 100644 > > --- a/init/Kconfig > > +++ b/init/Kconfig > > @@ -1776,6 +1776,9 @@ config HAVE_PERF_EVENTS > > help > > See tools/perf/design.txt for details. > > > > +config HAVE_GUEST_PERF_EVENTS > > + bool > depends on HAVE_KVM > > ? Ah, nice! We can go even further to: depends on HAVE_PERF_EVENTS && HAVE_KVM though I'm pretty sure all architectures that select HAVE_KVM also select HAVE_PERF_EVENTS. Huh. arm64 doesn't select HAVE_KVM even though it selects almost literally every other HAVE_KVM_* config. arm64 has some other weirdness with CONFIG_KVM, I'll add a patch or two to fix that stuff and amend this patch as above. Thanks again! _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5C513C433EF for ; Thu, 16 Sep 2021 22:33:26 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1E8CD61139 for ; Thu, 16 Sep 2021 22:33:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 1E8CD61139 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=lWt7eRl1T3lT+eP2p9JB47/PS00VTYqQOD684tmYVdA=; b=IwtZU+q/CfsPU1 N7ZpGJdafKCfJmQpMLcm7bjkLI5uXHOAqPc88nXfdUQx7uiTzaQBTmhiMM7M9KiLIWyleOrp3kLEp 5+qqE847S++5uTuzgN4QA/240Jlbh4kPrxMxfHxoQUGdm7U1S+w48fv4rBPRrd20YePXn9g1tfNYT wm9OeDNtfIYJaJBpMKtPTR1hzJUQ4pIIhbE0QtgoNAVDuG+6Gq0/MdBJvj7Ay8dK9s5DDuhFPYmtI GnLrR0DsStdfSfCF9jrMqNzbo6E4veKieM5WYYHgYZGhxpjcDPwgclszGR2LtDVPK4qbylgVVbKbx aG6IZRCpF1WIc57qyjXQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mQzuC-00CVgG-9N; Thu, 16 Sep 2021 22:30:56 +0000 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mQzu8-00CVec-1E for linux-arm-kernel@lists.infradead.org; Thu, 16 Sep 2021 22:30:53 +0000 Received: by mail-pf1-x433.google.com with SMTP id c1so4370518pfp.10 for ; Thu, 16 Sep 2021 15:30:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=SbpJPJ4GLHhtaxBB1xHIdRhJVAuKGVRHlo9Wp9BtXvg=; b=igafNvMA1/3Bo/Hn8R9+USa5il0ulFxjx+nPIh2XyZCbl93vTOyT82CSDzdcKRJJgO FkJ5tfOZgSqPwIB2uy13Vsv6TyxDZo5SSSg6NO0tCl0m6iggfHrPIgqTtDvi9KZvPNYG 8S05G6PCVB/DKu6Qps+LsPTZQ05wevCQFNZ+BICkpGZZdeZrOwvM4eNTBKGGZV/zaEby /Uo1noNrpUpRnME+TSkjRKmfn4qrb0maTPZTyYR72JBGteB/DiewqWAa7W2K5Npk1E/o h4Ealz2zUj5Dq5lsSJIpFakB2CCLO0hEG1zQ+M9xbiD1cysQ1HBn46apv1+McHJBcrYb Amkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=SbpJPJ4GLHhtaxBB1xHIdRhJVAuKGVRHlo9Wp9BtXvg=; b=k89s3ChBwWrO4eUn2ItKryOcSwb4ueHMVHUgWqY8gtX9N4UCrzjRJD78W00wKtQaRP 2rBoDeKrR7yIZDV2HN4TtKo6FJok3fQadF13vAGchqijki3AqlSDOT8yzeZuccMqFU46 INZ/PQLmwyeJ5MgxGp1zXf5hge6IWkGeYBR+KG5TpM5Pg92RC5K9lpCWx8b/dX7u0xO9 yM980369Sf9/iB0MwPDbhVFCsl/pdhPVUP3GBJV7Sd+xlxJT7Bmerv8n0ABfq4J2YMIL cg2LnqZixx8+ksLvfE/iru2nO+D+SuHFiAyLAhlw6jyvgs9iWj9ZRmFeaBT5Qpp4sY+6 4a2Q== X-Gm-Message-State: AOAM530zCdeESrQCZfq5f4Nxu1dv++lHLg3MX0JsD0PSLybVbCPpQbrn CN+RAh5rCrUq79ZX/TsNqi8imw== X-Google-Smtp-Source: ABdhPJx9Zno3oAszEpQSd/n4PnO2QNAuNkUGb12hjpp8HsLen9cxO4C/uNjsvLGvYRAHddpH9w+INQ== X-Received: by 2002:a63:6ec9:: with SMTP id j192mr7022031pgc.115.1631831449675; Thu, 16 Sep 2021 15:30:49 -0700 (PDT) Received: from google.com (157.214.185.35.bc.googleusercontent.com. [35.185.214.157]) by smtp.gmail.com with ESMTPSA id b1sm3951150pjl.4.2021.09.16.15.30.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Sep 2021 15:30:49 -0700 (PDT) Date: Thu, 16 Sep 2021 22:30:45 +0000 From: Sean Christopherson To: Peter Zijlstra Cc: Ingo Molnar , Arnaldo Carvalho de Melo , Will Deacon , Mark Rutland , Catalin Marinas , Marc Zyngier , Guo Ren , Nick Hu , Greentime Hu , Vincent Chen , Paul Walmsley , Palmer Dabbelt , Albert Ou , Thomas Gleixner , Borislav Petkov , x86@kernel.org, Paolo Bonzini , Boris Ostrovsky , Juergen Gross , Alexander Shishkin , Jiri Olsa , Namhyung Kim , James Morse , Alexandru Elisei , Suzuki K Poulose , "H. Peter Anvin" , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Stefano Stabellini , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-csky@vger.kernel.org, linux-riscv@lists.infradead.org, kvm@vger.kernel.org, xen-devel@lists.xenproject.org, Artem Kashkanov , Like Xu , Zhu Lingshan Subject: Re: [PATCH v2 05/13] perf: Force architectures to opt-in to guest callbacks Message-ID: References: <20210828003558.713983-1-seanjc@google.com> <20210828003558.713983-6-seanjc@google.com> <20210828194752.GC4353@worktop.programming.kicks-ass.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210828194752.GC4353@worktop.programming.kicks-ass.net> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210916_153052_168302_E5B22D16 X-CRM114-Status: GOOD ( 17.08 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sat, Aug 28, 2021, Peter Zijlstra wrote: > On Fri, Aug 27, 2021 at 05:35:50PM -0700, Sean Christopherson wrote: > > diff --git a/init/Kconfig b/init/Kconfig > > index 55f9f7738ebb..9ef51ae53977 100644 > > --- a/init/Kconfig > > +++ b/init/Kconfig > > @@ -1776,6 +1776,9 @@ config HAVE_PERF_EVENTS > > help > > See tools/perf/design.txt for details. > > > > +config HAVE_GUEST_PERF_EVENTS > > + bool > depends on HAVE_KVM > > ? Ah, nice! We can go even further to: depends on HAVE_PERF_EVENTS && HAVE_KVM though I'm pretty sure all architectures that select HAVE_KVM also select HAVE_PERF_EVENTS. Huh. arm64 doesn't select HAVE_KVM even though it selects almost literally every other HAVE_KVM_* config. arm64 has some other weirdness with CONFIG_KVM, I'll add a patch or two to fix that stuff and amend this patch as above. Thanks again! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 62997C433EF for ; Fri, 17 Sep 2021 08:46:58 +0000 (UTC) Received: from mm01.cs.columbia.edu (mm01.cs.columbia.edu [128.59.11.253]) by mail.kernel.org (Postfix) with ESMTP id 0425B61056 for ; Fri, 17 Sep 2021 08:46:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 0425B61056 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.cs.columbia.edu Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 9C6E54B099; Fri, 17 Sep 2021 04:46:57 -0400 (EDT) X-Virus-Scanned: at lists.cs.columbia.edu Authentication-Results: mm01.cs.columbia.edu (amavisd-new); dkim=softfail (fail, message has been altered) header.i=@google.com Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TOpSYDwKMjlA; Fri, 17 Sep 2021 04:46:54 -0400 (EDT) Received: from mm01.cs.columbia.edu (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 01ED34B0E7; Fri, 17 Sep 2021 04:46:53 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 05F3E4A3BF for ; Thu, 16 Sep 2021 18:30:52 -0400 (EDT) X-Virus-Scanned: at lists.cs.columbia.edu Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9kPh882KS4bM for ; Thu, 16 Sep 2021 18:30:51 -0400 (EDT) Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) by mm01.cs.columbia.edu (Postfix) with ESMTPS id EE8F14057F for ; Thu, 16 Sep 2021 18:30:50 -0400 (EDT) Received: by mail-pf1-f182.google.com with SMTP id b7so7244995pfo.11 for ; Thu, 16 Sep 2021 15:30:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=SbpJPJ4GLHhtaxBB1xHIdRhJVAuKGVRHlo9Wp9BtXvg=; b=igafNvMA1/3Bo/Hn8R9+USa5il0ulFxjx+nPIh2XyZCbl93vTOyT82CSDzdcKRJJgO FkJ5tfOZgSqPwIB2uy13Vsv6TyxDZo5SSSg6NO0tCl0m6iggfHrPIgqTtDvi9KZvPNYG 8S05G6PCVB/DKu6Qps+LsPTZQ05wevCQFNZ+BICkpGZZdeZrOwvM4eNTBKGGZV/zaEby /Uo1noNrpUpRnME+TSkjRKmfn4qrb0maTPZTyYR72JBGteB/DiewqWAa7W2K5Npk1E/o h4Ealz2zUj5Dq5lsSJIpFakB2CCLO0hEG1zQ+M9xbiD1cysQ1HBn46apv1+McHJBcrYb Amkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=SbpJPJ4GLHhtaxBB1xHIdRhJVAuKGVRHlo9Wp9BtXvg=; b=ZHIe6qf096mMdSmztIc3zpLtu2QpbcJKR4Jw4foI6ravsoWqM+mrXhce/C5zJcEdZV GLAwoefwrvnAt/6FJQpJAPdTWWgpLgK3iVm5lVRC9tR/NuaYxJygA2pA5wLL9iNOm0SL 40dPhYjfbmwv3/21pI9xv+zil841NmrnpnKFmkDq2JB8rIxo5bm7E6ros88CE/nw2WWj NyVtdKPpivjPSyEBb6llSVMFgZHUhs4i5d32QzQIG/RwwWo9S9TMFg+5T2KmCKPH8sUo 3O70dwlBrViAcWtqPw7kCh347USPh6iv0aSxv/xaTglK2dAHOj79rzZiGJO3REepBP1r u6Ag== X-Gm-Message-State: AOAM530loVQPRwPO8V3aw3OON5qCDwQ/Mae9pac2PFns4UrWAWm5J4NR /AA0vEcNiHaBrRrS+8V1pwicsA== X-Google-Smtp-Source: ABdhPJx9Zno3oAszEpQSd/n4PnO2QNAuNkUGb12hjpp8HsLen9cxO4C/uNjsvLGvYRAHddpH9w+INQ== X-Received: by 2002:a63:6ec9:: with SMTP id j192mr7022031pgc.115.1631831449675; Thu, 16 Sep 2021 15:30:49 -0700 (PDT) Received: from google.com (157.214.185.35.bc.googleusercontent.com. [35.185.214.157]) by smtp.gmail.com with ESMTPSA id b1sm3951150pjl.4.2021.09.16.15.30.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Sep 2021 15:30:49 -0700 (PDT) Date: Thu, 16 Sep 2021 22:30:45 +0000 From: Sean Christopherson To: Peter Zijlstra Subject: Re: [PATCH v2 05/13] perf: Force architectures to opt-in to guest callbacks Message-ID: References: <20210828003558.713983-1-seanjc@google.com> <20210828003558.713983-6-seanjc@google.com> <20210828194752.GC4353@worktop.programming.kicks-ass.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210828194752.GC4353@worktop.programming.kicks-ass.net> X-Mailman-Approved-At: Fri, 17 Sep 2021 04:46:52 -0400 Cc: Wanpeng Li , kvm@vger.kernel.org, Alexander Shishkin , Catalin Marinas , Guo Ren , "H. Peter Anvin" , linux-riscv@lists.infradead.org, Vincent Chen , Jiri Olsa , Boris Ostrovsky , Stefano Stabellini , xen-devel@lists.xenproject.org, Marc Zyngier , Joerg Roedel , x86@kernel.org, linux-csky@vger.kernel.org, kvmarm@lists.cs.columbia.edu, Ingo Molnar , Like Xu , Albert Ou , Zhu Lingshan , Will Deacon , Arnaldo Carvalho de Melo , Borislav Petkov , Greentime Hu , Paul Walmsley , Namhyung Kim , Thomas Gleixner , Artem Kashkanov , linux-arm-kernel@lists.infradead.org, Jim Mattson , Juergen Gross , Nick Hu , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Palmer Dabbelt , Paolo Bonzini , Vitaly Kuznetsov X-BeenThere: kvmarm@lists.cs.columbia.edu X-Mailman-Version: 2.1.14 Precedence: list List-Id: Where KVM/ARM decisions are made List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu On Sat, Aug 28, 2021, Peter Zijlstra wrote: > On Fri, Aug 27, 2021 at 05:35:50PM -0700, Sean Christopherson wrote: > > diff --git a/init/Kconfig b/init/Kconfig > > index 55f9f7738ebb..9ef51ae53977 100644 > > --- a/init/Kconfig > > +++ b/init/Kconfig > > @@ -1776,6 +1776,9 @@ config HAVE_PERF_EVENTS > > help > > See tools/perf/design.txt for details. > > > > +config HAVE_GUEST_PERF_EVENTS > > + bool > depends on HAVE_KVM > > ? Ah, nice! We can go even further to: depends on HAVE_PERF_EVENTS && HAVE_KVM though I'm pretty sure all architectures that select HAVE_KVM also select HAVE_PERF_EVENTS. Huh. arm64 doesn't select HAVE_KVM even though it selects almost literally every other HAVE_KVM_* config. arm64 has some other weirdness with CONFIG_KVM, I'll add a patch or two to fix that stuff and amend this patch as above. Thanks again! _______________________________________________ kvmarm mailing list kvmarm@lists.cs.columbia.edu https://lists.cs.columbia.edu/mailman/listinfo/kvmarm