Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2425224rwb; Thu, 27 Jul 2023 07:06:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlEYidVFJwUqg9IwLDAKBOyZOWIwSM66T56ujjVjuPeeDYDo1PoDelDsyVjK+i+1Df5iahd8 X-Received: by 2002:a17:907:a076:b0:99b:4d3c:d7e4 with SMTP id ia22-20020a170907a07600b0099b4d3cd7e4mr1907574ejc.63.1690466781184; Thu, 27 Jul 2023 07:06:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690466781; cv=none; d=google.com; s=arc-20160816; b=kzf6NpIZDHsvMNBxV+5Aav4bJxf/xv54tlsAz5v3PeklO5MEjq7V56nRRlPYKP6KKp rPqC+KQZETXNGBAYzaG2836vZWXNnr7JgwK8kr+BKrJl5GORvkyKVetLq44/OMjTDbVa ST5QPwhkPo3jMQXygaGjPJBsX4qY/UZToNwJGIObTcAsvL7vBWTxUWuObejoDpKWH6AO XLqxsxZGSQAGHTLY8X2qHCN8cS2o9slCF1REazEPdWxzjvIB1NbVX+C+RDkrXmzuttQ5 vlDiMo532atfzs3+qsitS0CufYEKUKjtQeZDJunfCckfwGPSEuZsZK3z2v3zOyuk6OWi UxJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature; bh=M4VKA7sd/m0i2PO1QXnh6JW1kTXNOpeCC9jOBvHuf1o=; fh=OcemPTDAL5Bi7V6B11JB5Z4EzIBo5fZZLy7iVlrQXxk=; b=DC8xWQ/SnbwzMeaj2Sbb+3w3xbDeKQVQ4b9rx5MdvmnsTg8BeSZYgwqrZN9G8oJ2Ex G/48pRqvTPPxl0VoADtJhJpGwnjyyjVNt4gASFDA3KxIxIgDbkdUYDe2fRBcDqMSLTwE U2LznQ2eW2rgjFXeaG2ZHgs0kZUQZCOsejb8trboQ/zaZrkg4njVT4W7koHDazOG4CNv SByna8elHTwRKdOyJYgar3bqjCsa8jcPA9/6LMJBVs3+O6QHKxkf3Q124ED7dGlDM90d RvfevGK6PuWLztuf5N1BFDBZNmh3J+MEZThG8QWe59YFusVNsetD9rRV5h4a+C9nROic UeOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rn6scYsM; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j13-20020a17090686cd00b0099b930da46fsi1017406ejy.99.2023.07.27.07.05.54; Thu, 27 Jul 2023 07:06:21 -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=@kernel.org header.s=k20201202 header.b=rn6scYsM; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233296AbjG0MsT (ORCPT + 99 others); Thu, 27 Jul 2023 08:48:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231533AbjG0MsP (ORCPT ); Thu, 27 Jul 2023 08:48:15 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22DE01737; Thu, 27 Jul 2023 05:48:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id ADAB261E46; Thu, 27 Jul 2023 12:48:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 202DFC433C7; Thu, 27 Jul 2023 12:48:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690462094; bh=Pu9LHy5Agl5sYHbCRsbjf8k1I59T+epDRHYNCSx4JE0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=rn6scYsMbV5/hnnmtH8oiCUC5rXbFb89YKEg3KCSLdeCqTZUujSry/ysohED3t+2u cdfOKE6NXYMs1bFJof86Rn5DZA/mfyKpSQ88AN44Iccn1W80m0+AnBT2B/pbUJxK1H MGHOEF471C9WrJUb0oEtOee5FsAhQmy0iXfcg0zEM72UwbCzP1tir6jqOchmmXqdVF VGNx/XrxqZH8KLaTgJNBT0yvwJ2DvfvphuGCIcCyEskOlYPsDcgZvYb37uNuF58D5c etiPcMpzK00oopTRBCOQaNOwSJcEJFmnXOhwLnSLJyv3a/+qFDR9oYMWCAdnAh7AmC u7xA8rkxb3xRA== Received: from [104.132.45.102] (helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1qP0Pb-00HMJJ-W9; Thu, 27 Jul 2023 13:48:12 +0100 Date: Thu, 27 Jul 2023 13:48:11 +0100 Message-ID: <87mszhr050.wl-maz@kernel.org> From: Marc Zyngier To: Raghavendra Rao Ananta Cc: Oliver Upton , James Morse , Suzuki K Poulose , Paolo Bonzini , Sean Christopherson , Huacai Chen , Zenghui Yu , Anup Patel , Atish Patra , Jing Zhang , Reiji Watanabe , Colton Lewis , 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, Gavin Shan , Shaoqin Huang Subject: Re: [PATCH v7 09/12] KVM: arm64: Implement kvm_arch_flush_remote_tlbs_range() In-Reply-To: <20230722022251.3446223-10-rananta@google.com> References: <20230722022251.3446223-1-rananta@google.com> <20230722022251.3446223-10-rananta@google.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 104.132.45.102 X-SA-Exim-Rcpt-To: rananta@google.com, oliver.upton@linux.dev, james.morse@arm.com, suzuki.poulose@arm.com, pbonzini@redhat.com, seanjc@google.com, chenhuacai@kernel.org, yuzenghui@huawei.com, anup@brainfault.org, atishp@atishpatra.org, jingzhangos@google.com, reijiw@google.com, coltonlewis@google.com, dmatlack@google.com, 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, gshan@redhat.com, shahuang@redhat.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Sat, 22 Jul 2023 03:22:48 +0100, Raghavendra Rao Ananta wrote: > > Implement kvm_arch_flush_remote_tlbs_range() for arm64 > to invalidate the given range in the TLB. > > Signed-off-by: Raghavendra Rao Ananta > Reviewed-by: Gavin Shan > Reviewed-by: Shaoqin Huang > --- > arch/arm64/include/asm/kvm_host.h | 3 +++ > arch/arm64/kvm/mmu.c | 7 +++++++ > 2 files changed, 10 insertions(+) > > diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h > index 7281222f24ef..52d3ed918893 100644 > --- a/arch/arm64/include/asm/kvm_host.h > +++ b/arch/arm64/include/asm/kvm_host.h > @@ -1114,6 +1114,9 @@ struct kvm *kvm_arch_alloc_vm(void); > #define __KVM_HAVE_ARCH_FLUSH_REMOTE_TLBS > int kvm_arch_flush_remote_tlbs(struct kvm *kvm); > > +#define __KVM_HAVE_ARCH_FLUSH_REMOTE_TLBS_RANGE > +int kvm_arch_flush_remote_tlbs_range(struct kvm *kvm, gfn_t start_gfn, u64 pages); As per the other patches, these prototypes should be global and not arch-specific. M. -- Without deviation from the norm, progress is not possible.