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 1/6] xenoprof: fix xenoprof_shared_gmfn()

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] [PATCH 1/6] xenoprof: fix xenoprof_shared_gmfn()
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Tue, 11 Dec 2007 18:02:40 +0900
Cc: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Delivery-date: Tue, 11 Dec 2007 01:03:16 -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
# HG changeset patch
# User yamahata@xxxxxxxxxxxxx
# Date 1196996532 -32400
# Node ID c9623eb65ac2fe2c718767555d96043ef931f921
# Parent  4054cd60895b667eb349221effb678bb5244042e
fix panic after xenoprof shutdown as follows.
(XEN) Xen BUG at mm.c:1265
(XEN) FIXME: implement ia64 dump_execution_state()
(XEN)
(XEN) ****************************************
(XEN) Panic on CPU 0:
(XEN) Xen BUG at mm.c:1265
(XEN) ***************************************

The c/s 14624:64ab7d443549 changed the p2m table semantics so that
xenoprof_shared_gmfn() also needs catch it up.
PATCHNAME: fix_xenoprof_shared_gmfn_for_p2m_semantic_change

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>

diff -r 4054cd60895b -r c9623eb65ac2 xen/include/asm-ia64/xenoprof.h
--- a/xen/include/asm-ia64/xenoprof.h   Mon Dec 10 13:49:22 2007 +0000
+++ b/xen/include/asm-ia64/xenoprof.h   Fri Dec 07 12:02:12 2007 +0900
@@ -48,8 +48,13 @@ static inline void xenoprof_backtrace(
     /* To be implemented */
     return;
 }
-#define xenoprof_shared_gmfn(d, gmaddr, maddr)  \
-    assign_domain_page((d), (gmaddr), (maddr));
+#define xenoprof_shared_gmfn(d, gmaddr, maddr)                      \
+do {                                                                \
+    unsigned long ret;                                              \
+    ret = create_grant_host_mapping((gmaddr),                       \
+                                    (maddr) >> PAGE_SHIFT, 0, 0);   \
+    BUG_ON(ret != GNTST_okay);                                      \
+} while (0)
 
 static inline int
 ring(const struct pt_regs* regs)

Attachment: 16579_c9623eb65ac2_fix_xenoprof_shared_gmfn_for_p2m_semantic_change.patch
Description: Text Data

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-ia64-devel] [PATCH 1/6] xenoprof: fix xenoprof_shared_gmfn(), Isaku Yamahata <=