From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yh0-f53.google.com (mail-yh0-f53.google.com [209.85.213.53]) by kanga.kvack.org (Postfix) with ESMTP id 3B80E6B0035 for ; Tue, 10 Dec 2013 23:03:20 -0500 (EST) Received: by mail-yh0-f53.google.com with SMTP id b20so4627922yha.40 for ; Tue, 10 Dec 2013 20:03:19 -0800 (PST) Received: from mail.zytor.com (terminus.zytor.com. [2001:1868:205::10]) by mx.google.com with ESMTPS id u45si16218556yhc.28.2013.12.10.20.03.18 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Dec 2013 20:03:19 -0800 (PST) Message-ID: <52A7E3E5.2010609@zytor.com> Date: Tue, 10 Dec 2013 20:02:45 -0800 From: "H. Peter Anvin" MIME-Version: 1.0 Subject: Re: [PATCH] mm,x86: fix span coverage in e820_all_mapped() References: <52A6D9B0.7040506@huawei.com> <52A7C16A.9040106@huawei.com> <52A7D415.6010908@zytor.com> <52A7E223.9030605@huawei.com> In-Reply-To: <52A7E223.9030605@huawei.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Xishi Qiu Cc: Yinghai Lu , Thomas Gleixner , Ingo Molnar , the arch/x86 maintainers , Linn Crosetto , Pekka Enberg , LKML , Andrew Morton , Linux MM On 12/10/2013 07:55 PM, Xishi Qiu wrote: > > I think there is a problem. > e.g. > [start, end)=[8, 12), and [A, B)=[0, 10), [B, C)=[10,20), > then e820_all_mapped() will return 1, it spans two regions. > Why is that a problem? -hpa -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751865Ab3LKEDY (ORCPT ); Tue, 10 Dec 2013 23:03:24 -0500 Received: from terminus.zytor.com ([198.137.202.10]:56477 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751352Ab3LKEDY (ORCPT ); Tue, 10 Dec 2013 23:03:24 -0500 Message-ID: <52A7E3E5.2010609@zytor.com> Date: Tue, 10 Dec 2013 20:02:45 -0800 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Xishi Qiu CC: Yinghai Lu , Thomas Gleixner , Ingo Molnar , the arch/x86 maintainers , Linn Crosetto , Pekka Enberg , LKML , Andrew Morton , Linux MM Subject: Re: [PATCH] mm,x86: fix span coverage in e820_all_mapped() References: <52A6D9B0.7040506@huawei.com> <52A7C16A.9040106@huawei.com> <52A7D415.6010908@zytor.com> <52A7E223.9030605@huawei.com> In-Reply-To: <52A7E223.9030605@huawei.com> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/10/2013 07:55 PM, Xishi Qiu wrote: > > I think there is a problem. > e.g. > [start, end)=[8, 12), and [A, B)=[0, 10), [B, C)=[10,20), > then e820_all_mapped() will return 1, it spans two regions. > Why is that a problem? -hpa