Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2644873imm; Sun, 14 Oct 2018 01:18:26 -0700 (PDT) X-Google-Smtp-Source: ACcGV614MDBXJscLhcXJKNQDKjLq/3MqUOAfRSqSn33icLX9dH+Rex+VKsr/nTQqkbY2bQhp/ZyE X-Received: by 2002:a63:89c1:: with SMTP id v184-v6mr11435442pgd.79.1539505106571; Sun, 14 Oct 2018 01:18:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539505106; cv=none; d=google.com; s=arc-20160816; b=f3+yr97N6aJnMelcJ+xX62X5GsHK7WJrdMzuMK0KggHXHrKKYgBMGiSO8FZ5Xb7Nco w+/lN/i2nA0Ph1pPdYdoBizPEryDyMuKVoNzCo88rD5HF6l4u/hXplW9mf5ih8q54skV t+hm/QU5eZGzQ5DwOFEoEThOEsdihZ5K6gG8skCK4UBq4thkM31Eg5kRpBsQq6cFp+Lp DV4w8+4jRVNUUKdmnIjk1eOhSZJajMvzPB38U7l9acOEoFkClAjwQLd24mUQ/zdGIC6k NRIlPriD/IbiOlVV9T2+/MZdlT/WHdzUOg9vsSPA7tEzdzo5T+soHXEIJyuPQCFPD8pa ujdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=l2LOMRoxHoBbUfCSyudD3bMfFtOtFgWc1Le0RFiqRmU=; b=Kh5getI5/AjpGYz2+38yfmburty/yao5cG05KK+AC7VjVMgvWJLAXrGYW/NeSgkQFq KTpAO6XgmI1bJvLobgaIOrg0sb+Ph9sygtmKa+L2JI+97R89pNi/hmw6lau7W0NqZFRT V3oKonQI4vYoKQcqjM8jkWQNzC1obkVYxL/i3/vj7d3UKIxXAJAJ1k5fgn7bUT1STj3d DRarR5P+fhL9OmvQ6KUoRBHs0twXm346gz8V2rX6VCtppG0eFDdBo5d+vpNO2ZT879+b HdVzgj2XBtL4l1GPo1dmudGSh+ddP7DtFRTh0suGQbwbPuyk7LYgPcSK0LHC9oEOx8ai qf3w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b9-v6si7120813pgl.446.2018.10.14.01.18.11; Sun, 14 Oct 2018 01:18:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726467AbeJNP5x (ORCPT + 99 others); Sun, 14 Oct 2018 11:57:53 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:53651 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726115AbeJNP5w (ORCPT ); Sun, 14 Oct 2018 11:57:52 -0400 Received: from p5492fe24.dip0.t-ipconnect.de ([84.146.254.36] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1gBba5-0000FJ-No; Sun, 14 Oct 2018 10:16:57 +0200 Date: Sun, 14 Oct 2018 10:16:56 +0200 (CEST) From: Thomas Gleixner To: Liran Alon cc: lantianyu1986@gmail.com, Lan Tianyu , christoffer.dall@arm.com, marc.zyngier@arm.com, linux@armlinux.org, catalin.marinas@arm.com, will.deacon@arm.com, jhogan@kernel.org, ralf@linux-mips.org, paul.burton@mips.com, paulus@ozlabs.org, benh@kernel.crashing.org, mpe@ellerman.id.au, kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, pbonzini@redhat.com, rkrcmar@redhat.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org, kvm-ppc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, devel@linuxdriverproject.org, kvm@vger.kernel.org, michael.h.kelley@microsoft.com, vkuznets@redhat.com Subject: Re: [PATCH V4 2/15] KVM/MMU: Add tlb flush with range helper function In-Reply-To: <4D709C3A-A91C-4CA7-922A-E77618EF21B4@oracle.com> Message-ID: References: <20181013145406.4911-1-Tianyu.Lan@microsoft.com> <20181013145406.4911-3-Tianyu.Lan@microsoft.com> <4D709C3A-A91C-4CA7-922A-E77618EF21B4@oracle.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-68457485-1539505017=:1438" X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-68457485-1539505017=:1438 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT On Sun, 14 Oct 2018, Liran Alon wrote: > > On 13 Oct 2018, at 17:53, lantianyu1986@gmail.com wrote: > > > > From: Lan Tianyu > > > > This patch is to add wrapper functions for tlb_remote_flush_with_range > > callback. > > > > Signed-off-by: Lan Tianyu > > --- > > Change sicne V3: > > Remove code of updating "tlbs_dirty" > > Change since V2: > > Fix comment in the kvm_flush_remote_tlbs_with_range() > > --- > > arch/x86/kvm/mmu.c | 40 ++++++++++++++++++++++++++++++++++++++++ > > 1 file changed, 40 insertions(+) > > > > diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c > > index c73d9f650de7..ff656d85903a 100644 > > --- a/arch/x86/kvm/mmu.c > > +++ b/arch/x86/kvm/mmu.c > > @@ -264,6 +264,46 @@ static void mmu_spte_set(u64 *sptep, u64 spte); > > static union kvm_mmu_page_role > > kvm_mmu_calc_root_page_role(struct kvm_vcpu *vcpu); > > > > + > > +static inline bool kvm_available_flush_tlb_with_range(void) > > +{ > > + return kvm_x86_ops->tlb_remote_flush_with_range; > > +} > > Seems that kvm_available_flush_tlb_with_range() is not used in this patch… What's wrong with that? It provides the implementation and later patches make use of it. It's a sensible way to split patches into small, self contained entities. Thanks, tglx --8323329-68457485-1539505017=:1438--