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

[Xen-ia64-devel] [PATCH] change XEN_DOMCTL_getmemlist returns gmfn instead of mfn



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

 


Rackspace

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