Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp646854rwo; Fri, 21 Jul 2023 19:25:00 -0700 (PDT) X-Google-Smtp-Source: APBJJlFXnC/3OXNx/LcU25PoHO48TnEoFS4k8W/gG9ldaav7SoglBLcoGGYhK4YUeiVMc9fCkF7t X-Received: by 2002:a05:6a00:2da9:b0:67c:c8e4:8689 with SMTP id fb41-20020a056a002da900b0067cc8e48689mr1464182pfb.12.1689992699866; Fri, 21 Jul 2023 19:24:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689992699; cv=none; d=google.com; s=arc-20160816; b=LzHfJwZiVGOVhlTXjl3wfOJqxBwNWSVKv0Md72IlG1QxmBLmjs8V97uTpXmekVETzY Kvc2wQG5TrXT4vbHyJENhwHSKmfQ5IZ1PeRcZqN2jt9EBL5PDIhF24kzyDjYa/OeT1ou RhjnIR7+NiC+ZpJ6utjMI8nqkzrx+xTmm7uPQb2dl3qr/9LsNO1XFtKaosEtLtiHmaZ4 tMA9wrFOcrxjKu3ivAE5W8dkmbu6B7zwEFbrM4IdfQoFYR4k2WHgnyI1y5D5Jy7mvbO0 FGhf0Bs4v9T60aQ81srz3ryuRg2kSNF9icaxb0hyvgR6+BelFKDefUa+yk7kjbjfnfAw /EKA== 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:dkim-signature; bh=Ub1b4RkH+SiNL7JMG3rpDZe3A40I4dIIMSmDo0IlQzA=; fh=vYXqWNXB1QhwaqKb0UuhJGPnFZIF+oqCVtxvTkKoukU=; b=Myxp2GDoXR5oEjM7pGajvEpP9BX/vL21vkO7mIBJNG/qJtPheO8DkMTlTfRzA0NECU xczaA8ybrv0YEUV3jUzu64dm8dfeRWnvWsvdIdYr03LqnVIqjrgEKM9TvxiW+a/VgOPB 3O4tyIaBLCpD9xwDG8tpMun7828WGjGvyql+bZ6sjNeXJE0AOxIRKOnycZXJXrSlFZCR Qj/okQKpp9SA+sUNcW/JQqdLOsnxaeW42swPQ69rqtjOnfzsm/7uzCYojuF1hT9NRoLr QnESKmXE+V3F/kSgxMclKxLQSKxA3C0AMK1feCxKmXbs4rg6WS+ZIwRnVvtLkjoJD71N 4sgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=mdoy5qzV; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f15-20020a056a001acf00b00679cdcafec1si4353511pfv.109.2023.07.21.19.24.47; Fri, 21 Jul 2023 19:24:59 -0700 (PDT) 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=@google.com header.s=20221208 header.b=mdoy5qzV; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231286AbjGVCXc (ORCPT + 99 others); Fri, 21 Jul 2023 22:23:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230441AbjGVCXC (ORCPT ); Fri, 21 Jul 2023 22:23:02 -0400 Received: from mail-ot1-x34a.google.com (mail-ot1-x34a.google.com [IPv6:2607:f8b0:4864:20::34a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 849CA30F1 for ; Fri, 21 Jul 2023 19:22:58 -0700 (PDT) Received: by mail-ot1-x34a.google.com with SMTP id 46e09a7af769-6b9c74b1df7so5664500a34.1 for ; Fri, 21 Jul 2023 19:22:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1689992577; x=1690597377; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=Ub1b4RkH+SiNL7JMG3rpDZe3A40I4dIIMSmDo0IlQzA=; b=mdoy5qzVWH2lXFeq+l8GrcDaZ/AZtpebOXZQbAycbvs9F3gc+FWUF9ZJWPljZ/WTZD N7E2CrdeVR5j4hLBJ6lRk+I7mY3w46nxq1+pryXFAKZcAm6ro0anIkD55cC7HYUHEtBl +dJrlJdeVINBllBXagJSINAu10sD/s1fUyDdrNYf7y42VzG1fL7GeDIkL7+WYoytIjDy GHMZhXrzf4o6R4qf5HOBkK1MFK9gmO6/4OMh2/Y3htnJZzNT+xxMwKlwZX5zfwWUZjjA VHLWteESBncMN/9UQw6Di221i0kp5JpanK4qcj2hiL8RK1AhymvQXKdy0Wc1MgLrg4t+ 08/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689992577; x=1690597377; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Ub1b4RkH+SiNL7JMG3rpDZe3A40I4dIIMSmDo0IlQzA=; b=UKFUFHMaHopqtGfKwSoNWz/ErBLdT1bPFiHUCt6kzx+RmT6bSA5JZKuqvdMTt3mfY/ TMH9IZt/V9muzdJzV3C0XuCpfPdAYRNOdN3nH1Helb6CatJzHNwN2LYGMMXEXGnKVjaE eAxjffs0XUh2B3YwCTHSI71wtLrJxsSuz5DTxhpeySEko6KeyFsK1S0tVqCFZLcHQN6x WNp8shd6Lbgi6oyLGsbYALmecX9VjNDjCi2ZOVJhN6WQHrHGr7sl9uM0Y6Z3TOxL/hV0 TEIurVDGPs5piBAh6C+/bBpjC9TFZFaDP89EVJ5h/tAQGmJAu3MNaIyGZuIabTnwbW0V 8VNg== X-Gm-Message-State: ABy/qLYmvoT/sxyngcYJb0eEVOs754XiRThZfvG46lPD2ZVZdwY9qTK7 IdmeR2AroxwDN8L1XpmlNFyzUWwFynlF X-Received: from rananta-linux.c.googlers.com ([fda3:e722:ac3:cc00:2b:ff92:c0a8:22b5]) (user=rananta job=sendgmr) by 2002:a9d:6d03:0:b0:6b9:cf90:87a6 with SMTP id o3-20020a9d6d03000000b006b9cf9087a6mr2197907otp.1.1689992577845; Fri, 21 Jul 2023 19:22:57 -0700 (PDT) Date: Sat, 22 Jul 2023 02:22:42 +0000 In-Reply-To: <20230722022251.3446223-1-rananta@google.com> Mime-Version: 1.0 References: <20230722022251.3446223-1-rananta@google.com> X-Mailer: git-send-email 2.41.0.487.g6d72f3e995-goog Message-ID: <20230722022251.3446223-4-rananta@google.com> Subject: [PATCH v7 03/12] KVM: Remove CONFIG_HAVE_KVM_ARCH_TLB_FLUSH_ALL From: Raghavendra Rao Ananta To: Oliver Upton , Marc Zyngier , James Morse , Suzuki K Poulose Cc: Paolo Bonzini , Sean Christopherson , Huacai Chen , Zenghui Yu , Anup Patel , Atish Patra , Jing Zhang , Reiji Watanabe , Colton Lewis , Raghavendra Rao Anata , David Matlack , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-mips@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org 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,T_SCC_BODY_TEXT_LINE, 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 kvm_arch_flush_remote_tlbs() or CONFIG_HAVE_KVM_ARCH_TLB_FLUSH_ALL are two mechanisms to solve the same problem, allowing architecture-specific code to provide a non-IPI implementation of remote TLB flushing. Dropping CONFIG_HAVE_KVM_ARCH_TLB_FLUSH_ALL allows KVM to standardize all architectures on kvm_arch_flush_remote_tlbs() instead of maintaining two mechanisms. Signed-off-by: Raghavendra Rao Ananta --- virt/kvm/Kconfig | 3 --- virt/kvm/kvm_main.c | 2 -- 2 files changed, 5 deletions(-) diff --git a/virt/kvm/Kconfig b/virt/kvm/Kconfig index b74916de5183..484d0873061c 100644 --- a/virt/kvm/Kconfig +++ b/virt/kvm/Kconfig @@ -62,9 +62,6 @@ config HAVE_KVM_CPU_RELAX_INTERCEPT config KVM_VFIO bool -config HAVE_KVM_ARCH_TLB_FLUSH_ALL - bool - config HAVE_KVM_INVALID_WAKEUPS bool diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 70e5479797ac..d6b050786155 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -345,7 +345,6 @@ bool kvm_make_all_cpus_request(struct kvm *kvm, unsigned int req) } EXPORT_SYMBOL_GPL(kvm_make_all_cpus_request); -#ifndef CONFIG_HAVE_KVM_ARCH_TLB_FLUSH_ALL void kvm_flush_remote_tlbs(struct kvm *kvm) { ++kvm->stat.generic.remote_tlb_flush_requests; @@ -366,7 +365,6 @@ void kvm_flush_remote_tlbs(struct kvm *kvm) ++kvm->stat.generic.remote_tlb_flush; } EXPORT_SYMBOL_GPL(kvm_flush_remote_tlbs); -#endif static void kvm_flush_shadow_all(struct kvm *kvm) { -- 2.41.0.487.g6d72f3e995-goog