From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:60508) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RR1nP-0002HH-VP for qemu-devel@nongnu.org; Thu, 17 Nov 2011 08:14:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RR1nO-0003gh-Q7 for qemu-devel@nongnu.org; Thu, 17 Nov 2011 08:14:27 -0500 Received: from mx1.redhat.com ([209.132.183.28]:45668) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RR1nO-0003gb-Br for qemu-devel@nongnu.org; Thu, 17 Nov 2011 08:14:26 -0500 Date: Thu, 17 Nov 2011 11:14:19 -0200 From: Luiz Capitulino Message-ID: <20111117111419.0987b963@doriath> In-Reply-To: <4EC49F62.9080903@linux.vnet.ibm.com> References: <20111111064707.15024.69847.sendpatchset@skannery.in.ibm.com> <20111111064748.15024.14207.sendpatchset@skannery.in.ibm.com> <4EC49F62.9080903@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [v9 Patch 3/6]Qemu: Cmd "block_set_hostcache" for dynamic cache change List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: supriyak@linux.vnet.ibm.com Cc: Kevin Wolf , Stefan Hajnoczi , Christoph Hellwig , qemu-devel@nongnu.org On Thu, 17 Nov 2011 11:15:06 +0530 Supriya Kannery wrote: > On 11/17/2011 12:04 AM, Stefan Hajnoczi wrote: > > On Fri, Nov 11, 2011 at 6:47 AM, Supriya Kannery > > wrote: > >> + { > >> + .name = "block_set_hostcache", > >> + .args_type = "device:B,option:b", > >> + .params = "device on|off", > >> + .help = "Change setting of host pagecache", > >> + .user_print = monitor_user_noop, > >> + .mhandler.cmd_new = do_block_set_hostcache, > >> + }, > >> +STEXI > >> +@item block_set_hostcache @var{device} @var{setting} > > > > @var{option} > > Will send updated patch > > > > >> +@findex block_set_hostcache > >> +Change host pagecache setting of a block device while guest is running. > >> +ETEXI > >> + > >> > >> { > >> .name = "eject", > >> Index: qemu/qmp-commands.hx > >> =================================================================== > >> --- qemu.orig/qmp-commands.hx > >> +++ qemu/qmp-commands.hx > >> @@ -716,7 +716,34 @@ Example: > >> > >> EQMP > >> > >> + > >> { > >> + .name = "block_set_hostcache", > >> + .args_type = "device:B,option:b", > >> + .params = "device on|off", > >> + .help = "Change setting of host pagecache (true|false)", > > > > It would be more consistent to use "on|off" instead of "true|false". > > Or eliminate it entirely by saying "Enable or disable host pagecache > > usage". > > > > Stefan > > > > Followed similar way how set_link is done. > Specified 'true/false' in brackets as 'on' or 'off' are not accepted as > bool parameter in qmp prompt. on/off is used in HMP, while true/false is used in QMP.