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 075E9C001B0 for ; Tue, 4 Jul 2023 23:55:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229772AbjGDXzg (ORCPT ); Tue, 4 Jul 2023 19:55:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229532AbjGDXze (ORCPT ); Tue, 4 Jul 2023 19:55:34 -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 2F0291B7 for ; Tue, 4 Jul 2023 16:54:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688514888; 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=Wa7BrcOmPI0f7tqlo51bYXjgXNXvlWrpR9Yn8RyK5lQkryG8TZAvLg5aTNJq7F5DxXQqyU 3H5SqjMo4qtmXoPGzv3Tcjy+OdlTQyfpzDtdxcf3cJ1kXqy9GGc9rAN13pr6tJoCM0i3vm 6PcoiigxNosn48nd48SCpoXqYBepIKs= Received: from mail-oi1-f197.google.com (mail-oi1-f197.google.com [209.85.167.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-319-Wezru0YlNueMReo5wHMOWw-1; Tue, 04 Jul 2023 19:54:47 -0400 X-MC-Unique: Wezru0YlNueMReo5wHMOWw-1 Received: by mail-oi1-f197.google.com with SMTP id 5614622812f47-39fb9cce400so5160316b6e.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=brZgeLW8puuX6tlpxKSKqA0xAU2y3xiasKcgN3LI5xpsMoC/ODKiik80hg2s/nxCwS Tqeco+y7EsMWad2CAb6MvZVDsVAdZYnnYD3NjXfm32MAvpAAMTf366d7B8f3fRzSyJvY n3B8cV3QG0mcrmDKdKM4BdYhDd5lsTEgDg7Wv1iupR+e7EtE22TXDobrAV5/0pP3MFy9 6sSO7/T1B2WHb2q0GWhUS6tdlBywZ95Fyog07XkLFUnKCiLh/IXBe+9GlHTvufLQ7Ki5 4dowRl4DVrIyOSyL0tFCUyonevIWKug5yZapI7koHf6aZstJPUyUIG0S2xqAxJQyC7fe VLfA== X-Gm-Message-State: ABy/qLb5R2o46QKpLEMT89b6GZ7XGkr8bi412BQUfWB8JtZVRQyIvrgS HUHOErmEJ0Rowx7R1VBMOQuOnO+C0HPjc1yn7Ekc1btOiOg2z3B4cr+sKDoeVWNi3vlzb0snpxM 46qcvim2RyNOWYQcIhvC43P3K X-Received: by 2002:a05:6808:1a17:b0:3a3:a8ce:c659 with SMTP id bk23-20020a0568081a1700b003a3a8cec659mr9277923oib.1.1688514886547; 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-kernel@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