[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 03/13] monitor: remove 'query-events' QMP command
From: |
Daniel P . Berrangé |
Subject: |
[PULL 03/13] monitor: remove 'query-events' QMP command |
Date: |
Tue, 16 Mar 2021 16:43:45 +0000 |
The code comment suggests removing QAPIEvent_(str|lookup) symbols too,
however, these are both auto-generated as standard for any enum in
QAPI. As such it they'll exist whether we use them or not.
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---
docs/system/deprecated.rst | 6 -----
docs/system/removed-features.rst | 6 +++++
monitor/qmp-cmds-control.c | 24 -----------------
qapi/control.json | 45 --------------------------------
4 files changed, 6 insertions(+), 75 deletions(-)
diff --git a/docs/system/deprecated.rst b/docs/system/deprecated.rst
index 269fe2bcac..9fb347724c 100644
--- a/docs/system/deprecated.rst
+++ b/docs/system/deprecated.rst
@@ -250,12 +250,6 @@ The ``query-cpus`` command is replaced by the
``query-cpus-fast`` command.
The ``arch`` output member of the ``query-cpus-fast`` command is
replaced by the ``target`` output member.
-``query-events`` (since 4.0)
-''''''''''''''''''''''''''''
-
-The ``query-events`` command has been superseded by the more powerful
-and accurate ``query-qmp-schema`` command.
-
chardev client socket with ``wait`` option (since 4.0)
''''''''''''''''''''''''''''''''''''''''''''''''''''''
diff --git a/docs/system/removed-features.rst b/docs/system/removed-features.rst
index 5fbec3b963..408cc340d2 100644
--- a/docs/system/removed-features.rst
+++ b/docs/system/removed-features.rst
@@ -70,6 +70,12 @@ documentation of ``query-hotpluggable-cpus`` for additional
details.
Use ``blockdev-change-medium`` or ``change-vnc-password`` instead.
+``query-events`` (removed in 6.0)
+'''''''''''''''''''''''''''''''''
+
+The ``query-events`` command has been superseded by the more powerful
+and accurate ``query-qmp-schema`` command.
+
Human Monitor Protocol (HMP) commands
-------------------------------------
diff --git a/monitor/qmp-cmds-control.c b/monitor/qmp-cmds-control.c
index 509ae870bd..513b547233 100644
--- a/monitor/qmp-cmds-control.c
+++ b/monitor/qmp-cmds-control.c
@@ -130,30 +130,6 @@ CommandInfoList *qmp_query_commands(Error **errp)
return list;
}
-EventInfoList *qmp_query_events(Error **errp)
-{
- /*
- * TODO This deprecated command is the only user of
- * QAPIEvent_str() and QAPIEvent_lookup[]. When the command goes,
- * they should go, too.
- */
- EventInfoList *ev_list = NULL;
- QAPIEvent e;
-
- for (e = 0 ; e < QAPI_EVENT__MAX ; e++) {
- const char *event_name = QAPIEvent_str(e);
- EventInfo *info;
-
- assert(event_name != NULL);
- info = g_malloc0(sizeof(*info));
- info->name = g_strdup(event_name);
-
- QAPI_LIST_PREPEND(ev_list, info);
- }
-
- return ev_list;
-}
-
/*
* Minor hack: generated marshalling suppressed for this command
* ('gen': false in the schema) so we can parse the JSON string
diff --git a/qapi/control.json b/qapi/control.json
index 2615d5170b..71a838d49e 100644
--- a/qapi/control.json
+++ b/qapi/control.json
@@ -159,51 +159,6 @@
{ 'command': 'query-commands', 'returns': ['CommandInfo'],
'allow-preconfig': true }
-##
-# @EventInfo:
-#
-# Information about a QMP event
-#
-# @name: The event name
-#
-# Since: 1.2
-##
-{ 'struct': 'EventInfo', 'data': {'name': 'str'} }
-
-##
-# @query-events:
-#
-# Return information on QMP events.
-#
-# Features:
-# @deprecated: This command is deprecated, because its output doesn't
-# reflect compile-time configuration. Use 'query-qmp-schema'
-# instead.
-#
-# Returns: A list of @EventInfo.
-#
-# Since: 1.2
-#
-# Example:
-#
-# -> { "execute": "query-events" }
-# <- {
-# "return": [
-# {
-# "name":"SHUTDOWN"
-# },
-# {
-# "name":"RESET"
-# }
-# ]
-# }
-#
-# Note: This example has been shortened as the real response is too long.
-#
-##
-{ 'command': 'query-events', 'returns': ['EventInfo'],
- 'features': [ 'deprecated' ] }
-
##
# @quit:
#
--
2.30.2
- [PULL 00/13] misc patches removing deprecated features, Daniel P . Berrangé, 2021/03/16
- [PULL 01/13] ui, monitor: remove deprecated VNC ACL option and HMP commands, Daniel P . Berrangé, 2021/03/16
- [PULL 02/13] monitor: raise error when 'pretty' option is used with HMP, Daniel P . Berrangé, 2021/03/16
- [PULL 03/13] monitor: remove 'query-events' QMP command,
Daniel P . Berrangé <=
- [PULL 04/13] migrate: remove QMP/HMP commands for speed, downtime and cache size, Daniel P . Berrangé, 2021/03/16
- [PULL 05/13] machine: remove 'query-cpus' QMP command, Daniel P . Berrangé, 2021/03/16
- [PULL 06/13] machine: remove 'arch' field from 'query-cpus-fast' QMP command, Daniel P . Berrangé, 2021/03/16
- [PULL 07/13] chardev: reject use of 'wait' flag for socket client chardevs, Daniel P . Berrangé, 2021/03/16
- [PULL 08/13] hw/ide: remove 'ide-drive' device, Daniel P . Berrangé, 2021/03/16
- [PULL 09/13] hw/scsi: remove 'scsi-disk' device, Daniel P . Berrangé, 2021/03/16
- [PULL 10/13] block: remove 'encryption_key_missing' flag from QAPI, Daniel P . Berrangé, 2021/03/16
- [PULL 11/13] block: remove dirty bitmaps 'status' field, Daniel P . Berrangé, 2021/03/16
- [PULL 12/13] block: remove 'dirty-bitmaps' field from 'BlockInfo' struct, Daniel P . Berrangé, 2021/03/16
- [PULL 13/13] block: remove support for using "file" driver with block/char devices, Daniel P . Berrangé, 2021/03/16