WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] xencomm: add support for log dirty mode

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xencomm: add support for log dirty mode
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 08 Apr 2008 02:01:52 -0700
Delivery-date: Tue, 08 Apr 2008 02:06:21 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xencomm: add support for log dirty mode, Xen patchbot-unstable <=