WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Remove DOM0_PHYSICAL_MEMORY_MAP dom0 op.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Remove DOM0_PHYSICAL_MEMORY_MAP dom0 op.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 22 May 2006 19:18:13 +0000
Delivery-date: Mon, 22 May 2006 12:20:09 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Remove DOM0_PHYSICAL_MEMORY_MAP dom0 op., Xen patchbot-unstable <=