Displaying 1 result from an estimated 1 matches for "xenstore_process_dm_command_".
2012 Jan 12
4
[PATCH] qemu-dm: add command to flush buffer cache
...pages to swap out agian.
Signed-off-by: Patrick Colp <Patrick.Colp@citrix.com>
Signed-off-by: Olaf Hering <olaf@aepfle.de>
---
ioemu-remote/xenstore.c | 3 +++
1 file changed, 3 insertions(+)
--- ioemu-remote/xenstore.c
+++ ioemu-remote/xenstore.c
@@ -927,6 +927,9 @@ static void xenstore_process_dm_command_
do_pci_add(par);
free(par);
#endif
+ } else if (!strncmp(command, "flush-cache", len)) {
+ fprintf(logfile, "dm-command: flush caches\n");
+ qemu_invalidate_map_cache();
} else {
fprintf(logfile, "dm-command: unknown command...