3 messages in com.xensource.lists.xen-ia64-devel[Xen-ia64-devel] [PATCH] change XEN_D...
FromSent OnAttachments
Isaku Yamahata07 Dec 2006 18:24.patch
Isaku Yamahata07 Dec 2006 18:32.patch
Alex Williamson08 Dec 2006 12:39 
Subject:[Xen-ia64-devel] [PATCH] change XEN_DOMCTL_getmemlist returns gmfn instead of mfn
From:Isaku Yamahata (yama@valinux.co.jp)
Date:12/07/2006 06:24:18 PM
List:com.xensource.lists.xen-ia64-devel
Attachments:

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;