|  |  | 
  
    |  |  | 
 
  |   |  | 
  
    |  |  | 
  
    |  |  | 
  
    |   xen-devel
[Xen-devel] Re: [PATCH 4/4] kexec/arch/i386: Add	get_memory_ranges_xen() 
| To: | Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx> |  
| Subject: | [Xen-devel] Re: [PATCH 4/4] kexec/arch/i386: Add	get_memory_ranges_xen() function |  
| From: | Daniel Kiper <dkiper@xxxxxxxxxxxx> |  
| Date: | Mon, 22 Aug 2011 16:07:45 +0200 |  
| Cc: | olaf@xxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx, ian.campbell@xxxxxxxxxx,	kexec@xxxxxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx,	horms@xxxxxxxxxxxx, vgoyal@xxxxxxxxxx, Daniel Kiper <dkiper@xxxxxxxxxxxx> |  
| Delivery-date: | Mon, 22 Aug 2011 07:11:04 -0700 |  
| Envelope-to: | www-data@xxxxxxxxxxxxxxxxxxx |  
| In-reply-to: | <201108220001.24399.konrad.wilk@xxxxxxxxxx> |  
| List-help: | <mailto:xen-devel-request@lists.xensource.com?subject=help> |  
| List-id: | Xen developer discussion <xen-devel.lists.xensource.com> |  
| List-post: | <mailto:xen-devel@lists.xensource.com> |  
| List-subscribe: | <http://lists.xensource.com/mailman/listinfo/xen-devel>,	<mailto:xen-devel-request@lists.xensource.com?subject=subscribe> |  
| List-unsubscribe: | <http://lists.xensource.com/mailman/listinfo/xen-devel>,	<mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe> |  
| References: | <20110821135459.GE17323@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>	<201108220001.24399.konrad.wilk@xxxxxxxxxx> |  
| Sender: | xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |  
| User-agent: | Mutt/1.3.28i |  
| On Mon, Aug 22, 2011 at 12:01:24AM -0400, Konrad Rzeszutek Wilk wrote:
[...]
> > +#ifdef HAVE_LIBXENCTRL
> > +static unsigned e820_to_kexec_type(uint32_t type)
> > +{
> > +   switch (type) {
> > +           case E820_RAM:
> > +                   return RANGE_RAM;
> > +           case E820_ACPI:
> > +                   return RANGE_ACPI;
> > +           case E820_NVS:
> > +                   return RANGE_ACPI_NVS;
> > +           case E820_RESERVED:
>
> For E820_UNUSABLE you want to do that too?
>
> > +           default:
> > +                   return RANGE_RESERVED;
>
> Or should E820_UNUSABLE returne its own type of RANGE?
Kexec does not differentiate between E820_RESERVED and E820_UNUSABLE
(please look into kexec/firmware_memmap.c, parse_memmap_entry()).
It treats both as RANGE_RESERVED. RANGE_UNUSABLE is not defined.
In this situation I stated that it is not worth to change that
and I have mapped all undefined types to RANGE_RESERVED. It means
that E820_UNUSABLE is mapped to RANGE_RESERVED.
Daniel
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
 | 
 |  | 
  
    |  |  |