qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] input: move input-send-event into experimental namespace
@ 2014-11-25  7:18 Gerd Hoffmann
  2014-11-25  7:57 ` Amos Kong
  2014-11-25  8:06 ` Markus Armbruster
  0 siblings, 2 replies; 8+ messages in thread
From: Gerd Hoffmann @ 2014-11-25  7:18 UTC (permalink / raw)
  To: qemu-devel; +Cc: Gerd Hoffmann, Amos Kong, Markus Armbruster, Luiz Capitulino

Ongoing discussions on how we are going to specify the console,
so tag the command as experiemntal so we can refine things in
the 2.3 development cycle.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 qmp-commands.hx | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/qmp-commands.hx b/qmp-commands.hx
index 8812401..d6b7362 100644
--- a/qmp-commands.hx
+++ b/qmp-commands.hx
@@ -3791,13 +3791,13 @@ Example:
 EQMP
 
     {
-        .name       = "input-send-event",
+        .name       = "x-input-send-event",
         .args_type  = "console:i?,events:q",
         .mhandler.cmd_new = qmp_marshal_input_input_send_event,
     },
 
 SQMP
-@input-send-event
+@x-input-send-event
 -----------------
 
 Send input event to guest.
@@ -3815,13 +3815,13 @@ Example (1):
 
 Press left mouse button.
 
