Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4929102rwb; Tue, 8 Aug 2023 16:56:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH7ZnxbrGUnOPDrPJrff5rkmJw+jrheBRXiZAx6HmrN7scntNeROkXVfPhDBz7cPlOt4l/p X-Received: by 2002:a0d:cb4a:0:b0:570:8e80:5572 with SMTP id n71-20020a0dcb4a000000b005708e805572mr1181534ywd.34.1691539001469; Tue, 08 Aug 2023 16:56:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691539001; cv=none; d=google.com; s=arc-20160816; b=kxrbdYSoB9OottsYCcpM8XJp0hWUqvxh9WSaaGrmqECqGARBw8JNIf8jF6xuROkG8l NgIVEpJU5pM9zzrimRRvop6xsUcbiIaDyj8RKBM4n4Z8kdLm4gqYtOACH55FzutU/rky ahRjwdVb2p6mTJwnPywwqaKzSKiAb1sOpLMLbQrRp+y/1otbJnIDEYk0gYX1xoLCitd3 YnK2ddAJNz9Tn8HQjJeoIbZUSZoyeH6hNrIs+wGI/USeN3JwT9SEZbGzcfC2rQkUJbEm sBmlFaCMYzNMZbFOxBrkLy2Amj+HPq0SDEAZrS3+jxzki/8PdScwAq66gbxXI8EsySp6 QEXQ== 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=rRsJm5KN8y0omlFlyBVh6FOC8Y/5Pdk4ttGOceHQNGg=; fh=gCmhkkXOGzgKShDZ1VA8I9oX8b+8AoHFoFVURxVyzH4=; b=b7/k3+tpwLoMtjJTiwns58iVsyDjk96OBS3tdVzaKeeUjwUBhZxG3nAQYLQBYCR6aN fyDdmTiaF6ITTt9HOeaizS/SwXMa+8JbE19RwRb+psVQ/vby1o0bouCJ/57H8KMGEGyV ff0b7JqFDZ79wP28QW9XzbCnUDbl3t3xi5RsX8WBd2xmT2uuIVeWr2Dl8pGFsYGjCzIv twsVFR4kCN1RXqzoBLf/oG9g0ndfO/Nf4dAMYFfMQFpoSDx3Un+888CvpbVEjxy3l5ze TKFbWIlXwC7zgCJ153pP6bxWUVxfu8C1P7uyomdlIvUbPorL5GFUJ0oRxCymQcN53WRf 0/cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b="CQf/Txan"; 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 y20-20020a634b14000000b0055b635d97adsi7595686pga.619.2023.08.08.16.56.29; Tue, 08 Aug 2023 16:56:41 -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="CQf/Txan"; 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 S231845AbjHHXNr (ORCPT + 99 others); Tue, 8 Aug 2023 19:13:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231192AbjHHXNk (ORCPT ); Tue, 8 Aug 2023 19:13:40 -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 B03CC19A0 for ; Tue, 8 Aug 2023 16:13:39 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id 3f1490d57ef6-d4df4a2c5dcso4105571276.2 for ; Tue, 08 Aug 2023 16:13:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1691536419; x=1692141219; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=rRsJm5KN8y0omlFlyBVh6FOC8Y/5Pdk4ttGOceHQNGg=; b=CQf/TxanV6OEd32ELCfkkts3XxnHA4pKxGHkzWqcVZLhDHcGXQK8pxhlEmtKwP/tpP UAyUov8OA4rqJcX0xB4frWPFkoC8zGz0reXRyqNoFb6QQc7uiAJt57EURlLsfXhtvSua dVYnrRYGo2ZXskRE7T0A21bujPL542X8vcR00OPyT91QR3v88w0f/6FbYWXk1Xzn0erM sTAg25XQTO1XYYl95Z33YL5N1hptl2XY6pPHEzG2zsJje3brq/4ttctRSjL4Be7i5xzH VbfCPWiV7RKvMZQeOm7dW2jfJtV7whha+buhr6WES83vayzqgg3bRBsrouX7l2lyMHB5 9ejw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691536419; x=1692141219; 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=rRsJm5KN8y0omlFlyBVh6FOC8Y/5Pdk4ttGOceHQNGg=; b=QjV2A/UF1+vouo238i+TDflljp1TM5uNjBkA9ZLK7xVY/4lDQvZnWmwxznuWYIaV91 d+bhLrIgSMnSAywPjArfomSP5eDXytz8xlb3Gn0gFqUmqq1V2OAv3j/TA6R054UynO0d GKYRS97cv6Cu8s98No2aayj1hcljKf/HnILnFtZYPWBXv74i4UWIgLGEIaokGJ8lH3Mc kWlJ8ULoad9OI06S8Am8nbWJrjyQxVC5ry+Eq5E/iF9MPIjhseN7mlznCEJEyXDMOcAu JQMgL6vsN8X5pXat5Tq9qSfofRjLrFuMUA4t8gm3mzy9kFkGase4TljwqVKB3LRRurYl +X8Q== X-Gm-Message-State: AOJu0YwNF9RB1KUaZydweETwd//+Vv8ifCxPtrPi5X/qGXT8OAeIvppI 4Xnh7JZI1WM3FaDfoqRSRDqUr3stYJKA X-Received: from rananta-linux.c.googlers.com ([fda3:e722:ac3:cc00:2b:ff92:c0a8:22b5]) (user=rananta job=sendgmr) by 2002:a05:6902:1788:b0:d45:1b81:1154 with SMTP id ca8-20020a056902178800b00d451b811154mr21428ybb.2.1691536419023; Tue, 08 Aug 2023 16:13:39 -0700 (PDT) Date: Tue, 8 Aug 2023 23:13:20 +0000 In-Reply-To: <20230808231330.3855936-1-rananta@google.com> Mime-Version: 1.0 References: <20230808231330.3855936-1-rananta@google.com> X-Mailer: git-send-email 2.41.0.640.ga95def55d0-goog Message-ID: <20230808231330.3855936-5-rananta@google.com> Subject: [PATCH v8 04/14] 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 , Fuad Tabba , 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, Shaoqin Huang 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 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 Reviewed-by: Shaoqin Huang --- 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 b74916de5183a..484d0873061ca 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 70e5479797ac3..d6b0507861550 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.640.ga95def55d0-goog