[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Remove DOM0_PHYSICAL_MEMORY_MAP dom0 op.



# HG changeset patch
# User Ian.Campbell@xxxxxxxxxxxxx
# Node ID 9d838b8ceebfc3ead2e31b9c8ac86fdaaa5fe7e0
# Parent  8fa46042348c33429245312e58ab71c437bf9920
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@xxxxxxxxxxxxx>
---
 xen/arch/x86/dom0_ops.c       |   21 ---------------------
 xen/include/public/dom0_ops.h |    2 +-
 2 files changed, 1 insertion(+), 22 deletions(-)

diff -r 8fa46042348c -r 9d838b8ceebf xen/arch/x86/dom0_ops.c
--- a/xen/arch/x86/dom0_ops.c   Mon May 22 09:23:15 2006 +0100
+++ b/xen/arch/x86/dom0_ops.c   Mon May 22 09:23:21 2006 +0100
@@ -404,27 +404,6 @@ long arch_do_dom0_op(struct dom0_op *op,
     }
     break;
 
-    case DOM0_PHYSICAL_MEMORY_MAP:
-    {
-        struct dom0_memory_map_entry entry;
-        int i;
-
-        for ( i = 0; i < e820.nr_map; i++ )
-        {
-            if ( i >= op->u.physical_memory_map.max_map_entries )
-                break;
-            entry.start  = e820.map[i].addr;
-            entry.end    = e820.map[i].addr + e820.map[i].size;
-            entry.is_ram = (e820.map[i].type == E820_RAM);
-            (void)copy_to_guest_offset(
-                op->u.physical_memory_map.memory_map, i, &entry, 1);
-        }
-
-        op->u.physical_memory_map.nr_map_entries = i;
-        (void)copy_to_guest(u_dom0_op, op, 1);
-    }
-    break;
-
     case DOM0_HYPERCALL_INIT:
     {
         struct domain *d; 
diff -r 8fa46042348c -r 9d838b8ceebf xen/include/public/dom0_ops.h
--- a/xen/include/public/dom0_ops.h     Mon May 22 09:23:15 2006 +0100
+++ b/xen/include/public/dom0_ops.h     Mon May 22 09:23:21 2006 +0100
@@ -444,7 +444,7 @@ typedef struct dom0_platform_quirk dom0_
 typedef struct dom0_platform_quirk dom0_platform_quirk_t;
 DEFINE_XEN_GUEST_HANDLE(dom0_platform_quirk_t);
 
-#define DOM0_PHYSICAL_MEMORY_MAP 40
+#define DOM0_PHYSICAL_MEMORY_MAP 40   /* Unimplemented from 3.0.3 onwards */
 struct dom0_memory_map_entry {
     uint64_t start, end;
     uint32_t flags; /* reserved */

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.