Received: from list by lists.gnu.org with archive (Exim 4.71) id 1RO0gT-0002zI-2X for mharc-grub-devel@gnu.org; Wed, 09 Nov 2011 00:26:49 -0500 Received: from eggs.gnu.org ([140.186.70.92]:60090) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RO0gP-0002ms-Jw for grub-devel@gnu.org; Wed, 09 Nov 2011 00:26:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RO0gO-0006fp-Ja for grub-devel@gnu.org; Wed, 09 Nov 2011 00:26:45 -0500 Received: from rcsinet15.oracle.com ([148.87.113.117]:58310) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RO0gO-0006fj-EJ for grub-devel@gnu.org; Wed, 09 Nov 2011 00:26:44 -0500 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id pA95QgGY025686 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 9 Nov 2011 05:26:43 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id pA95Qg1B004517 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 9 Nov 2011 05:26:42 GMT Received: from abhmt103.oracle.com (abhmt103.oracle.com [141.146.116.55]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id pA95Qa1I008493 for ; Tue, 8 Nov 2011 23:26:36 -0600 Received: from bergsoft (/10.132.136.136) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 08 Nov 2011 21:26:36 -0800 Date: Tue, 8 Nov 2011 21:25:15 -0800 (PST) From: Seth Goldberg X-X-Sender: sethg@bergsoft To: grub-devel@gnu.org Subject: RFC: New multiboot2 memory map entry type Message-ID: User-Agent: Alpine 2.00 (GSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090201.4EBA0F13.00DD,ss=1,re=0.000,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 148.87.113.117 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2011 05:26:46 -0000 Hi, The multiboot2 spec currently says the following regarding memory map entries (tag type 6 in the multiboot2 info tag stack): +-------------------+ u64 | base_addr | u64 | length | u32 | type | u32 | reserved | +-------------------+ `size' contains the size of current entry including this field itself. It may be bigger than 24 bytes in future versions but is guaranteed to be `base_addr' is the starting physical address. `length' is the size of the memory region in bytes. `type' is the variety of address range represented, where a value of 1 indicates available RAM, value of 3 indicates usable memory holding ACPI information, value of 4 indicates reserved memory which needs to be preserved on hibernation, value of 5 indicates a memory which is occupied by defective RAM modules and all other values currently indicated a reserved area. `reserved' is set to `0' by bootloader and must be ignored by the OS image. The proposal is to add an additional type (value = 6) that denotes runtime memory that some firmware marks as required to be mapped to take advantage of services after the end of boot (UEFI is the canonical example). Without this information, it's impossible for a multiboot2-compliant OS to set up proper mappings for this memory. --S