Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp28361148rwd; Tue, 4 Jul 2023 18:24:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ72hrWB3SXEXeyuV0FCUqgKg1WnssUYstbTy9SqYAJYRCBrHtpCsItRCdVcwelTzMauwFCq X-Received: by 2002:a9d:6d82:0:b0:6b8:6b70:4848 with SMTP id x2-20020a9d6d82000000b006b86b704848mr14790104otp.29.1688520242878; Tue, 04 Jul 2023 18:24:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688520242; cv=none; d=google.com; s=arc-20160816; b=JITlHUfB+k0jfXmWB/HdzBLXW65qB6XmovY4pma8zEDAJlYLfH1gKrtEHpg+g5MlRM 09U2zxxcoUjwgRGglGyoFnmYq8az2WBoKIHJ7It+JqSpcqflBZbKJnfD0xDx+ja2wuUv Kd/b55Qsz6bB0ZOBQc9xq4a+Kn3XdS9ad39BGWoVhPlcb1+yGBoZfHfippPUkBc9HtkH Y5ACFImXR9iRN06F8gCgwEpRA2uO5ysd88SZv6S7iU+QNYClWDS1nc3WHP40pif4YQJx Ubt2DlTfqsK5tJ9osXBqX7/kPP2sYD/XmNdcF0tm4MlqXREjRaQ1ElfGBgKtOV3aAjLo Ll7A== 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=Mna+dhhTYjAdqDBDtMfl56DYIGVzwso+E96k6VKVls0=; fh=TstZmECAHWuiHcOzBTznBis8cUiYYD7m507pTr8673Q=; b=G4GCle8pIkWecnPAIQolWy83A1VxrTW8yTgvGoFqi+lYipah4283rVHDX1ZzZ95fC/ VuzvviGsfC12SXOt9Lj88xbokKAEfL6Y+7oyZmg0CozWThHBZd9d5EHjOUjhJPZefIT/ SUrgjrDnT48QatF4FvzGqy4bCukEFUarSXFiZDx7hftv/Q6MkCGtxe98B97SWGUJ2rwj CN+zkRrbN3sTwyfr9hD/VH9ODfaJ0LP0US9vevr2BUeTZDxLYHdgrhLAVioK/nAwb+Bz zXREzOJv3kvHZR7UQlVOceEKvpV2GIn8FQk64XJlt0Lrv0EaSYB8FoLCBJ1W9BszHtBE SJqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Wa7BrcOm; 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 37-20020a631665000000b00543d0bf8632si22098881pgw.866.2023.07.04.18.23.50; Tue, 04 Jul 2023 18:24:02 -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=Wa7BrcOm; 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 S229715AbjGDXzg (ORCPT + 99 others); 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-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 X-Spam-Status: No, score=-2.2 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_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_NONE,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 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