aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@hp.com>2007-12-17 09:33:52 -0700
committerAlex Williamson <alex.williamson@hp.com>2007-12-17 09:33:52 -0700
commit2707b54e9bf13dad99d2467bfecd6dbfac475e41 (patch)
tree3de47a0966aa92882c73978f64d4b3ea7f21c290
parentc2abdc291eb4e48f26c8066225a6f02407efe91c (diff)
downloadxen-2707b54e9bf13dad99d2467bfecd6dbfac475e41.tar.gz
xen-2707b54e9bf13dad99d2467bfecd6dbfac475e41.tar.bz2
xen-2707b54e9bf13dad99d2467bfecd6dbfac475e41.zip
[IA64] xenoprof: fix xenoprof_shared_gmfn()
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. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
-rw-r--r--xen/include/asm-ia64/xenoprof.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/xen/include/asm-ia64/xenoprof.h b/xen/include/asm-ia64/xenoprof.h
index 1d917532b5..f5ac2a6f5d 100644
--- a/xen/include/asm-ia64/xenoprof.h
+++ b/xen/include/asm-ia64/xenoprof.h
@@ -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)