# 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 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)