debuggers.hg

changeset 21115:17fa3cd04361

xenpaging: Fix ioemu invalidation

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

Signed-off-by: Steven Hand <steven.hand@cl.cam.ac.uk>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Mar 26 08:45:45 2010 +0000 (2010-03-26)
parents 71dddee38e65
children 19cc497863a4
files tools/xenpaging/xc.c
line diff
     1.1 --- a/tools/xenpaging/xc.c	Fri Mar 26 08:43:36 2010 +0000
     1.2 +++ b/tools/xenpaging/xc.c	Fri Mar 26 08:45:45 2010 +0000
     1.3 @@ -22,6 +22,7 @@
     1.4  
     1.5  
     1.6  #include <errno.h>
     1.7 +#include <string.h>
     1.8  #include <sys/poll.h>
     1.9  #include <xc_private.h>
    1.10  #include <xg_save_restore.h>
    1.11 @@ -56,7 +57,7 @@ int xc_mem_paging_flush_ioemu_cache(domi
    1.12      if ( xsh == NULL )
    1.13          return -EIO;
    1.14  
    1.15 -    rc = xs_write(xsh, XBT_NULL, path, "flush-cache", strlen(path));
    1.16 +    rc = xs_write(xsh, XBT_NULL, path, "flush-cache", strlen("flush-cache")); 
    1.17  
    1.18      xs_daemon_close(xsh);
    1.19