[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [v9 Patch 3/6]Qemu: Cmd "block_set_hostcache" for dynam
From: |
Luiz Capitulino |
Subject: |
Re: [Qemu-devel] [v9 Patch 3/6]Qemu: Cmd "block_set_hostcache" for dynamic cache change |
Date: |
Thu, 17 Nov 2011 11:14:19 -0200 |
On Thu, 17 Nov 2011 11:15:06 +0530
Supriya Kannery <address@hidden> wrote:
> On 11/17/2011 12:04 AM, Stefan Hajnoczi wrote:
> > On Fri, Nov 11, 2011 at 6:47 AM, Supriya Kannery
> > <address@hidden> 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
> >> address@hidden block_set_hostcache @var{device} @var{setting}
> >
> > @var{option}
>
> Will send updated patch
>
> >
> >> address@hidden 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.
- Re: [Qemu-devel] [v9 Patch 1/6 - updated]Qemu: Enhance "info block" to display host cache setting, (continued)
[Qemu-devel] [v9 Patch 2/6]Qemu: Error classes for file reopen and data sync failure, Supriya Kannery, 2011/11/11
[Qemu-devel] [v9 Patch 3/6]Qemu: Cmd "block_set_hostcache" for dynamic cache change, Supriya Kannery, 2011/11/11
Re: [Qemu-devel] [v9 Patch 3/6]Qemu: Cmd "block_set_hostcache" for dynamic cache change, Luiz Capitulino, 2011/11/17
[Qemu-devel] [v9 Patch 4/6]Qemu: Add commandline -drive option 'hostcache', Supriya Kannery, 2011/11/11
- Re: [Qemu-devel] [v9 Patch 4/6]Qemu: Add commandline -drive option 'hostcache', Stefan Hajnoczi, 2011/11/16
- Re: [Qemu-devel] [v9 Patch 4/6]Qemu: Add commandline -drive option 'hostcache', Supriya Kannery, 2011/11/17
- Re: [Qemu-devel] [v9 Patch 4/6]Qemu: Add commandline -drive option 'hostcache', Stefan Hajnoczi, 2011/11/17
- Re: [Qemu-devel] [v9 Patch 4/6]Qemu: Add commandline -drive option 'hostcache', supriya kannery, 2011/11/21
- Re: [Qemu-devel] [v9 Patch 4/6]Qemu: Add commandline -drive option 'hostcache', Stefan Hajnoczi, 2011/11/21
- Re: [Qemu-devel] [v9 Patch 4/6]Qemu: Add commandline -drive option 'hostcache', supriya kannery, 2011/11/22
- Re: [Qemu-devel] [v9 Patch 4/6]Qemu: Add commandline -drive option 'hostcache', Kevin Wolf, 2011/11/22