Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933388AbbGGTsA (ORCPT ); Tue, 7 Jul 2015 15:48:00 -0400 Received: from mail-bn1bn0101.outbound.protection.outlook.com ([157.56.110.101]:42336 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932636AbbGGTrv (ORCPT ); Tue, 7 Jul 2015 15:47:51 -0400 Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none; Message-ID: <1436298461.2658.39.camel@freescale.com> Subject: Re: [RFC PATCH 6/6] powerpc/kvm: change the condition of identifying hugetlb vm From: Scott Wood To: wenwei tao CC: Izik Eidus , , , Hugh Dickins , , , , , , , , , , , Date: Tue, 7 Jul 2015 14:47:41 -0500 In-Reply-To: References: <1433917639-31699-1-git-send-email-wenweitaowenwei@gmail.com> <1433917639-31699-7-git-send-email-wenweitaowenwei@gmail.com> <1435873760.10531.11.camel@freescale.com> <1436218475.2658.14.camel@freescale.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.16.0-fta1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Originating-IP: [2601:448:8100:f9f:12bf:48ff:fe84:c9a0] X-ClientProxiedBy: BLUPR14CA0016.namprd14.prod.outlook.com (25.163.77.154) To CY1PR03MB1488.namprd03.prod.outlook.com (25.163.17.18) X-Microsoft-Exchange-Diagnostics: 1;CY1PR03MB1488;2:oyXQYpFk+1vaBE555JNCs7Qcl61wljSjqhhGyZcWwCV0eIqfRfH69hPJBZ1LBucv;3:4y0NsYdFsQNjHBaX33QGKf3NHhpcJuU7TVcuugFwDIpd5QioPU34j5hB6OYqPeJFKPf9yj3EwD5Rn/2KCuX7hgbmBs3Ew7lR4hcaI9MpcI+PEZ/18Dxl+2dHcEk0Jtqpc0nidgCuAz/x1AD79m28ZQ==;25:5/R4B5+iQZRs5irsKb5hjk1kyVFzJ6JDm8fk9yHtxikhfxwtrmPdPwXAvYCJF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24LzSfc0WBkddVuEmEFaBajBF9sKbr3GcXwxS7hxhQq5gNRKSEYfQztQ= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:CY1PR03MB1488;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB1488; X-Forefront-PRVS: 0630013541 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6009001)(24454002)(377424004)(51704005)(93886004)(50226001)(62966003)(77096005)(92566002)(23676002)(87976001)(5820100001)(40100003)(36756003)(77156002)(42186005)(122386002)(1411001)(2950100001)(86362001)(5001920100001)(189998001)(110136002)(46102003)(50986999)(76176999)(50466002)(33646002)(5001960100002)(47776003)(3826002)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:CY1PR03MB1488;H:[IPv6:2601:448:8100:f9f:12bf:48ff:fe84:c9a0];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;CY1PR03MB1488;23:uy0ZNXGlWSrI5SBrUsKLv6n9HcsrmyFmj5fzYey7OYH/W9V4iQ6fKhkOjvHJvN6Ta17O/hBFKTqTi/Apg3z+3JZ0tNer+5zMz+cnAqeWMgZIAv/ADdqyzbnGX6rB4XEqUnIIGK+2/pXo/dZG75qQSH1ulIA7BMSqcOeCbVzGv8OeW5J4BEZtQdJvWsmIkHlUosSnsLvMrUFNpgU2EaSQqyqP0y+zI8rrBJ2UNQxTuz+oYTVN3Jp7CkUfAaxjLUNE9HgTFBe+YOLKMSs8E73ZSSh+y9Duvcnzx0ftJ5o40VD27WWo3KyKQkt0yyBGG52UA++V5U5lETuX2QcWL8szK96s3B38dqV6J9ElQSpHbtQ5KTc0d2Yw59ExtjnxT7Cu29Pau6N+YouFmDQ6xKZUwu1IKZ5GfZcVlCcJw7w5QgGsmHxxW5niYRPECqviRQokcin+7QxDnjDaDZUoTxnDDUJxprAAebZbQNyIbWLcreQMaJa02dneb31OownOIeB1Lb3LC9HI33UkIKmgksYhTRdunlMCeB0FiccOCjfaPxyMehvdPeB7ulF08izj5fnzB3BzH8tIOzwWMSFgqREioTxt8/ulOBvGsZ7oEsnoDjv5379fV5zw655DG80g4RoEZepujdtimf5ppcHMUu0TNaHnFDRK07frIjhoD8e1CUIl8ZsckzvsjIxdfO12jgc9+IRYfEGIhRjMqbB+QCNSF5AXwCkSh/ooEZrHhGBtcFI1llpawDZQJjGpU5I2Prt2Yu75hjXH3ayY8Si+gJoWO/ejZl7050nMm+Sdze7iJbdeSGetVGT49IS/GuaHFavMvriTYlA0++Owl5gAktrhIq+inr2BMA2OfDAthk0B2QA= X-Microsoft-Exchange-Diagnostics: 1;CY1PR03MB1488;5:NlQZbomUMC06nVitwLYZt53v8zS/35odaislqaZgbB2KIvVYpSKW58fvBy9vEDwW2ngSvy9HFxKK7Dj8G6l3EU7rcf9aBCedCBppAjcab8IXfkLFgMIguWh4NqDsR7qUeQ8OAGf3KOHfqiwi9yvw+w==;24:YmpX5ZgH/uBv+6YZlqNdPZCaDZuGScAAkIY0d3m2U9kwrsYlAfpaSLK02JZEaUemS/JLUFgVULThq8y6ANkRHVmBUOGh5JRcObDkBLn2Tuw=;20:nFEBZBhGoX16xKJsMG/i4p3bJC0sPyBfgZO6pmicSL77t94+ej5J2OZUbr3WdfmbPv1sQfTXkrnlFZa2Z19t1Q== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2015 19:47:46.6216 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB1488 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1026 Lines: 33 On Tue, 2015-07-07 at 16:05 +0800, wenwei tao wrote: > Hi Scott > > I understand what you said. > > I will use the function 'is_vm_hugetlb_page()' to hide the bit > combinations according to your comments in the next version of patch > set. > > But for the situation like below, there isn't an obvious structure > 'vma', using 'is_vm_hugetlb_page()' maybe costly or even not possible. > void flush_tlb_mm_range(struct mm_struct *mm, unsigned long start, > unsigned long end, unsigned long vmflag) > { > ... > > if (end == TLB_FLUSH_ALL || tlb_flushall_shift == -1 > || vmflag & VM_HUGETLB) { > local_flush_tlb(); > goto flush_all; > } > ... > } Add a function that operates on the flags directly, then. -Scott -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/