From: Markus Armbruster <armbru@redhat.com>
To: qemu-devel@nongnu.org
Cc: Gerd Hoffmann <kraxel@redhat.com>
Subject: [Qemu-devel] [PULL 03/21] monitor: Improve and document client_migrate_info protocol error
Date: Tue, 2 Jun 2015 10:23:41 +0200 [thread overview]
Message-ID: <1433233439-3386-4-git-send-email-armbru@redhat.com> (raw)
In-Reply-To: <1433233439-3386-1-git-send-email-armbru@redhat.com>
Protocol must be spice, vnc isn't implemented. Fix up documentation.
Attempts to use vnc or any other unknown protocol yield the misleading
error message "Invalid parameter 'protocol'". Improve it to
"Parameter 'protocol' expects spice".
Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by. Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com>
---
hmp-commands.hx | 8 ++++----
monitor.c | 2 +-
qmp-commands.hx | 14 +++++++-------
3 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/hmp-commands.hx b/hmp-commands.hx
index e864a6c..0cf592b 100644
--- a/hmp-commands.hx
+++ b/hmp-commands.hx
@@ -1011,7 +1011,7 @@ ETEXI
.name = "client_migrate_info",
.args_type = "protocol:s,hostname:s,port:i?,tls-port:i?,cert-subject:s?",
.params = "protocol hostname port tls-port cert-subject",
- .help = "send migration info to spice/vnc client",
+ .help = "set migration information for remote display",
.user_print = monitor_user_noop,
.mhandler.cmd_new = client_migrate_info,
},
@@ -1019,9 +1019,9 @@ ETEXI
STEXI
@item client_migrate_info @var{protocol} @var{hostname} @var{port} @var{tls-port} @var{cert-subject}
@findex client_migrate_info
-Set the spice/vnc connection info for the migration target. The spice/vnc
-server will ask the spice/vnc client to automatically reconnect using the
-new parameters (if specified) once the vm migration finished successfully.
+Set migration information for remote display. This makes the server
+ask the client to automatically reconnect using the new parameters
+once migration finished successfully. Only implemented for SPICE.
ETEXI
{
diff --git a/monitor.c b/monitor.c
index 416ba10..8170309 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1063,7 +1063,7 @@ static int client_migrate_info(Monitor *mon, const QDict *qdict,
return 0;
}
- qerror_report(QERR_INVALID_PARAMETER, "protocol");
+ qerror_report(QERR_INVALID_PARAMETER_VALUE, "protocol", "spice");
return -1;
}
diff --git a/qmp-commands.hx b/qmp-commands.hx
index 14e109e..a9768a2 100644
--- a/qmp-commands.hx
+++ b/qmp-commands.hx
@@ -784,23 +784,23 @@ EQMP
.name = "client_migrate_info",
.args_type = "protocol:s,hostname:s,port:i?,tls-port:i?,cert-subject:s?",
.params = "protocol hostname port tls-port cert-subject",
- .help = "send migration info to spice/vnc client",
+ .help = "set migration information for remote display",
.mhandler.cmd_new = client_migrate_info,
},
SQMP
client_migrate_info
-------------------
+-------------------
-Set the spice/vnc connection info for the migration target. The spice/vnc
-server will ask the spice/vnc client to automatically reconnect using the
-new parameters (if specified) once the vm migration finished successfully.
+Set migration information for remote display. This makes the server
+ask the client to automatically reconnect using the new parameters
+once migration finished successfully. Only implemented for SPICE.
Arguments:
-- "protocol": protocol: "spice" or "vnc" (json-string)
+- "protocol": must be "spice" (json-string)
- "hostname": migration target hostname (json-string)
-- "port": spice/vnc tcp port for plaintext channels (json-int, optional)
+- "port": spice tcp port for plaintext channels (json-int, optional)
- "tls-port": spice tcp port for tls-secured channels (json-int, optional)
- "cert-subject": server certificate subject (json-string, optional)
--
1.9.3
next prev parent reply other threads:[~2015-06-02 8:24 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-02 8:23 [Qemu-devel] [PULL 00/21] Monitor patches Markus Armbruster
2015-06-02 8:23 ` [Qemu-devel] [PULL 01/21] monitor: Drop broken, unused asynchronous command interface Markus Armbruster
2015-06-02 8:23 ` [Qemu-devel] [PULL 02/21] monitor: Clean up after previous commit Markus Armbruster
2015-06-02 8:23 ` Markus Armbruster [this message]
2015-06-02 8:23 ` [Qemu-devel] [PULL 04/21] monitor: Convert client_migrate_info to QAPI Markus Armbruster
2015-06-02 8:23 ` [Qemu-devel] [PULL 05/21] monitor: Use traditional command interface for HMP drive_del Markus Armbruster
2015-06-02 8:23 ` [Qemu-devel] [PULL 06/21] monitor: Use traditional command interface for HMP device_add Markus Armbruster
2015-06-02 8:23 ` [Qemu-devel] [PULL 07/21] monitor: Use trad. command interface for HMP pcie_aer_inject_error Markus Armbruster
2015-06-02 8:23 ` [Qemu-devel] [PULL 08/21] monitor: Drop unused "new" HMP command interface Markus Armbruster
2015-06-02 8:23 ` [Qemu-devel] [PULL 09/21] monitor: Propagate errors through qmp_check_client_args() Markus Armbruster
2015-06-02 8:23 ` [Qemu-devel] [PULL 10/21] monitor: Propagate errors through qmp_check_input_obj() Markus Armbruster
2015-06-02 8:23 ` [Qemu-devel] [PULL 11/21] monitor: Propagate errors through invalid_qmp_mode() Markus Armbruster
2015-06-02 8:23 ` [Qemu-devel] [PULL 12/21] monitor: Wean monitor_protocol_emitter() off mon->error Markus Armbruster
2015-06-02 8:23 ` [Qemu-devel] [PULL 13/21] monitor: Inline monitor_has_error() into its only caller Markus Armbruster
2015-06-02 8:23 ` [Qemu-devel] [PULL 14/21] monitor: Limit QError use to command handlers Markus Armbruster
2015-06-02 8:23 ` [Qemu-devel] [PULL 15/21] monitor: Rename handle_user_command() to handle_hmp_command() Markus Armbruster
2015-06-02 8:23 ` [Qemu-devel] [PULL 16/21] monitor: Rename monitor_control_read(), monitor_control_event() Markus Armbruster
2015-06-02 8:23 ` [Qemu-devel] [PULL 17/21] monitor: Unbox Monitor member mc and rename to qmp Markus Armbruster
2015-06-02 8:23 ` [Qemu-devel] [PULL 18/21] monitor: Drop do_qmp_capabilities()'s superfluous QMP check Markus Armbruster
2015-06-02 8:23 ` [Qemu-devel] [PULL 19/21] monitor: Turn int command_mode into bool in_command_mode Markus Armbruster
2015-06-02 8:23 ` [Qemu-devel] [PULL 20/21] monitor: Rename monitor_ctrl_mode() to monitor_is_qmp() Markus Armbruster
2015-06-02 8:23 ` [Qemu-devel] [PULL 21/21] monitor: Change return type of monitor_cur_is_qmp() to bool Markus Armbruster
2015-06-04 9:21 ` [Qemu-devel] [PULL 00/21] Monitor patches Peter Maydell
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=1433233439-3386-4-git-send-email-armbru@redhat.com \
--to=armbru@redhat.com \
--cc=kraxel@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 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).