[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [v2 Patch 8/9]block: Cmd "block_set_hostcache" for dyna
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [v2 Patch 8/9]block: Cmd "block_set_hostcache" for dynamic cache change |
Date: |
Wed, 01 Aug 2012 13:21:01 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 |
On 08/01/2012 12:44 PM, Supriya Kannery wrote:
> New command "block_set_hostcache" added for dynamically changing
> host pagecache setting of a block device.
>
> Usage:
> block_set_hostcache <device> <option>
> <device> = block device
> <option> = on/off
>
> Example:
> (qemu) block_set_hostcache ide0-hd0 off
>
> Signed-off-by: Supriya Kannery <address@hidden>
> +++ qemu/qmp-commands.hx
> @@ -987,6 +987,30 @@ Example:
> EQMP
>
> {
> + .name = "block_set_hostcache",
QMP version should be block-set-hostcache.
> +++ qemu/qapi-schema.json
> @@ -1604,6 +1604,23 @@
> 'iops': 'int', 'iops_rd': 'int', 'iops_wr': 'int' } }
>
> ##
> +# @block_set_hostcache:
> +#
> +# Change host pagecache setting of a block device
> +#
> +# @device: name of the block device
> +#
> +# @option: hostcache setting (true/false)
> +#
> +# Returns: Nothing on success
> +# If @device is not a valid block device, DeviceNotFound
> +#
> +# Since: 1.2
> +##
> +{ 'command': 'block_set_hostcache',
> + 'data': { 'device': 'str', 'option': 'bool' } }
Here as well.
--
Eric Blake address@hidden +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature