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] xenpaging: Fix ioemu invalidation

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xenpaging: Fix ioemu invalidation
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 26 Mar 2010 01:55:13 -0700
Delivery-date: Fri, 26 Mar 2010 01:55:23 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/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 1269593145 0
# Node ID 17fa3cd04361ca7e4bc3e000b67fb4187e5d21b5
# Parent  71dddee38e651d2e140a0d4d0623d1e7293d7178
xenpaging: Fix ioemu invalidation

xs_write takes the length of the string being written, not the
path.

Signed-off-by: Steven Hand <steven.hand@xxxxxxxxxxxx>
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 tools/xenpaging/xc.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r 71dddee38e65 -r 17fa3cd04361 tools/xenpaging/xc.c
--- a/tools/xenpaging/xc.c      Fri Mar 26 08:43:36 2010 +0000
+++ b/tools/xenpaging/xc.c      Fri Mar 26 08:45:45 2010 +0000
@@ -22,6 +22,7 @@
 
 
 #include <errno.h>
+#include <string.h>
 #include <sys/poll.h>
 #include <xc_private.h>
 #include <xg_save_restore.h>
@@ -56,7 +57,7 @@ int xc_mem_paging_flush_ioemu_cache(domi
     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", strlen("flush-cache")); 
 
     xs_daemon_close(xsh);
 

_______________________________________________
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] xenpaging: Fix ioemu invalidation, Xen patchbot-unstable <=