diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-03-26 08:45:45 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-03-26 08:45:45 +0000 |
commit | daf911baab4db150c38c2a5f379ec074b412c5e5 (patch) | |
tree | 474c95da9252f8ceea4981ab1d1387a08ea46df0 | |
parent | 682d29d954ed1e35bdc37833ccbddac5ec5a14d5 (diff) | |
download | xen-daf911baab4db150c38c2a5f379ec074b412c5e5.tar.gz xen-daf911baab4db150c38c2a5f379ec074b412c5e5.tar.bz2 xen-daf911baab4db150c38c2a5f379ec074b412c5e5.zip |
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>
-rw-r--r-- | tools/xenpaging/xc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/xenpaging/xc.c b/tools/xenpaging/xc.c index 98931c5331..a5a396b3fd 100644 --- a/tools/xenpaging/xc.c +++ b/tools/xenpaging/xc.c @@ -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(domid_t domain_id) 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); |