ia64/xen-unstable

changeset 17402:146f214a0e63

xencomm: add support for log dirty mode

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Apr 07 15:02:47 2008 +0100 (2008-04-07)
parents 6143f5bd32a7
children 324f772239a7
files xen/common/xencomm.c xen/include/xen/xencomm.h
line diff
     1.1 --- a/xen/common/xencomm.c	Mon Apr 07 15:01:26 2008 +0100
     1.2 +++ b/xen/common/xencomm.c	Mon Apr 07 15:02:47 2008 +0100
     1.3 @@ -323,6 +323,7 @@ xencomm_copy_chunk_to(
     1.4                 (unsigned long)xencomm_vaddr(paddr, page));
     1.5  
     1.6      memcpy(xencomm_vaddr(paddr, page), (void *)from, len);
     1.7 +    xencomm_mark_dirty(xencomm_vaddr(paddr, page), len);
     1.8      put_page(page);
     1.9  
    1.10      return 0;
     2.1 --- a/xen/include/xen/xencomm.h	Mon Apr 07 15:01:26 2008 +0100
     2.2 +++ b/xen/include/xen/xencomm.h	Mon Apr 07 15:02:47 2008 +0100
     2.3 @@ -114,4 +114,12 @@ static inline unsigned long xencomm_inli
     2.4      xencomm_copy_from_guest(_d, _s, sizeof(*_d), _off);             \
     2.5  })
     2.6  
     2.7 +#ifdef CONFIG_XENCOMM_MARK_DIRTY
     2.8 +extern void xencomm_mark_dirty(unsigned long addr, unsigned int len);
     2.9 +#else
    2.10 +static inline void xencomm_mark_dirty(unsigned long addr, unsigned int len)
    2.11 +{
    2.12 +}
    2.13 +#endif
    2.14 +
    2.15  #endif /* __XENCOMM_H__ */