Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6755209rwl; Mon, 9 Jan 2023 12:35:28 -0800 (PST) X-Google-Smtp-Source: AMrXdXvTOym6wqvR3iaB1+7A6XQZ/+LfBSxX/xtmybWf2k1QjkZXwuBFVMJ/U8fr+/gW4ksgp0fg X-Received: by 2002:a17:90a:514e:b0:226:ca91:3979 with SMTP id k14-20020a17090a514e00b00226ca913979mr15695795pjm.26.1673296528429; Mon, 09 Jan 2023 12:35:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673296528; cv=none; d=google.com; s=arc-20160816; b=vgWb+gB/U0tnQJNEQu+ZwpmRD2W0Skv0cmVE24G/gVmkvDUHfFHLc+rnYjvv+g78Z8 XGjIC3vQEk1iEe/QOL6sXVj/rrjqB7A+rhIyH81l7MXB82Q/wZN0ZWU0/HduY5w0ZlLx 46jS1bcmUzr4kA4/jWWt1tfY4rhqGQ2Tp3etY3Yer8nelztYoUQMoD+TqG1tjQK4JjC5 OivToIVPeufJo2MBMsMZxri8R9TjMiyTrw7DVejGM1ztewR4aIFKxyFajDbOqj/Dp/+M 3Tq7SUZK5N9KoqR9rvJFuDZnLyX+7ZQDtp8F1i3xq/drPYFpDZxfhGBBpfQ/+OhcZIdQ QaSg== 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:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=GNVUM4fDhXuxgcrx3sUbZnOg5qJxyzIZB1e9Hx7szGY=; b=YjaBgTyzRezvhm3DFWAApQD+jfcqoG5DzSX7DMdb2XE75b3ls17V3AJvWJQn8okgaJ D/w5DHg1gHu2XVsX1EmRMS1Lb6cEQ8VTsZv/b3uYf3fV6gAu2N+smE0Efagp2mwUEJKg cT7jEYX4NMCnIl7VN74UXeoxSK0UtgRH0obhnjX3TFTR17wevWCSlB/w67all/XYeA/0 YslEStQfBvFfM56qFlmuHD4cAYW8EeO7HjySe74JkOivttC6PGrSHdAMxP5UWKUV29gg uzNupObVfD5zP1crj2JCVnLGLfVFfqPoaXbL61HkZLBEqbqjB3xOKxGc5PeLXMjzHppr m+mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jaAwXHC+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ob9-20020a17090b390900b00213625eee7fsi14180422pjb.106.2023.01.09.12.35.21; Mon, 09 Jan 2023 12:35:28 -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=@kernel.org header.s=k20201202 header.b=jaAwXHC+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237661AbjAIUG3 (ORCPT + 53 others); Mon, 9 Jan 2023 15:06:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237490AbjAIUF7 (ORCPT ); Mon, 9 Jan 2023 15:05:59 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5DCD2BE3; Mon, 9 Jan 2023 12:05:56 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id A20DAB80DAA; Mon, 9 Jan 2023 20:05:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57A30C433EF; Mon, 9 Jan 2023 20:05:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673294754; bh=yYs+qSiXSo4rOaJUjY69RaOD8scU/NtwsObjXwdlD+s=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=jaAwXHC+BFmOKh7m7WSuWE/MACludp41gnQPDqrxYXOjYys5lmUVGr8bZHDGQ81cG WBssMW6PNC4tDb3aTdv9RzrNAHTxVSOA9pTWdlJd/Y7+8T3pUJCMKRKf78rRch4DK3 h7QM7Un9PAa3XhYfL6zdu88Y5jEWPbreXFewEs7buZJK+l9AV4UgVIfh4qvtTDySA1 Ck5OMI9bAsyE0l96y43VQtRgoYGhaqny5Th/GcHVDIYsUIPlgZ6fCknVBRH5Bh7mUo DWh7ixR8k1hibd1IDPKbNmsXFKKlSrrbvaiqQJwHmn00m+plkgryD9J/iufCSFbEis 83+sBJv6bV5WQ== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 000725C05C8; Mon, 9 Jan 2023 12:05:53 -0800 (PST) Date: Mon, 9 Jan 2023 12:05:53 -0800 From: "Paul E. McKenney" To: Sean Christopherson Cc: rcu@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@meta.com, rostedt@goodmis.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Paolo Bonzini , x86@kernel.org, kvm@vger.kernel.org Subject: Re: [PATCH rcu 01/27] arch/x86: Remove "select SRCU" Message-ID: <20230109200553.GA4154229@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org References: <20230105003759.GA1769545@paulmck-ThinkPad-P17-Gen-1> <20230105003813.1770367-1-paulmck@kernel.org> <20230109192228.GV4028633@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230109192228.GV4028633@paulmck-ThinkPad-P17-Gen-1> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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, Jan 09, 2023 at 11:22:28AM -0800, Paul E. McKenney wrote: > On Mon, Jan 09, 2023 at 05:43:23PM +0000, Sean Christopherson wrote: > > On Wed, Jan 04, 2023, Paul E. McKenney wrote: > > > Now that the SRCU Kconfig option is unconditionally selected, there is > > > no longer any point in selecting it. Therefore, remove the "select SRCU" > > > Kconfig statements. > > > > > > Signed-off-by: Paul E. McKenney > > > Cc: Thomas Gleixner > > > Cc: Ingo Molnar > > > Cc: Borislav Petkov > > > Cc: Dave Hansen > > > Cc: "H. Peter Anvin" > > > Cc: Sean Christopherson > > > Cc: Paolo Bonzini > > > Cc: > > > Cc: > > > --- > > > > ... > > > > > diff --git a/arch/x86/kvm/Kconfig b/arch/x86/kvm/Kconfig > > > index fbeaa9ddef598..9306d99585188 100644 > > > --- a/arch/x86/kvm/Kconfig > > > +++ b/arch/x86/kvm/Kconfig > > > @@ -46,7 +46,6 @@ config KVM > > > select KVM_XFER_TO_GUEST_WORK > > > select KVM_GENERIC_DIRTYLOG_READ_PROTECT > > > select KVM_VFIO > > > - select SRCU > > > > Would it be too much trouble to bundle all of the KVM changes into a single patch? > > The SRCU requirement is a generic KVM requirement that's handled in the arch Kconfigs > > purely because of KVM's somewhat roundabout Kconfig setup. > > No problem, and will do on my next rebase. I might end up with a long > list of Cc's, but so it goes. I will of course send the result as a > reply to this message. Like this? (Given the acks, the Cc list wasn't as long as I feared that it would be.) Thanx, Paul ------------------------------------------------------------------------ commit 8bde7256e3bdcf4519ee783b0bd919685b960402 Author: Paul E. McKenney Date: Tue Nov 22 15:45:39 2022 -0800 kvm: Remove "select SRCU" Now that the SRCU Kconfig option is unconditionally selected, there is no longer any point in selecting it. Therefore, remove the "select SRCU" Kconfig statements from the various KVM Kconfig files. Signed-off-by: Paul E. McKenney Cc: Huacai Chen Cc: Aleksandar Markovic Cc: Thomas Bogendoerfer Cc: Michael Ellerman Cc: Christophe Leroy Cc: Sean Christopherson Cc: Paolo Bonzini Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: Dave Hansen Cc: "H. Peter Anvin" Cc: Acked-by: Marc Zyngier Acked-by: Anup Patel Acked-by: Heiko Carstens Reviewed-by: John Ogness diff --git a/arch/arm64/kvm/Kconfig b/arch/arm64/kvm/Kconfig index 05da3c8f7e88f..312f0e9869111 100644 --- a/arch/arm64/kvm/Kconfig +++ b/arch/arm64/kvm/Kconfig @@ -28,7 +28,6 @@ menuconfig KVM select KVM_MMIO select KVM_GENERIC_DIRTYLOG_READ_PROTECT select KVM_XFER_TO_GUEST_WORK - select SRCU select KVM_VFIO select HAVE_KVM_EVENTFD select HAVE_KVM_IRQFD diff --git a/arch/mips/kvm/Kconfig b/arch/mips/kvm/Kconfig index 91d197bee9c0a..591f46a5d7be1 100644 --- a/arch/mips/kvm/Kconfig +++ b/arch/mips/kvm/Kconfig @@ -26,7 +26,6 @@ config KVM select HAVE_KVM_VCPU_ASYNC_IOCTL select KVM_MMIO select MMU_NOTIFIER - select SRCU select INTERVAL_TREE help Support for hosting Guest kernels. diff --git a/arch/powerpc/kvm/Kconfig b/arch/powerpc/kvm/Kconfig index a9f57dad6d916..902611954200d 100644 --- a/arch/powerpc/kvm/Kconfig +++ b/arch/powerpc/kvm/Kconfig @@ -22,7 +22,6 @@ config KVM select PREEMPT_NOTIFIERS select HAVE_KVM_EVENTFD select HAVE_KVM_VCPU_ASYNC_IOCTL - select SRCU select KVM_VFIO select IRQ_BYPASS_MANAGER select HAVE_KVM_IRQ_BYPASS diff --git a/arch/riscv/kvm/Kconfig b/arch/riscv/kvm/Kconfig index f36a737d5f96d..6bc9b290c1283 100644 --- a/arch/riscv/kvm/Kconfig +++ b/arch/riscv/kvm/Kconfig @@ -27,7 +27,6 @@ config KVM select KVM_XFER_TO_GUEST_WORK select HAVE_KVM_VCPU_ASYNC_IOCTL select HAVE_KVM_EVENTFD - select SRCU help Support hosting virtualized guest machines. diff --git a/arch/s390/kvm/Kconfig b/arch/s390/kvm/Kconfig index 33f4ff909476c..45fdf2a9b2e32 100644 --- a/arch/s390/kvm/Kconfig +++ b/arch/s390/kvm/Kconfig @@ -31,7 +31,6 @@ config KVM select HAVE_KVM_IRQ_ROUTING select HAVE_KVM_INVALID_WAKEUPS select HAVE_KVM_NO_POLL - select SRCU select KVM_VFIO select INTERVAL_TREE select MMU_NOTIFIER diff --git a/arch/x86/kvm/Kconfig b/arch/x86/kvm/Kconfig index fbeaa9ddef598..9306d99585188 100644 --- a/arch/x86/kvm/Kconfig +++ b/arch/x86/kvm/Kconfig @@ -46,7 +46,6 @@ config KVM select KVM_XFER_TO_GUEST_WORK select KVM_GENERIC_DIRTYLOG_READ_PROTECT select KVM_VFIO - select SRCU select INTERVAL_TREE select HAVE_KVM_PM_NOTIFIER if PM help