Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754409AbbGBVt4 (ORCPT ); Thu, 2 Jul 2015 17:49:56 -0400 Received: from mail-bl2on0145.outbound.protection.outlook.com ([65.55.169.145]:58948 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753348AbbGBVts (ORCPT ); Thu, 2 Jul 2015 17:49:48 -0400 Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none; Message-ID: <1435873760.10531.11.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: , , , , , , , , , , , , , , Date: Thu, 2 Jul 2015 16:49:20 -0500 In-Reply-To: <1433917639-31699-7-git-send-email-wenweitaowenwei@gmail.com> References: <1433917639-31699-1-git-send-email-wenweitaowenwei@gmail.com> <1433917639-31699-7-git-send-email-wenweitaowenwei@gmail.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: CY1PR19CA0030.namprd19.prod.outlook.com (25.162.38.168) To BN3PR03MB1477.namprd03.prod.outlook.com (25.163.35.140) X-Microsoft-Exchange-Diagnostics: 1;BN3PR03MB1477;2:arJ7qehyK142QWMy4rx76Ohm69joCOjSIBjL95TAZh6G2XuK7jszna4KeRe6EKoX;3:QtULiqLNT3e/3nLCWcnzBDmo1noahL2qYrA80pDTV5kpeATs/MyAubi7MABKrNOaWlcWeQZEF2dtO+WxWdpIa2t+CmzjsswrMo7cUIuzb2EatA1V133S6+QEeqku1Dz5oORdqeVVAaPgqDuYO0O0oA==;25:F2HA6YfMbhpQfUxkOcYLHVQghr2ce3fx0Pa9qlIq8uUi4NeR1UcQun6/ixyUcFQp25otX1SmeHd2u7+oAtrNoM7qHUZdfQXyL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OMlAHPhl/ABpAstLD6nMCt/4trkytw= 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:BN3PR03MB1477;BCL:0;PCL:0;RULEID:;SRVR:BN3PR03MB1477; X-Forefront-PRVS: 06259BA5A2 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6009001)(377424004)(24454002)(87976001)(62966003)(77156002)(50466002)(23676002)(86362001)(5001920100001)(122386002)(92566002)(110136002)(42186005)(189998001)(40100003)(5001960100002)(47776003)(33646002)(50226001)(50986999)(76176999)(1411001)(5820100001)(2950100001)(36756003)(46102003)(77096005)(103116003)(3826002)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:BN3PR03MB1477;H:[IPv6:2601:448:8100:f9f:12bf:48ff:fe84:c9a0];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN3PR03MB1477;23:JR7pv99E5PWPtsRFHDDpI0XBMCz5nc6lA4r7gHn1BynRJyNQ5qC2BAiCYQUuUzswMsSZqNZOZoZB7eV9CTmjAAlsoCui8CuC8AYWLqI369BUmEcJkKRIaKaJTs08YPWyPmbbQLCDA8/uGEHuQu+vdHIWEVWsb3ZOzhWFaXtBGrhJOtjUpCx41FUnCJ5SHvk3XX7Nw6TWimWmx7FcBTXkO6LV3wzlI/46bRI6yyTJpO0JyCUrVQR09+qsZbLn6z6qrEXTjkBCMHsKHkR35Udfwl0eQIqPRIDdq9eg6QrgmgOic4fxamzZgGaYRQlSjQzZk191QZMYmfv4mjLPGUwT+oHaYSdtViCZRJX8jMUCoDEukP/vRjsIOvih/B/haC39r7sJwnWB8BK/gI/OqGBXt8xtEkQKC51bCSNIOqletJ8hbrr1b/c3a9pZTF0Wj58PxxVNCs9OuEjwnYntj6PmQE3gAlPZ7LovAlEPSm8pFJGQzIp1aW8hnLHHFRwghknxzgRdw5U9bXQF6W53KXT5qAGJ9oL8MPJB6KyIAQpBVbQOqxPB0sRqkUgOfNCbWSLf0AOsAvAmNTv8ZMybqYPnjfkofWS8aCHAxBuDwebfvR7GOvwcOGtpwON3NA9tCUR/GHG+sliqkbl/U8DhCeVTZ/W4W0PZkP/GRviRVBmYw+PCmLiEpzOmZb5/KfMRNCpdJuPu8p1t82CAcDFSNOcXdvKuyPssP6CMTK4pZjEk0svEAWNWtLSlTudVWMnl5lcOymhtPwUUX2dePrPZ5eGBR5vuqWBHB278DrpL3DyMQuz2eEaZqGvSoCyafcfztDmucrdzNibqyc5/QGX+ghAr7Q== X-Microsoft-Exchange-Diagnostics: 1;BN3PR03MB1477;5:AOlRTeFX1McQqlqI6EqvPsfoH8rNiI6UhWvlz5FPk7HnrgWyqdmOqyqmq1enOML3BYJCM1T1Yo2RN7nekYjRP77BBCcOCRX9dy1GMa38rWdqx9gxsQEP8qxLb2npfik5JhKwYFR6Y+JzOES/Bd6FTA==;24:NXAxJJfR5VaeH2NhTsFGj8RctjE+UV0CEKK7JOJ62pix7OKk+G3u6EkUJoUDfeLQ3YsGFVACaitz2m4WjKwUEbcGBzkLgVkyog18SzJGYXc=;20:iQXM/NscX9zuiecicEQUfIXd8cVgpQjWdi9vn1qKfjoOe7wLLWnYIsf0UfaPrnVOC4+exOKYSzsPjg+E2nX8gQ== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jul 2015 21:49:39.8920 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR03MB1477 X-Microsoft-Exchange-Diagnostics: 1;BN3PR03MB1429;2:qJNG9GnShkjwreg7IFmzHcGKOjleZOrWdJrVRlHMwANB6x6HMGcceXpSsUM6a/4D;3:rEDwHq8D9vQQOEAqFSQcWkGweDVhA/whToeEX+VKnFtS7Z1o0hLEitMZ3RtNk9eA1Gt8zuVh/abpSve+QeynFik/FaUlkQvHUXyH+SHj46mntRK6/m5P8trJ8azfrN0ci4bjFSWTdvL0Om6H3APvqw==;25:+nRByqkuuCFudFjowmaVF4kfrjnHUJtxWSjSENNAXV4gJ2snd+wo1WzMV2uxqI+Z7JWtDPF1J8PUOWy1vpS04a2JFSvId9/Eh3nJnsfpTZ+HdpHQUKVZvF78DvEbdE4I55pTiRa37BT3NgLJ59YeAScS25aTS9IL/7xH73G+zFZF5lgEKPN6GLFa4v7p/rT2pZ+kwf5MydZbpTnVMBoNSZJCrnWFwpzXB77kmctxphmeswmNxp/H8neKhvxrYz9X;23:qSbccSBt0xkgC3ICSTY+cGh8VjGK/UBiLCWku/iUlh5GY7UlN9xjVAQzhPAyPAo/4j1KmZVowv/qrMeQT4kwQK9Lf+nfp3bHIkhDUqC6+vDWeakhK5aSHe9vMJbJRPxwMUQ1FS9im28TTxvRETyb9QZHyDTJeOaOk7AcWzp62fmV/iLHacRwgib5Ljn26INzFWFXhnghFUId2jwgeIBoE6Gm/xqDpfV7q2Ch3plleqv52e2SFb/tmIbvMSD/HVT8 X-OriginatorOrg: freescale.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 727 Lines: 20 On Wed, 2015-06-10 at 14:27 +0800, Wenwei Tao wrote: > Hugetlb VMAs are not mergeable, that means a VMA couldn't have VM_HUGETLB > and > VM_MERGEABLE been set in the same time. So we use VM_HUGETLB to indicate new > mergeable VMAs. Because of that a VMA which has VM_HUGETLB been set is a > hugetlb > VMA only if it doesn't have VM_MERGEABLE been set in the same time. Eww. If you must overload such bit combinations, please hide it behind a vm_is_hugetlb() function. -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/