Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp5202895rwb; Tue, 8 Aug 2023 23:39:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHbVecJggCKoy/qj8DwSZI4Np51XPl/0KRiCY7TWRWwFjfD+4xWwRl9YKk/fx4bSNmbwhdB X-Received: by 2002:a17:906:1d7:b0:989:450:e565 with SMTP id 23-20020a17090601d700b009890450e565mr2309868ejj.23.1691563174125; Tue, 08 Aug 2023 23:39:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691563174; cv=none; d=google.com; s=arc-20160816; b=oXklCizu4/+AP85nt0NlDyydy/kZdDwmRbs4fGV5XIK3qkk5E3z38uP4WSzaMuGMbk mX0tk/65PlHD4SdKP+ZTq7sXpihxvYZ4kbXlyHLzo/lOzceIyBL8MlbvfpRmwfnY8MGI Xb6vv3wKRCseydv6A3MJSqyoY10XhscZcbE6ZDTReg6FCrNSW8RdhlCvdXPl3+EMVyAj BT7yPOt3Lo+/2at3oOMPsjE9/tEvpfiKC5CsfeInlEdHFcBnOk1cpc3boNBNH9/u7J2M WpDiKaTvCL+zu8EmzlvidhNu1o/NJnP2OIrBp31gj/zVVsc+FHhcbW9e+TV+kN8gKO8a fIbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Jc2RrwZUDP/ZLfqGAQFdphKEXcWYocBgrdrh4msM7SQ=; fh=Bs4IlUUrR08+5RcvALEk5OwqZCdlb6dszx82ZRjpnrU=; b=TKkCNoCkOqKp9eQRftPFDIN1CYNdllGPewOZiK9jZGe+kaYbM4Y50/86v9l9RdcCxN vpUgCQQ+dAj0QqTPKKJms/5CdzV2Mfl8ABHAhPfsUj0+BIyCj0MlfYsYhaRhwGx6f+G/ 5ruYsQQY/G4jgQrq3l0SGbgW30hmc4rClutDP1aPq9spFQaNcI7evQDfj1YCmE2EXEVG GkUmxuJXTE7QUdWhTDXcXLntD0tTH7EwO6b6vCSYnM7+igEXXvt7MopTwLCWvZu4Ea6I LfHbLBXyv818/0v4ZfELIkZzKU2pnSc37ziBV1V8u+mKL8TyGySLF7de8XgMCToTv9eq WGaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=K9eNG+CY; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k4-20020a1709063fc400b00992a9bc7432si8394906ejj.936.2023.08.08.23.39.09; Tue, 08 Aug 2023 23:39:34 -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=@redhat.com header.s=mimecast20190719 header.b=K9eNG+CY; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229560AbjHIERR (ORCPT + 99 others); Wed, 9 Aug 2023 00:17:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229533AbjHIERQ (ORCPT ); Wed, 9 Aug 2023 00:17:16 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFCCD19A1 for ; Tue, 8 Aug 2023 21:16:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1691554589; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Jc2RrwZUDP/ZLfqGAQFdphKEXcWYocBgrdrh4msM7SQ=; b=K9eNG+CYTd5SuigFYgwGKVHV8Uwl061ui1TGhszVDnfmDlOqDK+BOII1662i4UA7LfakG8 C/sPoW6ud7PzyDhEcvwjKwrHBo+nc8/VbvnsDWuGmBCnPoDcrJ5urZJwEBB+eIiAkkQtjp HGa7tG5W+4dUoUbIdpd5OTDGR0f+nKI= Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-633-4nHNnDFjPaSDQ8aHdl16Ww-1; Wed, 09 Aug 2023 00:16:27 -0400 X-MC-Unique: 4nHNnDFjPaSDQ8aHdl16Ww-1 Received: by mail-pg1-f198.google.com with SMTP id 41be03b00d2f7-5635233876bso4530351a12.0 for ; Tue, 08 Aug 2023 21:16:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691554283; x=1692159083; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Jc2RrwZUDP/ZLfqGAQFdphKEXcWYocBgrdrh4msM7SQ=; b=QWw9/21XxDAWuY0zxGsawcn0vV48sPhUlVO85zjCYgZgToCrhC7Oj1TB25b45MA7Ap xvtLM+LlMM8HDhwSpktIo6F/RHfupF6G8+t+VWFWs356xsDezeNLrk33x8NjkNxTorLt Kz9CckOfFHF7/8jd8p+vVbjxnhHMeBEztu5MdBd62BEdBQAKDix/jqTlbQKH3QepBa93 f4Wqfa73cBVgbZxbd/1zwCKRV+IcbtWQcewPjBCKtWgrFFVLuK1bA7VN+GPF/MNL4g0c 2k/rc7KiPSq6gNFUOp9vQjbfrIbz8OglKLEmYEFwziBB2qMc8INhCNgp89fy9irYFJ8i aTaw== X-Gm-Message-State: AOJu0YxYg4xhUn8kJ5T9GUTiJ4z/5rYdx8wZ7fXTJ1CzygueTUVcfpQ1 3nNWwcqKkW+vl6dCYJKQMlGsfLKVf7mfyffOElNVGFyG2tCyCf3Bzc7j473Q+Z+zPTJKqgSfVp5 9VOdDkEr26l82Viiw0poMnPbt X-Received: by 2002:a05:6a21:328b:b0:121:ca90:df01 with SMTP id yt11-20020a056a21328b00b00121ca90df01mr1394030pzb.40.1691554282928; Tue, 08 Aug 2023 21:11:22 -0700 (PDT) X-Received: by 2002:a05:6a21:328b:b0:121:ca90:df01 with SMTP id yt11-20020a056a21328b00b00121ca90df01mr1394005pzb.40.1691554282647; Tue, 08 Aug 2023 21:11:22 -0700 (PDT) Received: from ?IPV6:2001:8003:e5b0:9f00:dbbc:1945:6e65:ec5? ([2001:8003:e5b0:9f00:dbbc:1945:6e65:ec5]) by smtp.gmail.com with ESMTPSA id y9-20020a17090322c900b001b2069072ccsm9850474plg.18.2023.08.08.21.11.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Aug 2023 21:11:22 -0700 (PDT) Message-ID: <79b8548e-715a-85ee-aad6-cb0b97753df6@redhat.com> Date: Wed, 9 Aug 2023 14:11:09 +1000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v8 04/14] KVM: Remove CONFIG_HAVE_KVM_ARCH_TLB_FLUSH_ALL Content-Language: en-US To: Raghavendra Rao Ananta , 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 , 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 References: <20230808231330.3855936-1-rananta@google.com> <20230808231330.3855936-5-rananta@google.com> From: Gavin Shan In-Reply-To: <20230808231330.3855936-5-rananta@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE 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 On 8/9/23 09:13, Raghavendra Rao Ananta wrote: > 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(-) > Reviewed-by: Gavin Shan > 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) > {