ia64/xen-unstable

changeset 10132:9d838b8ceebf

Remove DOM0_PHYSICAL_MEMORY_MAP dom0 op.

The addition of the e820 style memory_op sub calls make this operation
obsolete.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
author Ian.Campbell@xensource.com
date Mon May 22 09:23:21 2006 +0100 (2006-05-22)
parents 8fa46042348c
children dec7f819293c
files xen/arch/x86/dom0_ops.c xen/include/public/dom0_ops.h
line diff
     1.1 --- a/xen/arch/x86/dom0_ops.c	Mon May 22 09:23:15 2006 +0100
     1.2 +++ b/xen/arch/x86/dom0_ops.c	Mon May 22 09:23:21 2006 +0100
     1.3 @@ -404,27 +404,6 @@ long arch_do_dom0_op(struct dom0_op *op,
     1.4      }
     1.5      break;
     1.6  
     1.7 -    case DOM0_PHYSICAL_MEMORY_MAP:
     1.8 -    {
     1.9 -        struct dom0_memory_map_entry entry;
    1.10 -        int i;
    1.11 -
    1.12 -        for ( i = 0; i < e820.nr_map; i++ )
    1.13 -        {
    1.14 -            if ( i >= op->u.physical_memory_map.max_map_entries )
    1.15 -                break;
    1.16 -            entry.start  = e820.map[i].addr;
    1.17 -            entry.end    = e820.map[i].addr + e820.map[i].size;
    1.18 -            entry.is_ram = (e820.map[i].type == E820_RAM);
    1.19 -            (void)copy_to_guest_offset(
    1.20 -                op->u.physical_memory_map.memory_map, i, &entry, 1);
    1.21 -        }
    1.22 -
    1.23 -        op->u.physical_memory_map.nr_map_entries = i;
    1.24 -        (void)copy_to_guest(u_dom0_op, op, 1);
    1.25 -    }
    1.26 -    break;
    1.27 -
    1.28      case DOM0_HYPERCALL_INIT:
    1.29      {
    1.30          struct domain *d; 
     2.1 --- a/xen/include/public/dom0_ops.h	Mon May 22 09:23:15 2006 +0100
     2.2 +++ b/xen/include/public/dom0_ops.h	Mon May 22 09:23:21 2006 +0100
     2.3 @@ -444,7 +444,7 @@ struct dom0_platform_quirk {
     2.4  typedef struct dom0_platform_quirk dom0_platform_quirk_t;
     2.5  DEFINE_XEN_GUEST_HANDLE(dom0_platform_quirk_t);
     2.6  
     2.7 -#define DOM0_PHYSICAL_MEMORY_MAP 40
     2.8 +#define DOM0_PHYSICAL_MEMORY_MAP 40   /* Unimplemented from 3.0.3 onwards */
     2.9  struct dom0_memory_map_entry {
    2.10      uint64_t start, end;
    2.11      uint32_t flags; /* reserved */