ia64/xen-unstable

changeset 16627:d3881629d572

[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>
author Alex Williamson <alex.williamson@hp.com>
date Mon Dec 17 09:33:52 2007 -0700 (2007-12-17)
parents d9ab9eb2bfee
children e88253dfefdc
files xen/include/asm-ia64/xenoprof.h
line diff
     1.1 --- a/xen/include/asm-ia64/xenoprof.h	Sat Dec 15 18:29:27 2007 +0000
     1.2 +++ b/xen/include/asm-ia64/xenoprof.h	Mon Dec 17 09:33:52 2007 -0700
     1.3 @@ -48,8 +48,13 @@ static inline void xenoprof_backtrace(
     1.4      /* To be implemented */
     1.5      return;
     1.6  }
     1.7 -#define xenoprof_shared_gmfn(d, gmaddr, maddr)  \
     1.8 -    assign_domain_page((d), (gmaddr), (maddr));
     1.9 +#define xenoprof_shared_gmfn(d, gmaddr, maddr)                      \
    1.10 +do {                                                                \
    1.11 +    unsigned long ret;                                              \
    1.12 +    ret = create_grant_host_mapping((gmaddr),                       \
    1.13 +                                    (maddr) >> PAGE_SHIFT, 0, 0);   \
    1.14 +    BUG_ON(ret != GNTST_okay);                                      \
    1.15 +} while (0)
    1.16  
    1.17  static inline int
    1.18  ring(const struct pt_regs* regs)