From: Olaf Hering <olaf@aepfle.de>
To: xen-devel@lists.xensource.com
Subject: Re: [PATCH] qemu-dm: add command to flush buffer cache
Date: Thu, 12 Jan 2012 19:30:34 +0100 [thread overview]
Message-ID: <20120112183034.GA13035@aepfle.de> (raw)
In-Reply-To: <20120112182222.GA12596@aepfle.de>
On Thu, Jan 12, Olaf Hering wrote:
> Add support for a xenstore dm command to flush qemu's buffer cache.
Something like this is most likely also needed in mainline qemu.
My search in the qemu.org git web UI did not show any of the commands in
ioemu-remote, so its not clear how to forward port this change.
Olaf
> --- 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\"%*s\"\n", len, command);
> }
next prev parent reply other threads:[~2012-01-12 18:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-12 18:22 [PATCH] qemu-dm: add command to flush buffer cache Olaf Hering
2012-01-12 18:30 ` Olaf Hering [this message]
2012-01-13 10:35 ` Stefano Stabellini
2012-01-13 10:31 ` Stefano Stabellini
2012-01-13 12:13 ` Olaf Hering
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120112183034.GA13035@aepfle.de \
--to=olaf@aepfle.de \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.