From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9F26DEB64DA for ; Tue, 4 Jul 2023 23:55:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229545AbjGDXzh (ORCPT ); Tue, 4 Jul 2023 19:55:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229700AbjGDXzg (ORCPT ); Tue, 4 Jul 2023 19:55:36 -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 B859B10DA for ; Tue, 4 Jul 2023 16:54:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688514890; 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=Mna+dhhTYjAdqDBDtMfl56DYIGVzwso+E96k6VKVls0=; b=YoT6BsHeZstIcV6c+wXiEevktW5XOjDw+cXpqpZ2xBFn/CZw2XpwH864ZExjychjjfmBD/ nPd5G1u+wzgkRQFdfIMtK9ZayZAvEvI0qGbuqXK9fs9Uo8bBn3zVStFgxhKgxtK0aBCDpy GccrrvxB+P2r4eRsSlIoHtikq3cMBW4= Received: from mail-oo1-f72.google.com (mail-oo1-f72.google.com [209.85.161.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-319-t4TDeZ0iOCK773YA5enKdw-1; Tue, 04 Jul 2023 19:54:47 -0400 X-MC-Unique: t4TDeZ0iOCK773YA5enKdw-1 Received: by mail-oo1-f72.google.com with SMTP id 006d021491bc7-5621a8bf9a0so4622592eaf.1 for ; Tue, 04 Jul 2023 16:54:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688514886; x=1691106886; 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=Mna+dhhTYjAdqDBDtMfl56DYIGVzwso+E96k6VKVls0=; b=k/h4GVsrqgCZh3KaNQ1GPxo2xVXR59PYNT8/Bi+khAIqo8txe7I0N6mha3kE7gHc7m +MKtf9+Fr4RR19aEyac3uXKt+ltsTlHjgM14YrYkrPF5+owR61QQC3G0wqXnwZN6rdRY Gn590dlA/1rptChDELiCjfkCR9nlh5NnpVhAE2ms781U+xtZaAIDagPKI5Odfm/NDP4R ACT43//+9A2AvSHDx1ysMDafUzvi915rbOQZzqAX/zD+VDHxG2a2jq6CfazqAnjjpwyL jbbd7vM86bqsOW1kSXDbdUrFPD0JAjybCuiKPA+sDgiXmXhoFJFeJCYh33nDwttlNM3N jDLg== X-Gm-Message-State: ABy/qLYan1LAPdtRjQLGGjVfcJmsBjoZK/p7sFK2o/lDdbdMue9vOrCt DkBTqbf6pqgo0ZUwPuf3vlJxflK1bBxJ8+vB6ai63p5yHnTSd9vxkvIvKs/kXjloGptq1D2ZSxP 7aFo0NRFCndKsy0bo5YhHnA== X-Received: by 2002:a05:6808:1a17:b0:3a3:a8ce:c659 with SMTP id bk23-20020a0568081a1700b003a3a8cec659mr9277912oib.1.1688514886544; Tue, 04 Jul 2023 16:54:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlEnYXHnAZgQaIRTnEPMZWgHY6PvyvdCKGOrf+hZuU/jzXUZFjXk6Vz5A95OweIIvkeHyw48vA== X-Received: by 2002:a05:6808:1a17:b0:3a3:a8ce:c659 with SMTP id bk23-20020a0568081a1700b003a3a8cec659mr9277900oib.1.1688514886348; Tue, 04 Jul 2023 16:54:46 -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 2-20020a170902c20200b001b03a7a40e7sm12047419pll.19.2023.07.04.16.54.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Jul 2023 16:54:45 -0700 (PDT) Message-ID: Date: Wed, 5 Jul 2023 09:54:36 +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: [RESEND PATCH v5 03/11] KVM: Allow range-based TLB invalidation from common code 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 , 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 References: <20230621175002.2832640-1-rananta@google.com> <20230621175002.2832640-4-rananta@google.com> From: Gavin Shan In-Reply-To: <20230621175002.2832640-4-rananta@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org On 6/22/23 03:49, Raghavendra Rao Ananta wrote: > From: David Matlack > > Make kvm_flush_remote_tlbs_range() visible in common code and create a > default implementation that just invalidates the whole TLB. > > This paves the way for several future features/cleanups: > > - Introduction of range-based TLBI on ARM. > - Eliminating kvm_arch_flush_remote_tlbs_memslot() > - Moving the KVM/x86 TDP MMU to common code. > > No functional change intended. > > Signed-off-by: David Matlack > Signed-off-by: Raghavendra Rao Ananta > --- > arch/x86/include/asm/kvm_host.h | 3 +++ > arch/x86/kvm/mmu/mmu.c | 9 ++++----- > arch/x86/kvm/mmu/mmu_internal.h | 3 --- > include/linux/kvm_host.h | 9 +++++++++ > virt/kvm/kvm_main.c | 13 +++++++++++++ > 5 files changed, 29 insertions(+), 8 deletions(-) > Reviewed-by: Gavin Shan Thanks, Gavin