[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC PATCH 4/4] qmp: Introduce memchar_read QMP command
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [RFC PATCH 4/4] qmp: Introduce memchar_read QMP command |
Date: |
Wed, 01 Aug 2012 09:51:26 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 |
On 08/01/2012 03:48 AM, Lei Li wrote:
> Signed-off-by: Lei Li <address@hidden>
> ---
> qapi-schema.json | 20 ++++++++++++++++++++
> qemu-char.c | 16 ++++++++++++++++
> qmp-commands.hx | 28 ++++++++++++++++++++++++++++
> 3 files changed, 64 insertions(+), 0 deletions(-)
>
> diff --git a/qapi-schema.json b/qapi-schema.json
> index 3c8530f..23edda9 100644
> --- a/qapi-schema.json
> +++ b/qapi-schema.json
> @@ -226,6 +226,26 @@
> 'data': {'chardev': 'str', 'size': 'int', 'data': 'str'} }
>
> ##
> +# @memchar_read:
As in the previous patch, s/_/-/g
> +#
> +# Provide read interface for memchardev. Read from memchar
> +# char device and return the data.
> +#
> +# @chardev: the name of the memchar char device.
> +#
> +# @size: the size to write in bytes.
s/write/read/
> +#
> +# Returns: The data read from memchar as string.
> +# If @chardev is not a valid memchar device, DeviceNotFound
> +# If an I/O error occurs while reading, IOError
> +#
> +# Since: 1.2
> +##
> +{ 'command': 'memchar_read',
> + 'data': {'chardev': 'str', 'size': 'int'},
> + 'returns': 'str' }
Again, is there going to be a binary encoding issue?
--
Eric Blake address@hidden +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [RFC PATCH 0/4] char: expose MemoryCharDriver to users and provide QMP interface, Lei Li, 2012/08/01
- [Qemu-devel] [RFC PATCH 4/4] qmp: Introduce memchar_read QMP command, Lei Li, 2012/08/01
- Re: [Qemu-devel] [RFC PATCH 4/4] qmp: Introduce memchar_read QMP command,
Eric Blake <=
- [Qemu-devel] [RFC PATCH 2/4] monitor: Adjust qmp_human_monitor_command to new MemCharDriver, Lei Li, 2012/08/01
- [Qemu-devel] [RFC PATCH 3/4] qmp: Introduce memchar_write QMP command, Lei Li, 2012/08/01
- [Qemu-devel] [RFC PATCH 1/4] qemu-char: Convert MemCharDriver to circular buffer, Lei Li, 2012/08/01
- Re: [Qemu-devel] [RFC PATCH 0/4] char: expose MemoryCharDriver to users and provide QMP interface, Anthony Liguori, 2012/08/01