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-devel

[Xen-devel] [PATCH] Fix ioemu invalidation for xenpaging

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Fix ioemu invalidation for xenpaging
From: Steven Hand <Steven.Hand@xxxxxxxxxxxx>
Date: Thu, 25 Mar 2010 16:28:41 +0000
Cc: Steven.Hand@xxxxxxxxxxxx
Delivery-date: Thu, 25 Mar 2010 09:29:19 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
xs_write takes the length of the string being written, not the path. 

Signed-off-by: Steven Hand <steven.hand@xxxxxxxxxxxx>

diff -r 25a3b799ff0e tools/xenpaging/xc.c
--- a/tools/xenpaging/xc.c      Thu Mar 25 11:38:46 2010 +0000
+++ b/tools/xenpaging/xc.c      Thu Mar 25 16:16:46 2010 +0000
@@ -56,7 +56,7 @@
     if ( xsh == NULL )
         return -EIO;
 
-    rc = xs_write(xsh, XBT_NULL, path, "flush-cache", strlen(path));
+    rc = xs_write(xsh, XBT_NULL, path, "flush-cache", 11); 
 
     xs_daemon_close(xsh);


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Fix ioemu invalidation for xenpaging, Steven Hand <=