Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp5060654rdb; Sat, 16 Sep 2023 00:55:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGeflt7sgXeZXQIeJd40u2ka5poH/vD7t9mGVY8FteKPTip8JWNMvsbVeM0Xied6id2x1G7 X-Received: by 2002:a17:902:8c8d:b0:1bb:598a:14e5 with SMTP id t13-20020a1709028c8d00b001bb598a14e5mr3713433plo.43.1694850940844; Sat, 16 Sep 2023 00:55:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694850940; cv=none; d=google.com; s=arc-20160816; b=Pc1Ie1+V6aPQxQ7UAf34OLq8k9sJ895b1FqHQm0zN7Zar/iS/Cj48btDcumP84gvS4 vs2FIO8Xcn5D39XJIOD2QiwG32t/FhYbna3hZ6EX/gQjymrXF+v92bWssGt2eITk6APz icIedxAmXS194wVA/uUVxEhHO4EUb2NFxhjHg0ZWkoInYmqlEwMG3D9/175zP3MZP0jS 142toXsKNtbxtaDsfHiy9mSTMpmP+trhkx4RGM9IASOs7hQKvCrxJCTu7+7CoNsY9hyK mcUe8OLEjnq/RzO8CmFj4M/zFFo8qhpmb8T9WTDblF3wixytupylemDcXCnHCsPV3T0y VF6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:reply-to:dkim-signature; bh=11iXbA6RA96N2ihdzvT9DOzykVF8TPNgieg32BOfaCo=; fh=kXSkXFacTVTlVHq0XnHvR0iN61knZqi7sPJIGv3JAWo=; b=q06NEyukYExOm8j9FwjlXxBVp0Sh/8RV93ZFIrI7EfUk1VAUGoq9WnMIiCD50owE2w m3iXm18+zOTB6LUQmHg6H40EuASXcVacbRo4tHz3rEBRvYWzPTtOf3xJZTBl9NCZpYL8 hfV9fd/25U8tw+wMq8yskVRXCLrdnm+cYFxU9XTivDhgC8t0u6/TY+w7KQz0BtVUHL3u fr/+u+wpJ3pCyBubIfpKF6HJ/gO2Qllqhd9iwnJYaWzOwT1o/x/RPF/FheSQ/RKjd6M/ yXfOz0OhDU0piSlMAIonnYIsXY4TeNce4AsT8zx64Pg8xuri/omi1+ii5CV/pT70hj+s /Vrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=TMBBmJdJ; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id e15-20020a17090301cf00b001c329c4c4e2si4774817plh.619.2023.09.16.00.55.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Sep 2023 00:55:40 -0700 (PDT) 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=@google.com header.s=20230601 header.b=TMBBmJdJ; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id AF4B58275E53; Fri, 15 Sep 2023 17:33:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238767AbjIPAdD (ORCPT + 99 others); Fri, 15 Sep 2023 20:33:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238783AbjIPAco (ORCPT ); Fri, 15 Sep 2023 20:32:44 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7795A1AD for ; Fri, 15 Sep 2023 17:31:43 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id 3f1490d57ef6-cf4cb742715so3251845276.2 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=vger.kernel.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=TMBBmJdJhKP3G7bLvh5bdJ5HGVmLAGy+9sz6UWizDB39p5JJWRUAN4BMluE44WgqaK wt2Nl4rnJkO+uUW1TJHGwPYu7Wmkckr5hY3/lUNOEkpsbYkjO25i9vBxMNWLW93wE1FQ eOH0ZTOXp5SxEVktCtxbclt7fwt1iwZGB5KE0Jr7gVN8jx1uM5DeCq7X08FEv0vvkXLB mmgiSAzG42PIPMtMopVz6N/tt6PE6lLuAmQTEBDHCWix+mIbNF1izydhDD8DnzM0IfuM /wBerUvM6cRESUAgk7f1LS+zk4wSiO+8El28U4AC5EvVZjkDW5MGweeXrUJAn/6ijUQf 8Q6A== 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=YbwCDp6oMZ2tBX1I+5R5PRHMyL+BnuwvH7CqCkb2DfkEo3Q0ccsRqxKde4v7NAUhY9 NxAaRM3DT8VY9/5xGV+POQwBAlysiqsa+SggQKHh50dCiz55Vvv+HnUj55bulj/aZitI zzUu68i9YtJJc41wVyZZh27hR5+6XkR9w7r614r2kISmzRZSSRu4Q0z27YR4wsWKm4G4 txUA80rH9uIrP8574+zy9nFdIN79/jUvWJ/V2y9jaaji+wTDFkZPfPdLZVh1yLyY3Iwe RB9cYQor5limmyE/D7Fx8bNXDOXKSV/QFPTXo0oQAqJIjyUXlPTvZidl0HCz1ZPIEOdb fFcg== X-Gm-Message-State: AOJu0YwccI9Ub3G20uY9aQmd2LEppRp3+9Xr8arIi6qmu5N0FUc0P47f sSxRjQPllNsV/RWZVeJtwXwypytjAOE= 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) Reply-To: Sean Christopherson 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL 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]); Fri, 15 Sep 2023 17:33:24 -0700 (PDT) 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 -- 2.42.0.459.ge4e396fd5e-goog