From: Eric Blake <eblake@redhat.com>
To: Amos Kong <akong@redhat.com>
Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org, lcapitulino@redhat.com
Subject: Re: [Qemu-devel] [PATCH v3 5/6] qapi: convert sendkey
Date: Wed, 20 Jun 2012 06:53:40 -0600 [thread overview]
Message-ID: <4FE1C7D4.4010507@redhat.com> (raw)
In-Reply-To: <1340167661-25499-6-git-send-email-akong@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1243 bytes --]
On 06/19/2012 10:47 PM, Amos Kong wrote:
> Convert 'sendkey' to use QAPI. do_sendkey() depends on some
> variables/functions in monitor.c, so reserve qmp_sendkey()
> to monitor.c
>
> key_defs[] in monitor.c is the mapping of key name to keycode,
> Keys' order in the enmu and key_defs[] is same.
>
The interface looks like we have settled into something useful that
libvirt can live with. I will leave a more thorough review of the
series to those more familiar with qemu's internals. However, as long
as we are fine-tuning things, I have some questions that might be worth
one more spin:
> +##
> +# @sendkey:
Should this be named 'send-key', given that most QMP commands separate
words with '-' rather than squasheverythingtogether?
> +SQMP
> +sendkey
> +----------
> +
> +Send keys to VM.
> +
> +Arguments:
> +
> +keys array:
> + - "key": key sequence (json-string)
I'm not sure if json-string is the right designation any more. Rather,
it is a json-array of key enum values.
> +
> +- hold-time: time to delay key up events, milliseconds (josn-int, optional)
s/josn/json/
--
Eric Blake eblake@redhat.com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 620 bytes --]
next prev parent reply other threads:[~2012-06-20 12:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-20 4:47 [Qemu-devel] [PATCH v3 0/6] convert sendkey to qapi Amos Kong
2012-06-20 4:47 ` [Qemu-devel] [PATCH v3 1/6] fix doc of using raw values with sendkey Amos Kong
2012-06-20 4:47 ` [Qemu-devel] [PATCH v3 2/6] monitor: rename keyname '<' to 'less' Amos Kong
2012-06-20 4:47 ` [Qemu-devel] [PATCH v3 3/6] hmp: rename arguments Amos Kong
2012-06-20 4:47 ` [Qemu-devel] [PATCH v3 4/6] qapi: generate list struct and visit_list for enum Amos Kong
2012-06-20 4:47 ` [Qemu-devel] [PATCH v3 5/6] qapi: convert sendkey Amos Kong
2012-06-20 12:53 ` Eric Blake [this message]
2012-06-20 4:47 ` [Qemu-devel] [PATCH v3 6/6] ps2: output warning when event queue full Amos Kong
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=4FE1C7D4.4010507@redhat.com \
--to=eblake@redhat.com \
--cc=akong@redhat.com \
--cc=aliguori@us.ibm.com \
--cc=lcapitulino@redhat.com \
--cc=qemu-devel@nongnu.org \
/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.