Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2685664imm; Sun, 14 Oct 2018 02:22:07 -0700 (PDT) X-Google-Smtp-Source: ACcGV60FY/peSd9Lz8zpt7gib7BdT4frrjLnyk3x8gYUS6jiNQxkZpMMQXxHyqCxpSt8l/BPuOg9 X-Received: by 2002:a63:5f03:: with SMTP id t3-v6mr12059731pgb.68.1539508927456; Sun, 14 Oct 2018 02:22:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539508927; cv=none; d=google.com; s=arc-20160816; b=XHhBqdUMkAfISMh7qO34n4kWZD2D8Yi3wUGvy6M5o6eP3O1yZWWMDQSpHfy5uFedUJ Aya4OUSJHZECQd+kCXr/paWxPjnM91sr5EUSyQcii9tu7YmzIG9lNGJYqBp/osSC4Idj kYPFga6FMDHUskXCBwMnF7vt/fisO9yNrXEiMbjBQta4lrVAztRftmyO33tQxPNhC/mH Rd/039dTz8lIszZVECvyXR9BBrgJRGlkpzI7xDT/PIrBDZNHTR3jasqYhMJvAJSIBdZZ ukVByc4i8K9mxsf2UrmBKA/IEzO5mUgIC2PfBAoXeUovxG+PRiC3p32NL8bm+nmW7KPM gUFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=05aD9b0I3N3/wDsl3G63PtCqLhzcjnbZvj4TP1v3z6Q=; b=TKYQTdXuTuBxQ+ACxao8YeoshnV0ibGIV562AF/Kdc5SQ7E41isOdOqfch8D1FNfZL HJAp0fXwZnemT28BRpwJ6GY8THFgsZ3qqrjDIwAJK2lKTzmGn4/qHji+Sapey05hM0vc syyX8tmTtU/HnQ5usNeKs1V3TjGHNsdZcV95QG4ryhtNJyoaRVA5+CgArxJ7+5O9+Adz 8yRzWC2T4aYcOoQc8W6qBcy7mtGubgXX3site/kiFDdiqAxPzOpqEkEKrs9YiGm0T2Jn ugiD1GvDgjh0yc8y649rCedHlU9Q0vvo+Y82zxsHWrqa9XDoFm8pVm0tSBUUqgj7m8Jk Y6Tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=a3saD1Uh; 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=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r9-v6si6826650pgi.569.2018.10.14.02.21.52; Sun, 14 Oct 2018 02:22:07 -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=@oracle.com header.s=corp-2018-07-02 header.b=a3saD1Uh; 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=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726472AbeJNRBt (ORCPT + 99 others); Sun, 14 Oct 2018 13:01:49 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:38784 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726352AbeJNRBs (ORCPT ); Sun, 14 Oct 2018 13:01:48 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w9E9JMlx173978; Sun, 14 Oct 2018 09:20:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=content-type : mime-version : subject : from : in-reply-to : date : cc : content-transfer-encoding : message-id : references : to; s=corp-2018-07-02; bh=05aD9b0I3N3/wDsl3G63PtCqLhzcjnbZvj4TP1v3z6Q=; b=a3saD1UhUdXuDuQCVlXFzaHb7xL1UeEvThQ7j1YSnEJm+Ss1x9YNtelHPEM9jbraqyhG sWDN18+GZeG702VM3IhGAInbg/wcS4i55KReLkR8EQT+ZSA8U8WyTdKOCoghnIeeGaoR qepHpaPBPyPtvACg199H3ipuM80R5RgInxENp4Lqu/YjzSmJGI6iRcFw1vrKUJ66uvfc UFolgaJyJEmvozuzcmPlkLovOhPOn8fa+jc/sB6UjHT89wtShMDKaNZvESdZ6hcO2oDS jcff5EXhRLYFXrSWroeJhyYZPDI0P2RkzQ6L7dmOPH98Ge8ARUcATCc/Igu81D3TYufb Qg== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2130.oracle.com with ESMTP id 2n384tmv5u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 14 Oct 2018 09:20:23 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w9E9KKUX011508 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 14 Oct 2018 09:20:21 GMT Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w9E9KAq9004060; Sun, 14 Oct 2018 09:20:12 GMT Received: from [192.168.14.112] (/79.182.224.107) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 14 Oct 2018 09:20:10 +0000 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.1 \(3445.4.7\)) Subject: Re: [PATCH V4 2/15] KVM/MMU: Add tlb flush with range helper function From: Liran Alon In-Reply-To: Date: Sun, 14 Oct 2018 12:20:00 +0300 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 Content-Transfer-Encoding: quoted-printable Message-Id: <1BDC7949-CFED-46C2-9D05-42864B0AD0F0@oracle.com> References: <20181013145406.4911-1-Tianyu.Lan@microsoft.com> <20181013145406.4911-3-Tianyu.Lan@microsoft.com> <4D709C3A-A91C-4CA7-922A-E77618EF21B4@oracle.com> To: Thomas Gleixner X-Mailer: Apple Mail (2.3445.4.7) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9045 signatures=668706 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810140091 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On 14 Oct 2018, at 11:16, Thomas Gleixner wrote: >=20 > On Sun, 14 Oct 2018, Liran Alon wrote: >>> On 13 Oct 2018, at 17:53, lantianyu1986@gmail.com wrote: >>>=20 >>> + >>> +static inline bool kvm_available_flush_tlb_with_range(void) >>> +{ >>> + return kvm_x86_ops->tlb_remote_flush_with_range; >>> +} >>=20 >> Seems that kvm_available_flush_tlb_with_range() is not used in this = patch=E2=80=A6 >=20 > What's wrong with that?=20 >=20 > It provides the implementation and later patches make use of it. It's = a > sensible way to split patches into small, self contained entities. >=20 > Thanks, >=20 > tglx > =09 I guess it=E2=80=99s a matter of taste, but I prefer to not add = dead-code for patches in order for each commit to compile nicely without warnings of declared = and unused functions. I would prefer to just add this utility function on the patch that = actually use it. -Liran