Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2130802rdb; Mon, 20 Nov 2023 02:59:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IHscgsCGaHA6Vh2sKgUAujpmROgftzq+M31Gygo6GbmMw+dHJpyExUv5EMB+GZjmoDNG++D X-Received: by 2002:a17:902:ac8e:b0:1c9:b2c1:139c with SMTP id h14-20020a170902ac8e00b001c9b2c1139cmr10098132plr.62.1700477993192; Mon, 20 Nov 2023 02:59:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700477993; cv=none; d=google.com; s=arc-20160816; b=JVDXim94ZyDlAymqvU58ROniuhZc8VHrNlffaVXIuxNSochJ7k1S79PRPBtqKjlYdU aZpR+H5d/fSefzgdZ3NOcK5SpB0fPXCcb3ALL0joXELa5m9TdVMRLdWwLMpM5Ejx3RY9 ckBKaraxj54+D4HIQtbVkwoVnlYg6PtvJa/aCT6cEV+sC7Z2ot3CiAy53O3LrfapOmd9 ipdvSg5TD/g0JtYcqB4wEbYGUJ9aeOJws1pLL4G7AFYG8j9/rBthclq0ZXkdk8MBnaOZ 0s18XZZYqaeTrSG3brwYeM2cxbgfaQ6PVpsrkH2ZwtEHIYwuGtRXQPUw0L0GMvStquTE 0aLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=k68HwnJwcz4zoShTsfUk757+WGBllw5A6qnajgwYuQI=; fh=bEaXtmS8lzRItYrE/RfaVyKNdc9i8y6GHBEJVBz/DUE=; b=XHKMdtxKBtNvfRQ97o5l6rNDtEjo+PduFtCLWEDYlQEH/AIy/CrEyMt4rW7idUdMwD bexXVssIlCVb30gyE9y0lHHbctRDuDP2q8kphVoBlH7jBZkc9M7FWXalzNYpDl2caogS 6XBk6mmXZ0R7nyUzT8cI/r2Qr+G5ERFnYZIrT4pGJbXoWk9oMXrpUu8dmCyMwt34/J4F yLbAp2Qsn//p9SYnGcQWqOq+uhDNZxFTmJD0YfAvuOLXqdSFh8KtEQu7E4GGc7pPldLk iNH05zQo4XGSv8PUFSKYGGHrTonO6VwgEOxT7OyQZDg9F6fDikpvU9lgxtAB8jPwo03i Whcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=T1e0LFnt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id u18-20020a170902e5d200b001c89c86160bsi8227333plf.385.2023.11.20.02.59.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 02:59:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=T1e0LFnt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 0FCC2807079A; Mon, 20 Nov 2023 02:56:40 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233280AbjKTK4b (ORCPT + 99 others); Mon, 20 Nov 2023 05:56:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233204AbjKTK4S (ORCPT ); Mon, 20 Nov 2023 05:56:18 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D4FE9C for ; Mon, 20 Nov 2023 02:56:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700477770; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=k68HwnJwcz4zoShTsfUk757+WGBllw5A6qnajgwYuQI=; b=T1e0LFntgh+O0GGeCaNDvGWW/LYc4C9ZWhOKVlWGGSKLXGzGoulSixZnfUGTkLjJadn0dS 6YSoar/qqugUQC91crIrWX3ATmLYQY2PsaVuwuiJA4IKg2nMjO4QlcWTmcibeGHnIaIlGR 2tzYr+vNFTGFMdQfsRbmL6HKq1UNU+Y= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-130-HElFptZqNS-CKEUV_FXkew-1; Mon, 20 Nov 2023 05:56:03 -0500 X-MC-Unique: HElFptZqNS-CKEUV_FXkew-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id EE7183C0E203; Mon, 20 Nov 2023 10:56:01 +0000 (UTC) Received: from vschneid-thinkpadt14sgen2i.remote.csb (unknown [10.39.195.45]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4FE2F2026D4C; Mon, 20 Nov 2023 10:55:57 +0000 (UTC) From: Valentin Schneider To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-arch@vger.kernel.org, x86@kernel.org Cc: Thomas Gleixner , Borislav Petkov , Peter Zijlstra , Josh Poimboeuf , Pawan Gupta , Ingo Molnar , Dave Hansen , "H. Peter Anvin" , Paolo Bonzini , Wanpeng Li , Vitaly Kuznetsov , Arnd Bergmann , Jason Baron , Steven Rostedt , Ard Biesheuvel , Frederic Weisbecker , "Paul E. McKenney" , Feng Tang , Andrew Morton , "Mike Rapoport (IBM)" , Vlastimil Babka , David Hildenbrand , "ndesaulniers@google.com" , Michael Kelley , "Masami Hiramatsu (Google)" Subject: [PATCH 3/5] x86/kvm: Make kvm_async_pf_enabled __ro_after_init Date: Mon, 20 Nov 2023 11:55:26 +0100 Message-ID: <20231120105528.760306-4-vschneid@redhat.com> In-Reply-To: <20231120105528.760306-1-vschneid@redhat.com> References: <20231120105528.760306-1-vschneid@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 20 Nov 2023 02:56:40 -0800 (PST) kvm_async_pf_enabled is only ever enabled in __init kvm_guest_init(), so mark it as __ro_after_init. Signed-off-by: Valentin Schneider --- arch/x86/kernel/kvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/kvm.c b/arch/x86/kernel/kvm.c index 0ddb3bd0f1aac..146e16f420edf 100644 --- a/arch/x86/kernel/kvm.c +++ b/arch/x86/kernel/kvm.c @@ -44,7 +44,7 @@ #include #include -DEFINE_STATIC_KEY_FALSE(kvm_async_pf_enabled); +DEFINE_STATIC_KEY_FALSE_RO(kvm_async_pf_enabled); static int kvmapf = 1; -- 2.41.0