input: move input-send-event into experimental namespace
PATCH 1/1 input: move input-send-event into experimental namespace
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.
--- qmp-commands.hx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
qmp-commands.hx +6 -6
@@ -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 } } ] } }
Signature · 1 line
1.8.3.1
Quoted 3 lines · Gerd Hoffmann
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/
Quoted 26 lines
Signed-off-by Gerd Hoffmann <[email protected]>--- qmp-commands.hx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)qmp-commands.hx +2
-2@@ -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.
qmp-commands.hx Example (1): · line 3821
Quoted 8 lines
qmp-commands.hx +1
-1@@ -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 ']'
qmp-commands.hx Example (1): · line 3827
Quoted 7 lines
qmp-commands.hx +1
-1<- { "return": {} } --> { "execute": "input-send-event", +-> { "execute": "x-input-send-event", "arguments": { "console": 0, "events": [ { "type": "btn", "data" : { "down": false, "button": "Left" } } } }
some typo.
Quoted 21 lines
qmp-commands.hx +2
-2@@ -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 } } ] } }Signature · 1 line
1.8.3.1
Signature · 1 line
Amos.
Quoted 7 lines · Gerd Hoffmann
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 <[email protected]>--- qmp-commands.hx | 12 ++++++------
Don't you need to patch qapi-schema.json, too?
Do we actually explain "x- means experimental" anywhere?
Quoted 11 lines · Markus Armbruster
Quoted 7 lines · Gerd Hoffmann
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 <[email protected]>--- qmp-commands.hx | 12 ++++++------Don't you need to patch qapi-schema.json, too?
Not necessary in function level.
Quoted 1 line
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.
Signature · 1 line
Amos.
Quoted 7 lines · Amos Kong
Quoted 6 lines · Markus Armbruster
Quoted 4 lines · Gerd Hoffmann
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.
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Signed-off-by Gerd Hoffmann <[email protected]>--- 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.
Quoted 3 lines
Quoted 1 line
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.
Quoted 3 lines
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.
Quoted 30 lines · Markus Armbruster
Quoted 7 lines · Amos Kong
Quoted 6 lines · Markus Armbruster
Quoted 4 lines · Gerd Hoffmann
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.
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Signed-off-by Gerd Hoffmann <[email protected]>--- 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.
Quoted 3 lines
Quoted 1 line
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.
Quoted 6 lines
Quoted 3 lines
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.
Quoted 13 lines · Markus Armbruster
Quoted 11 lines · Amos Kong
Quoted 10 lines · Markus Armbruster
Quoted 7 lines · Gerd Hoffmann
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 <[email protected]>--- qmp-commands.hx | 12 ++++++------
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
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.
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
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.
Quoted 6 lines
Quoted 2 lines
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.
Signature · 2 lines
Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Quoted 14 lines · Eric Blake
Quoted 13 lines · Markus Armbruster
Quoted 11 lines · Amos Kong
Quoted 10 lines · Markus Armbruster
Quoted 7 lines · Gerd Hoffmann
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 <[email protected]>--- qmp-commands.hx | 12 ++++++------
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
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.
Signature · 1 line
Amos.