--> { "execute": "input-send-event",
+-> { "execute": "x-input-send-event",
     "arguments": { "console": 0,
                    "events": [ { "type": "btn",
                     "data" : { "down": true, "button": "Left" } } } }
 <- { "return": {} }
 
--> { "execute": "input-send-event",
+-> { "execute": "x-input-send-event",
     "arguments": { "console": 0,
                    "events": [ { "type": "btn",
                     "data" : { "down": false, "button": "Left" } } } }
@@ -3831,7 +3831,7 @@ Example (2):
 
 Press ctrl-alt-del.
 
--> { "execute": "input-send-event",
+-> { "execute": "x-input-send-event",
      "arguments": { "console": 0, "events": [
         { "type": "key", "data" : { "down": true,
           "key": {"type": "qcode", "data": "ctrl" } } },
@@ -3845,7 +3845,7 @@ Example (3):
 
 Move mouse pointer to absolute coordinates (20000, 400).
 
--> { "execute": "input-send-event" ,
+-> { "execute": "x-input-send-event" ,
   "arguments": { "console": 0, "events": [
                { "type": "abs", "data" : { "axis": "X", "value" : 20000 } },
                { "type": "abs", "data" : { "axis": "Y", "value" : 400 } } ] } }
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] [PATCH] input: move input-send-event into experimental namespace
  2014-11-25  7:18 [Qemu-devel] [PATCH] input: move input-send-event into experimental namespace Gerd Hoffmann
@ 2014-11-25  7:57 ` Amos Kong
  2014-11-25  8:06 ` Markus Armbruster
  1 sibling, 0 replies; 8+ messages in thread
From: Amos Kong @ 2014-11-25  7:57 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: Luiz Capitulino, qemu-devel, Markus Armbruster

[-- Attachment #1: Type: text/plain, Size: 2424 bytes --]

On Tue, Nov 25, 2014 at 08:18:54AM +0100, Gerd Hoffmann wrote:
> Ongoing discussions on how we are going to specify the console,
> so tag the command as experiemntal so we can refine things in
> the 2.3 development cycle.

%s/experiemntal/experimental/


Reviewed-by: Amos Kong <akong@redhat.com>

> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
> ---
>  qmp-commands.hx | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/qmp-commands.hx b/qmp-commands.hx
> index 8812401..d6b7362 100644
> --- a/qmp-commands.hx
> +++ b/qmp-commands.hx
> @@ -3791,13 +3791,13 @@ Example:
>  EQMP
>  
>      {
> -        .name       = "input-send-event",
> +        .name       = "x-input-send-event",
>          .args_type  = "console:i?,events:q",
>          .mhandler.cmd_new = qmp_marshal_input_input_send_event,
>      },
>  
>  SQMP
> -@input-send-event
> +@x-input-send-event
>  -----------------
>  
>  Send input event to guest.
> @@ -3815,13 +3815,13 @@ Example (1):
>  
>  Press left mouse button.
>  
> --> { "execute": "input-send-event",
> +-> { "execute": "x-input-send-event",
>      "arguments": { "console": 0,
>                     "events": [ { "type": "btn",
>                      "data" : { "down": true, "button": "Left" } } } }

(not problem of this patch)
typo, lack of ']'

>  <- { "return": {} }
>  
> --> { "execute": "input-send-event",
> +-> { "execute": "x-input-send-event",
>      "arguments": { "console": 0,
>                     "events": [ { "type": "btn",
>                      "data" : { "down": false, "button": "Left" } } } }

some typo.

> @@ -3831,7 +3831,7 @@ Example (2):
>  
>  Press ctrl-alt-del.
>  
> --> { "execute": "input-send-event",
> +-> { "execute": "x-input-send-event",
>       "arguments": { "console": 0, "events": [
>          { "type": "key", "data" : { "down": true,
>            "key": {"type": "qcode", "data": "ctrl" } } },
> @@ -3845,7 +3845,7 @@ Example (3):
>  
>  Move mouse pointer to absolute coordinates (20000, 400).
>  
> --> { "execute": "input-send-event" ,
> +-> { "execute": "x-input-send-event" ,
>    "arguments": { "console": 0, "events": [
>                 { "type": "abs", "data" : { "axis": "X", "value" : 20000 } },
>                 { "type": "abs", "data" : { "axis": "Y", "value" : 400 } } ] } }
> -- 
> 1.8.3.1
> 

-- 
			Amos.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] [PATCH] input: move input-send-event into experimental namespace
  2014-11-25  7:18 [Qemu-devel] [PATCH] input: move input-send-event into experimental namespace Gerd Hoffmann
  2014-11-25  7:57 ` Amos Kong
@ 2014-11-25  8:06 ` Markus Armbruster
  2014-11-25  8:37   ` Amos Kong
  1 sibling, 1 reply; 8+ messages in thread
From: Markus Armbruster @ 2014-11-25  8:06 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: Amos Kong, qemu-devel, Luiz Capitulino

Gerd Hoffmann <kraxel@redhat.com> writes:

> Ongoing discussions on how we are going to specify the console,
> so tag the command as experiemntal so we can refine things in
> the 2.3 development cycle.
>
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
> ---
>  qmp-commands.hx | 12 ++++++------

Don't you need to patch qapi-schema.json, too?

Do we actually explain "x- means experimental" anywhere?

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] [PATCH] input: move input-send-event into experimental namespace
  2014-11-25  8:06 ` Markus Armbruster
@ 2014-11-25  8:37   ` Amos Kong
  2014-11-25 11:58     ` Markus Armbruster
  0 siblings, 1 reply; 8+ messages in thread
From: Amos Kong @ 2014-11-25  8:37 UTC (permalink / raw)
  To: Markus Armbruster; +Cc: Luiz Capitulino, Gerd Hoffmann, qemu-devel

[-- Attachment #1: Type: text/plain, Size: 738 bytes --]

On Tue, Nov 25, 2014 at 09:06:34AM +0100, Markus Armbruster wrote:
> Gerd Hoffmann <kraxel@redhat.com> writes:
> 
> > Ongoing discussions on how we are going to specify the console,
> > so tag the command as experiemntal so we can refine things in
> > the 2.3 development cycle.
> >
> > Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
> > ---
> >  qmp-commands.hx | 12 ++++++------
> 
> Don't you need to patch qapi-schema.json, too?

Not necessary in function level.
 
> Do we actually explain "x- means experimental" anywhere?

What's the official way to make command experimental?

Quote from qapi-schema.json:
| # Notes: This command is experimental and may change
| syntax in future releases.

-- 
			Amos.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] [PATCH] input: move input-send-event into experimental namespace
  2014-11-25  8:37   ` Amos Kong
@ 2014-11-25 11:58     ` Markus Armbruster
  2014-11-25 13:55       ` Markus Armbruster
  2014-11-25 16:35       ` Eric Blake
  0 siblings, 2 replies; 8+ messages in thread
From: Markus Armbruster @ 2014-11-25 11:58 UTC (permalink / raw)
  To: Amos Kong; +Cc: qemu-devel, Gerd Hoffmann, Luiz Capitulino

Amos Kong <akong@redhat.com> writes:

> On Tue, Nov 25, 2014 at 09:06:34AM +0100, Markus Armbruster wrote:
>> Gerd Hoffmann <kraxel@redhat.com> writes:
>> 
>> > Ongoing discussions on how we are going to specify the console,
>> > so tag the command as experiemntal so we can refine things in
>> > the 2.3 development cycle.
>> >
>> > Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
>> > ---
>> >  qmp-commands.hx | 12 ++++++------
>> 
>> Don't you need to patch qapi-schema.json, too?
>
> Not necessary in function level.

s/need to/want to/?

For consistency, especially because the QAPI schema also serves as QMP
command documentation.

>> Do we actually explain "x- means experimental" anywhere?
>
> What's the official way to make command experimental?

I think we have an understanding / convention that an "x-" prefix marks
names as unstable API.  But I can't find it spelled out anywhere.
Anyway, separate issue.

> Quote from qapi-schema.json:
> | # Notes: This command is experimental and may change
> | syntax in future releases.

Next to the return type ObjectTypeInfo rathe than the command
qom-list-types, blech.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] [PATCH] input: move input-send-event into experimental namespace
  2014-11-25 11:58     ` Markus Armbruster
@ 2014-11-25 13:55       ` Markus Armbruster
  2014-11-25 16:35       ` Eric Blake
  1 sibling, 0 replies; 8+ messages in thread
From: Markus Armbruster @ 2014-11-25 13:55 UTC (permalink / raw)
  To: Amos Kong; +Cc: qemu-devel, Gerd Hoffmann, Luiz Capitulino

Markus Armbruster <armbru@redhat.com> writes:

> Amos Kong <akong@redhat.com> writes:
>
>> On Tue, Nov 25, 2014 at 09:06:34AM +0100, Markus Armbruster wrote:
>>> Gerd Hoffmann <kraxel@redhat.com> writes:
>>> 
>>> > Ongoing discussions on how we are going to specify the console,
>>> > so tag the command as experiemntal so we can refine things in
>>> > the 2.3 development cycle.
>>> >
>>> > Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
>>> > ---
>>> >  qmp-commands.hx | 12 ++++++------
>>> 
>>> Don't you need to patch qapi-schema.json, too?
>>
>> Not necessary in function level.
>
> s/need to/want to/?
>
> For consistency, especially because the QAPI schema also serves as QMP
> command documentation.
>
>>> Do we actually explain "x- means experimental" anywhere?
>>
>> What's the official way to make command experimental?
>
> I think we have an understanding / convention that an "x-" prefix marks
> names as unstable API.  But I can't find it spelled out anywhere.
> Anyway, separate issue.
>
>> Quote from qapi-schema.json:
>> | # Notes: This command is experimental and may change
>> | syntax in future releases.
>
> Next to the return type ObjectTypeInfo rathe than the command
> qom-list-types, blech.

I went with "Note: this command is experimental, and not a stable API",
following precedence in qemu-options.hx.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] [PATCH] input: move input-send-event into experimental namespace
  2014-11-25 11:58     ` Markus Armbruster
  2014-11-25 13:55       ` Markus Armbruster
@ 2014-11-25 16:35       ` Eric Blake
  2014-11-26  6:21         ` Amos Kong
  1 sibling, 1 reply; 8+ messages in thread
From: Eric Blake @ 2014-11-25 16:35 UTC (permalink / raw)
  To: Markus Armbruster, Amos Kong; +Cc: Luiz Capitulino, qemu-devel, Gerd Hoffmann

[-- Attachment #1: Type: text/plain, Size: 1612 bytes --]

On 11/25/2014 04:58 AM, Markus Armbruster wrote:
> Amos Kong <akong@redhat.com> writes:
> 
>> On Tue, Nov 25, 2014 at 09:06:34AM +0100, Markus Armbruster wrote:
>>> Gerd Hoffmann <kraxel@redhat.com> writes:
>>>
>>>> Ongoing discussions on how we are going to specify the console,
>>>> so tag the command as experiemntal so we can refine things in
>>>> the 2.3 development cycle.
>>>>
>>>> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
>>>> ---
>>>>  qmp-commands.hx | 12 ++++++------
>>>
>>> Don't you need to patch qapi-schema.json, too?
>>
>> Not necessary in function level.
> 
> s/need to/want to/?

Yes, if you are going to mark the HMP command experimental, please also
mark the QMP command as experimental.

> 
>>> Do we actually explain "x- means experimental" anywhere?

Hmm, In my (not yet finished) series for improving qapi generation type
safety, I have added:

$ git grep -A1 'x-' docs/
...
docs/qapi-code-gen.txt:Any command, type, or field name beginning with
"x-" is marked
docs/qapi-code-gen.txt-experimental, and may be withdrawn in a future
release.  Downstream
...

but I obviously need to find time to revisit my series since that text
is not in upstream yet.

>>
>> What's the official way to make command experimental?
> 
> I think we have an understanding / convention that an "x-" prefix marks
> names as unstable API.  But I can't find it spelled out anywhere.
> Anyway, separate issue.

Yep, and on my plate to finish it.

-- 
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: 539 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] [PATCH] input: move input-send-event into experimental namespace
  2014-11-25 16:35       ` Eric Blake
@ 2014-11-26  6:21         ` Amos Kong
  0 siblings, 0 replies; 8+ messages in thread
From: Amos Kong @ 2014-11-26  6:21 UTC (permalink / raw)
  To: Eric Blake; +Cc: qemu-devel, Gerd Hoffmann, Markus Armbruster, Luiz Capitulino

[-- Attachment #1: Type: text/plain, Size: 1139 bytes --]

On Tue, Nov 25, 2014 at 09:35:26AM -0700, Eric Blake wrote:
> On 11/25/2014 04:58 AM, Markus Armbruster wrote:
> > Amos Kong <akong@redhat.com> writes:
> > 
> >> On Tue, Nov 25, 2014 at 09:06:34AM +0100, Markus Armbruster wrote:
> >>> Gerd Hoffmann <kraxel@redhat.com> writes:
> >>>
> >>>> Ongoing discussions on how we are going to specify the console,
> >>>> so tag the command as experiemntal so we can refine things in
> >>>> the 2.3 development cycle.
> >>>>
> >>>> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
> >>>> ---
> >>>>  qmp-commands.hx | 12 ++++++------
> >>>
> >>> Don't you need to patch qapi-schema.json, too?
> >>
> >> Not necessary in function level.
> > 
> > s/need to/want to/?
> 
> Yes, if you are going to mark the HMP command experimental, please also
> mark the QMP command as experimental.

Gerd's patch wasn't make hmp command experimental, but QMP. Inputted
command will be compared with .name field in qmp-commands.hx, not
qapi-schema.json. The command name in qapi-schema.json only effects
the function name.

But it's good to also update qapi-schema.json.

-- 
			Amos.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-11-26  6:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-25  7:18 [Qemu-devel] [PATCH] input: move input-send-event into experimental namespace Gerd Hoffmann
2014-11-25  7:57 ` Amos Kong
2014-11-25  8:06 ` Markus Armbruster
2014-11-25  8:37   ` Amos Kong
2014-11-25 11:58     ` Markus Armbruster
2014-11-25 13:55       ` Markus Armbruster
2014-11-25 16:35       ` Eric Blake
2014-11-26  6:21         ` Amos Kong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).