From patchwork Sat Sep 16 00:31:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Christopherson X-Patchwork-Id: 13387987 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id E3ED9CD37B0 for ; Sat, 16 Sep 2023 00:33:04 +0000 (UTC) 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:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Message-ID :References:Mime-Version:In-Reply-To:Date:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=TxucmsXfX/byMa5c6xh+A1QzV1ljqkF5Kjbdlgi3GZg=; b=3zwA11lheBLbjW 93ej/s816QZ+oLqlEJ5nXCQ2NB0RSJ2ZHkbMIRTaXHnnx+/y4OxMDFy/4610z9eJOAMDQKYCmML1f 15rexNxqe0qI4Km846AsGDYxyYu9UUPz1kXS01D9Uz2UEvqquIKDHauCl9Sp9yno7ja5l4OFm7Fgi mpY3VPn6PP7GVxaBIgKsuqMH9xk6Q+wbYkw+afy7jTJO2kDFFKEtkl9p4FlxcU8n4Vv9D7Mxo349w 4DP2oa9VA2soKfzJTkYoabQPe345u45EHyEHrE2pi+uiOiE2gxNQrivvC69kh7SlTUWFA5FSgvfmN 0m01JjpTeNw31GIw3y9w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qhJEh-00BdXR-27; Sat, 16 Sep 2023 00:32:35 +0000 Received: from mail-yb1-xb4a.google.com ([2607:f8b0:4864:20::b4a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qhJDs-00Bcfo-0t for linux-arm-kernel@lists.infradead.org; Sat, 16 Sep 2023 00:31:49 +0000 Received: by mail-yb1-xb4a.google.com with SMTP id 3f1490d57ef6-d8027f9dfefso3281237276.0 for ; Fri, 15 Sep 2023 17:31:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1694824302; x=1695429102; darn=lists.infradead.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:from:to:cc:subject:date:message-id:reply-to; bh=11iXbA6RA96N2ihdzvT9DOzykVF8TPNgieg32BOfaCo=; b=a2CBc8IA8PV2pD8hTo+WqCu9+mN0WTn2ZhyOSiMr0xeTBAlIyXvGMmX+qLL0dGKrf8 QXecz9U+fHXwvhN8L7xn9ickv/3heVuYn+EUfINzq8WJqESHK2Jafvnpeg6ygZWZtDvW ksR6mDUZTLPxmnwvRAyfZu+sjnfsr2vBSfqdu1QYUq9l4yWtLQj9agxM8iM+VZ+SJizg pyLoKE34QPqbFWooR6SMc56WnO+lLqJYjJXopahiKAwioaNp6Bnl2vnDgi8EDDjEiQb3 Fwc3YEvH16Vr6F8AS1CmL+/mTaCmxKLyxTTouUeLZZ0Kt5Q9/n8M3MS2gs45AhRyYBqd LqxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694824302; x=1695429102; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=11iXbA6RA96N2ihdzvT9DOzykVF8TPNgieg32BOfaCo=; b=eTrosvu6I5Fdl/ysRzf3mxItUlTh41K5CtKzRZp+05ch89L8vbEui2fWBNLMb2kHbs CYoxjSafJ19LLEK/TsgXXsNTDqkirrMzJol4RN7WmXsRSblbXM04HCgPuyMmdHV7sElK S5wtuCPFjx+G6/JtUSudWfCM7B3at1N4XGUuAXrBYLBOpX3JMurapVZcBxSE4/nOWZgg mwkfDIQkJt4QQB7fQRvOQaTO7KTHbckIVHGMCkxsybpCFOW2FdAs0K6bhy/zdqsmITul S5UZl28lnzYfZTrjjTonvF5pOG4wWC50SJpuj3gPRRMuGuA7sezw2t/Y/whITuUkiKEj d+UA== X-Gm-Message-State: AOJu0YwzyHYlQyKcXhkUiEbUijBXgmefHN4FBPjrvlVpqxMEa9IbSrXe 7UljCi0p0Lwwi1swQJcEN9Y5No8O4f0= X-Google-Smtp-Source: AGHT+IEXzBZMjfoz19MMDpz0z/mfp5J4Xc54+oTqT/y9sTC3/YRTAU+NLkJhdnChwcXUDWkKwhep1BL4HMg= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a05:6902:138e:b0:d78:245a:aac4 with SMTP id x14-20020a056902138e00b00d78245aaac4mr82625ybu.1.1694824302614; Fri, 15 Sep 2023 17:31:42 -0700 (PDT) Date: Fri, 15 Sep 2023 17:31:03 -0700 In-Reply-To: <20230916003118.2540661-1-seanjc@google.com> Mime-Version: 1.0 References: <20230916003118.2540661-1-seanjc@google.com> X-Mailer: git-send-email 2.42.0.459.ge4e396fd5e-goog Message-ID: <20230916003118.2540661-12-seanjc@google.com> Subject: [PATCH 11/26] KVM: MIPS: Make HAVE_KVM a MIPS-only Kconfig From: Sean Christopherson To: Catalin Marinas , Will Deacon , Marc Zyngier , Oliver Upton , Huacai Chen , Michael Ellerman , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Janosch Frank , Claudio Imbrenda , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, Peter Zijlstra , Arnaldo Carvalho de Melo , Sean Christopherson , Paolo Bonzini , Tony Krowiak , Halil Pasic , Jason Herne , Harald Freudenberger , Alex Williamson , Andy Lutomirski Cc: linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-mips@vger.kernel.org, kvm@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Anish Ghulati , Venkatesh Srinivas , Andrew Thornton X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230915_173144_354038_E8524142 X-CRM114-Status: GOOD ( 12.47 ) 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: , Reply-To: Sean Christopherson Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Now that MIPS is the sole remaining user of HAVE_KVM, make HAVE_KVM a MIPS-only Kconfig. Because most architectures unconditionally support virtualization, advertising to the kernel at-large that an arch has KVM just led to a bunch of useless and misguided #ifdefs. Signed-off-by: Sean Christopherson --- arch/mips/kvm/Kconfig | 3 +++ virt/kvm/Kconfig | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/mips/kvm/Kconfig b/arch/mips/kvm/Kconfig index a8cdba75f98d..c4508f49caae 100644 --- a/arch/mips/kvm/Kconfig +++ b/arch/mips/kvm/Kconfig @@ -4,6 +4,9 @@ # source "virt/kvm/Kconfig" +config HAVE_KVM + bool + menuconfig VIRTUALIZATION bool "Virtualization" help diff --git a/virt/kvm/Kconfig b/virt/kvm/Kconfig index f0be3b55cea6..f7bb6c59658e 100644 --- a/virt/kvm/Kconfig +++ b/virt/kvm/Kconfig @@ -1,9 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 # KVM common configuration items and defaults -config HAVE_KVM - bool - config HAVE_KVM_PFNCACHE bool