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-ia64-devel

[Xen-ia64-devel] [PATCH] change XEN_DOMCTL_getmemlist returns gmfn inste

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] [PATCH] change XEN_DOMCTL_getmemlist returns gmfn instead of mfn
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Fri, 8 Dec 2006 11:24:41 +0900
Delivery-date: Thu, 07 Dec 2006 18:24:47 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
change XEN_DOMCTL_getmemlist returns gmfn instead of mfn for foreign domain
page mapping.

This patch tries to get 'xm dump-core' work on ia64 again.
With this patch, 'xm dump-core' results in creating core-dump file
as before with a slight format changes.
(machine address array -> pseudo physicall address array)
However xm dump-core has been broken on ia64 since 
XEN_DOMCTL_getmemlist/ia64 is differenct from x86's.
This patch does NOT fix it.

The following quick hack might fix it, but I think that 
the right fix is to join the discussion which begins with
http://lists.xensource.com/archives/html/xen-devel/2006-11/msg01226.html
and probably to re-implement xc_core.c without xc_get_pfn_list() which is
deprecated.

diff -r 471c8119946f -r a128ef2b56cf tools/libxc/xc_core.c
--- a/tools/libxc/xc_core.c     Mon Oct 16 16:16:07 2006 +0900
+++ b/tools/libxc/xc_core.c     Tue Nov 21 14:58:34 2006 +0900
@@ -60,7 +60,11 @@ xc_domain_dumpcore_via_callback(int xc_h
         if ( xc_vcpu_getcontext(xc_handle, domid, i, &ctxt[nr_vcpus]) == 0)
             nr_vcpus++;
 
+#ifndef __ia64__
     nr_pages = info.nr_pages;
+#else
+    nr_pages = info.max_memkb >> (PAGE_SHIFT - 10);
+#endif
 
     header.xch_magic = info.hvm ? XC_CORE_MAGIC_HVM : XC_CORE_MAGIC;
     header.xch_nr_vcpus = nr_vcpus;

-- 
yamahata

Attachment: 12803_ba353f0b2f52_xen_domctl_getmemlist_gmfn.patch
Description: Text document

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
<Prev in Thread] Current Thread [Next in Thread>