[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] xencomm: add support for log dirty mode
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1207576967 -3600 # Node ID 146f214a0e63cd46492b1e4748922bad2ce85af8 # Parent 6143f5bd32a7276b616a2da7efe172b8ccc781c5 xencomm: add support for log dirty mode Signed-off-by: Kouya Shimura <kouya@xxxxxxxxxxxxxx> --- xen/common/xencomm.c | 1 + xen/include/xen/xencomm.h | 8 ++++++++ 2 files changed, 9 insertions(+) diff -r 6143f5bd32a7 -r 146f214a0e63 xen/common/xencomm.c --- a/xen/common/xencomm.c Mon Apr 07 15:01:26 2008 +0100 +++ b/xen/common/xencomm.c Mon Apr 07 15:02:47 2008 +0100 @@ -323,6 +323,7 @@ xencomm_copy_chunk_to( (unsigned long)xencomm_vaddr(paddr, page)); memcpy(xencomm_vaddr(paddr, page), (void *)from, len); + xencomm_mark_dirty(xencomm_vaddr(paddr, page), len); put_page(page); return 0; diff -r 6143f5bd32a7 -r 146f214a0e63 xen/include/xen/xencomm.h --- a/xen/include/xen/xencomm.h Mon Apr 07 15:01:26 2008 +0100 +++ b/xen/include/xen/xencomm.h Mon Apr 07 15:02:47 2008 +0100 @@ -114,4 +114,12 @@ static inline unsigned long xencomm_inli xencomm_copy_from_guest(_d, _s, sizeof(*_d), _off); \ }) +#ifdef CONFIG_XENCOMM_MARK_DIRTY +extern void xencomm_mark_dirty(unsigned long addr, unsigned int len); +#else +static inline void xencomm_mark_dirty(unsigned long addr, unsigned int len) +{ +} +#endif + #endif /* __XENCOMM_H__ */ _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |