Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp810009rdg; Thu, 10 Aug 2023 23:36:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFsZkXhl3xeeNJ0zhLzl/F2kMlLUHA3vVE9u/6Fr/sB3uL5KSsN/b64ZsrIlwaKvfYOXwcw X-Received: by 2002:a17:90a:8005:b0:268:3f4f:7bdb with SMTP id b5-20020a17090a800500b002683f4f7bdbmr634863pjn.18.1691735769822; Thu, 10 Aug 2023 23:36:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691735769; cv=none; d=google.com; s=arc-20160816; b=BOpwz+bF5N0mn/rg+aBc//nARM5soOA6q5UohtwCyBf/aoeyfj3/gjx4fO5TRwiGpa K5xAIVRGBxq46SDRANnYjMYy8MNeuDkJJ/GMR0lKIyo/xKUy3th7VdrcoKwLNo+PfSOF mjBdQS/IdG+o6juTFJ1rYCFdq8cqelqkxUVrAA1XK7sgBCn4dE3l/LYROmo/Yz+Vs53p 63rj37Ozd5ZnSRu458lJc86GfdEBVRyIGlLJMWxfRUWCcAcBz+pfXJfe+q7x1F+vQykh e+tfrcV+E2b/pdXigMMOJXwPLWjAb5AnAXte4a69sfRxR2CjqQWl/xXayLaY8NtXEzWe GUew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:from:subject :message-id:references:mime-version:in-reply-to:date:dkim-signature; bh=KMunAMeBPKEY9T5yrPL+aMpFgaQV0/xsp/XormRaoBM=; fh=i5ZS5kG8NYJ3iSytq4j/PxVF3yTPKSIcgBV7EP71u6E=; b=N/cZC5ltV+yoyzfIzDcKgWj8Rh0mR7yL/D1xPvQNiScO7tEtTYDkubjTLC619G2taw mQco5ceDVsCxAWJIlkiOxKIOx+dJdByzD6GddtPXwtnzjXgmb+Iy+Caau2Smry0wgjni hEr9x/2JtiI2mxw/IhUBOJavuYNevpPYdNs27ME0AelM0w/pED2T8HT81ic0+a8e1chb ezdpwof7n5YBV5QfBZooZcyn1YPHsUtrduHEHhAQnGFmahVandVrd6UJAhhYPQsn9fMr Iu+tR07Jpd/VWCoJl/Rk4CkMdo2tgN2879sNoXqxJZ4GNnqM5+EkWTpRO0vWn2MXtgBj vt1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=oGyGjViq; 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 h16-20020a17090acf1000b0025bea0a396asi5108594pju.6.2023.08.10.23.35.57; Thu, 10 Aug 2023 23:36:09 -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=oGyGjViq; 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 S233624AbjHKEwB (ORCPT + 99 others); Fri, 11 Aug 2023 00:52:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233302AbjHKEvn (ORCPT ); Fri, 11 Aug 2023 00:51:43 -0400 Received: from mail-ot1-x349.google.com (mail-ot1-x349.google.com [IPv6:2607:f8b0:4864:20::349]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BF6F2D69 for ; Thu, 10 Aug 2023 21:51:40 -0700 (PDT) Received: by mail-ot1-x349.google.com with SMTP id 46e09a7af769-6b9c03dd4f6so1898610a34.0 for ; Thu, 10 Aug 2023 21:51:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1691729499; x=1692334299; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=KMunAMeBPKEY9T5yrPL+aMpFgaQV0/xsp/XormRaoBM=; b=oGyGjViqZNQB5Og/8KSGJT7aIHo2wwBSCnK8zrh4WX1dkLcj8j7++RIJ6MMhwLKJJM TFwYrscibPCB3QmC1vwbGjOxG+yFgDZoqgTW46Q0I43fh6plUvYPK40YZO8XMwTjrOdi fnlSk08NlXYIbGNj/3hHqeyZAiHuO84I1eN3h2UfQvsIoxOYp1344xAWxUoDUNlguK/d 5kLKAQj90+6/pX7UAxmtBlnRcJeCRHfDdeQh/yfwKQtOSPDaI07tcbauCsIMB854pARh XzBdqJA4i4gXWPKDMXc/sVC1BnOhZZ28pfZehmEJ44oNDRLqO12bBeCK/TDek5KZpg/u BZkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691729499; x=1692334299; h=content-transfer-encoding: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=KMunAMeBPKEY9T5yrPL+aMpFgaQV0/xsp/XormRaoBM=; b=SWk8R4JOjm95hCbnCTa+8ozjNBdTQqGYbGGdD6j0TMJDIrAk9csdBCHgQMoyTGAQHY aFRZh1rt4NV5UiM4Ur2pRQFr2V8ZLg+kAr1YzTfXwDZPV+BQ4fQ4bq6YYh2ekahrmGnz 5YgpyLd0Oap9ppezQ7vnr5gszKlbeWBzDgMLt9FbATL3JF3fJg4nGuMP0vkgFKBq0bfu 7NXapMif+5k/fWx88/sYHpo/25yZ7/KlZawhMKDlp4NVQXNlt8plCf/NQNmCmrk/K/QE 14jK0f6xdN7GwCB4gyx/2H5qOmIBxtD442fF9HdL3cPEhWh1oGWIATvuiX/jpPwxz0GO PFgQ== X-Gm-Message-State: AOJu0Yzse6C/AEVMvb/lwvYCfzC3zkuvLpNwo1ugeZ8TITDw6IfbBxqE ZD2kH8nwchMu16UlTIlSAAmUNKmj7PjR X-Received: from rananta-linux.c.googlers.com ([fda3:e722:ac3:cc00:2b:ff92:c0a8:22b5]) (user=rananta job=sendgmr) by 2002:a05:6870:1ab5:b0:1c0:e9e9:ae91 with SMTP id ef53-20020a0568701ab500b001c0e9e9ae91mr13992oab.3.1691729499613; Thu, 10 Aug 2023 21:51:39 -0700 (PDT) Date: Fri, 11 Aug 2023 04:51:17 +0000 In-Reply-To: <20230811045127.3308641-1-rananta@google.com> Mime-Version: 1.0 References: <20230811045127.3308641-1-rananta@google.com> X-Mailer: git-send-email 2.41.0.640.ga95def55d0-goog Message-ID: <20230811045127.3308641-5-rananta@google.com> Subject: [PATCH v9 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 , Gavin Shan , "=?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?=" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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_NONE, 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 Reviewed-by: Gavin Shan Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- 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 =20 -config HAVE_KVM_ARCH_TLB_FLUSH_ALL - bool - config HAVE_KVM_INVALID_WAKEUPS bool =20 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, unsigne= d int req) } EXPORT_SYMBOL_GPL(kvm_make_all_cpus_request); =20 -#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 =20 static void kvm_flush_shadow_all(struct kvm *kvm) { --=20 2.41.0.640.ga95def55d0-goog