Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2856884imm; Sun, 14 Oct 2018 06:22:11 -0700 (PDT) X-Google-Smtp-Source: ACcGV62iPppnNuCFYXktpztr1GI36XBJx8YUKoCjeiWKwCwTtuOIRJFU7J7E+S1yydZHAK+mh6tW X-Received: by 2002:a62:1906:: with SMTP id 6-v6mr13901703pfz.9.1539523331549; Sun, 14 Oct 2018 06:22:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539523331; cv=none; d=google.com; s=arc-20160816; b=gkySCa7Vw6jmcbql4fzf8Tyx5QTI9MqoUUkCFbTv5sPJL0E8YR45NmrX1ltHnX43H0 MlvKJb5huxDutb25IZPVCB/WaCtOQE307Hqvr4WZmC9yuobvGWaF3L/tScLpdJhHI7ry uNeZmgcNI455U9sfaVJHRYi1wnDkGw/KKCDoQNs5DkDuO8/eoWuQwBS15G4NBdCABuch lUPSdpVYpZJtQn7qFnS1Sz0QPZT5PB76srv7RX6ZYbO4T6HNM94QKDWYRZvt0MVJTSHz zIo+/17upaGeuE10B4+3M1BOx28LshmuyncJBJCWuec68wcvl0mqHml2kbIsOabTnaDE EGvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=3p7rOh3EHCcs5xJhBdJ9os0FBYpeHAf7F1aAnqF/f30=; b=I7zjlAGEnu9Qr2fVI4Tj17TJsq1xyRljxNPAhkkd+8jOh4cBFn14naa545Xl8vvBpS X38CFAZwfQ4nwLghi2wM8mUWopzwsgiXQxqlo0SWsOqj90TaDhSvh0t4bThWRgJNuE3z 6/tZEXS6UfaA48VZ078OFCDC5DwI1PedbbUvZbova7MYJWEjb2NqW0GHs5xGeGcFfA// 2369FRqZCRCwWIWPoWxR1ww1N34TLSs5o5S7m0BLLpd9P1mtBIxpK0EaoJOK8UU3jzsu 8X4tOPKjVOxXzihUmTpJhZmTDTLTeEF2j4N34kV+Glxy5pIyGTu0w3uz4589MMpZEM65 YLyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=M4QK1ccb; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y7-v6si3473199pll.131.2018.10.14.06.21.56; Sun, 14 Oct 2018 06:22:11 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=M4QK1ccb; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726372AbeJNVCe (ORCPT + 99 others); Sun, 14 Oct 2018 17:02:34 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:34698 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726129AbeJNVCe (ORCPT ); Sun, 14 Oct 2018 17:02:34 -0400 Received: by mail-pl1-f196.google.com with SMTP id f18-v6so8004919plr.1; Sun, 14 Oct 2018 06:21:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=3p7rOh3EHCcs5xJhBdJ9os0FBYpeHAf7F1aAnqF/f30=; b=M4QK1ccb/idnXeaKqj+Ewbkhcgm7CdlXT/yTIpkXgaATox26SQJltMaTvHPGPG79xb 8FdicVlinm6TH9QQZywahbCsqU2Qo2cEeNF/BnNBRbcLzSuKYDeFaDlRsj9PNMtQl5/u ZX4AYSOkwd0qBIZSPiNXtPkByaFmv+vy/1D1182c0mcu5ApITPdk/hdFU1kMcAg5ZMkg VsR+cVaH4ChJ8jYBsBoXC7i04fwmIuiOlMYd8Hl4YZnQbq7dclEzhNcqcApiQBoSECiM GrKvFRQUSNqIOucytr38BPo65LejZNhIRfZwDzWlLHOw8Mlxuq6P6JkUPEi+BT/bzRTj FQbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=3p7rOh3EHCcs5xJhBdJ9os0FBYpeHAf7F1aAnqF/f30=; b=jHXvbbnZnZpS1f6ZgpisjJ9mfYXH1tDZrV/sWMb1ShpmR2v/vxO+oc9DKH6eiUnQy/ xLhgY9FeI3WhruBpPfX5wsMBx/PDF/cLvy58IZEJ0Nv/AehefFKgjCC00JN6KCPXZB2x Q0med2EbGJpRACBJ4SZ23HB6xUyFtx+bCQ3YM/9rqj1hQDEebXUoMGcEcgzPtWz8ZJT0 pPGSd32fqmUbYH4sA1pqtFXr5A6sy/mCBVhWld4PhUC2zwiHB9YNdzXOoURTV0vIv4fn FFzr7+YEKYHs8JVo3KLdEBE3pwQGATsO0B9YKonkTOeFtbkMqT2p0YkybrlcbF+Wbawg tG7Q== X-Gm-Message-State: ABuFfoiDMXBlhHGuS1BfXpsVTGpt20fAT2TraNNmlCnN4S6ludI9bsmW c7GX0nDwgXjJ+1aVtTy7TE5ydsbS6WtotCkN5R6q0EBsGax6Tw== X-Received: by 2002:a17:902:da4:: with SMTP id 33-v6mr12916512plv.172.1539523294880; Sun, 14 Oct 2018 06:21:34 -0700 (PDT) MIME-Version: 1.0 References: <20181013145406.4911-1-Tianyu.Lan@microsoft.com> <20181013145406.4911-3-Tianyu.Lan@microsoft.com> <4D709C3A-A91C-4CA7-922A-E77618EF21B4@oracle.com> <20181014092734.GV30658@n2100.armlinux.org.uk> <20181014093541.GW30658@n2100.armlinux.org.uk> In-Reply-To: <20181014093541.GW30658@n2100.armlinux.org.uk> From: Tianyu Lan Date: Sun, 14 Oct 2018 21:21:23 +0800 Message-ID: Subject: Re: [PATCH V4 2/15] KVM/MMU: Add tlb flush with range helper function To: linux@armlinux.org.uk Cc: Thomas Gleixner , linux-mips@linux-mips.org, linux@armlinux.org, kvm , Radim Krcmar , benh@kernel.crashing.org, will.deacon@arm.com, christoffer.dall@arm.com, paulus@ozlabs.org, "H. Peter Anvin" , kys@microsoft.com, kvmarm@lists.cs.columbia.edu, sthemmin@microsoft.com, mpe@ellerman.id.au, "the arch/x86 maintainers" , michael.h.kelley@microsoft.com, Ingo Molnar , catalin.marinas@arm.com, jhogan@kernel.org, Tianyu Lan , marc.zyngier@arm.com, haiyangz@microsoft.com, kvm-ppc@vger.kernel.org, liran.alon@oracle.com, Paolo Bonzini , linux-arm-kernel@lists.infradead.org, "linux-kernel@vger kernel org" , ralf@linux-mips.org, paul.burton@mips.com, devel@linuxdriverproject.org, vkuznets@redhat.com, linuxppc-dev@lists.ozlabs.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Russell: Thanks for your review. On Sun, Oct 14, 2018 at 5:36 PM Russell King - ARM Linux wrote: > > On Sun, Oct 14, 2018 at 10:27:34AM +0100, Russell King - ARM Linux wrote: > > On Sun, Oct 14, 2018 at 10:16:56AM +0200, Thomas Gleixner wrote: > > > 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 spt= e); > > > > > 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=E2=80=A6 > > > > > > 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. > > > > From what I can see of the patches that follow _this_ patch in the > > series, this function remains unused. So, not only is it not used > > in this patch, it's not used in this series. > > Note - I seem to have only received patches 1 through 4, so this is > based on the patches I've received. > Sorry to confuse your. I get from CCers from get_maintainer.pl script. The next patch "[PATCH V4 3/15]KVM: Replace old tlb flush function with new one to flush a specified range" calls new function. https://lkml.org/lkml/2018/10/13/254 The patch "[PATCH V4 4/15] KVM: Make kvm_set_spte_hva() return int" changes under ARM directory. Please have a look. Thanks. --=20 Best regards Tianyu Lan