]> xenbits.xensource.com Git - xen.git/commitdiff
xencomm: add support for log dirty mode
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 7 Apr 2008 14:02:47 +0000 (15:02 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 7 Apr 2008 14:02:47 +0000 (15:02 +0100)
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
xen/common/xencomm.c
xen/include/xen/xencomm.h

index fc86cd083077cd667297135bf50ec53c544d8c67..135e3d93a5a0b13bf5ce1c899785d96e3b4e73d6 100644 (file)
@@ -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;
index 9b46c89dbfae485d6c5fe7ce83b7c837921987e3..f044c74f99e4623f11b21fe3c0e04af4d74531db 100644 (file)
@@ -114,4 +114,12 @@ static inline unsigned long xencomm_inline_addr(const void *handle)
     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__ */