All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 00/19] Configurable policy for handling deprecated interfaces
@ 2019-10-24 12:34 Markus Armbruster
  2019-10-24 12:34 ` [RFC PATCH 01/19] tests/test-qmp-cmds: Factor out qmp_dispatch() test helpers Markus Armbruster
                   ` (18 more replies)
  0 siblings, 19 replies; 24+ messages in thread
From: Markus Armbruster @ 2019-10-24 12:34 UTC (permalink / raw)
  To: qemu-devel; +Cc: libvir-list, mdroth

This series is RFC because it's incomplete, and the warning idea in
PATCH 18 is half-baked.  I'm soliciting feed back from the management
application crowd: is this going into a useful direction?

The series adresses only deprecated commands and events.  Good enough
to demonstrate the ideas, I think.  A complete solution should
additionally cover arguments and return values.  Feels feasible to me.

New option -compat deprecated-input=<in-policy>,deprecated-output=out-policy
configures the policy.  Available input policies:

* accept: Accept deprecated commands with a warning (default)
* reject: Reject deprecated commands
* crash: Crash on deprecated command

Available output policies:

* accept: Emit deprecated events (default)
* hide: Suppress deprecated events

See also last item of
    Subject: Minutes of KVM Forum BoF on deprecating stuff
    Date: Fri, 26 Oct 2018 16:03:51 +0200
    Message-ID: <87mur0ls8o.fsf@dusky.pond.sub.org>
    https://lists.nongnu.org/archive/html/qemu-devel/2018-10/msg05828.html


Markus Armbruster (19):
  tests/test-qmp-cmds: Factor out qmp_dispatch() test helpers
  tests/test-qmp-cmds: Check responses more thoroughly
  tests/test-qmp-cmds: Simplify test data setup
  tests/test-qmp-event: Simplify test data setup
  tests/test-qmp-event: Use qobject_is_equal()
  tests/test-qmp-event: Check event is actually emitted
  qapi: Add feature flags to remaining definitions
  qapi: Consistently put @features parameter right after @ifcond
  qapi: Inline do_qmp_dispatch() into qmp_dispatch()
  qapi: Simplify how qmp_dispatch() deals with QCO_NO_SUCCESS_RESP
  qapi: Simplify how qmp_dispatch() gets the request ID
  qapi: Replace qmp_dispatch()'s TODO comment by an explanation
  qapi: New special feature flag "deprecated"
  qemu-options: New -compat to set policy for "funny" interfaces
  qapi: Mark deprecated QMP commands with feature 'deprecated'
  qapi: Implement -compat deprecated-input=reject for commands
  qapi: Implement -compat deprecated-input=crash for commands
  qapi: Include a warning in the response to a deprecated command
  qapi: Implement -compat deprecated-output=hide for events

 docs/devel/qapi-code-gen.txt                  |  21 +-
 tests/qapi-schema/doc-good.texi               |  32 ++-
 qapi/common.json                              |  48 ++++
 qapi/introspect.json                          |  28 ++-
 qapi/machine.json                             |  24 +-
 qapi/migration.json                           |  36 ++-
 qapi/misc.json                                |  25 +-
 include/qapi/compat-policy.h                  |  20 ++
 include/qapi/qmp/dispatch.h                   |   1 +
 qapi/qmp-dispatch.c                           | 140 +++++++-----
 tests/test-qmp-cmds.c                         | 216 +++++++++++-------
 tests/test-qmp-event.c                        | 181 ++++-----------
 vl.c                                          |  17 ++
 qemu-options.hx                               |  24 ++
 scripts/qapi/commands.py                      |  16 +-
 scripts/qapi/doc.py                           |  16 +-
 scripts/qapi/events.py                        |  16 +-
 scripts/qapi/expr.py                          |  11 +-
 scripts/qapi/introspect.py                    |  41 ++--
 scripts/qapi/schema.py                        | 138 ++++++-----
 scripts/qapi/types.py                         |   8 +-
 scripts/qapi/visit.py                         |   8 +-
 tests/Makefile.include                        |   1 +
 tests/qapi-schema/alternate-base.err          |   2 +-
 tests/qapi-schema/doc-good.json               |  18 +-
 tests/qapi-schema/doc-good.out                |  20 +-
 .../qapi-schema/features-deprecated-type.err  |   2 +
 .../qapi-schema/features-deprecated-type.json |   3 +
 .../qapi-schema/features-deprecated-type.out  |   0
 tests/qapi-schema/qapi-schema-test.json       |  31 ++-
 tests/qapi-schema/qapi-schema-test.out        |  29 ++-
 tests/qapi-schema/test-qapi.py                |  19 +-
 32 files changed, 731 insertions(+), 461 deletions(-)
 create mode 100644 include/qapi/compat-policy.h
 create mode 100644 tests/qapi-schema/features-deprecated-type.err
 create mode 100644 tests/qapi-schema/features-deprecated-type.json
 create mode 100644 tests/qapi-schema/features-deprecated-type.out

-- 
2.21.0



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

end of thread, other threads:[~2019-10-24 19:58 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-24 12:34 [RFC PATCH 00/19] Configurable policy for handling deprecated interfaces Markus Armbruster
2019-10-24 12:34 ` [RFC PATCH 01/19] tests/test-qmp-cmds: Factor out qmp_dispatch() test helpers Markus Armbruster
2019-10-24 12:34 ` [RFC PATCH 02/19] tests/test-qmp-cmds: Check responses more thoroughly Markus Armbruster
2019-10-24 12:34 ` [RFC PATCH 03/19] tests/test-qmp-cmds: Simplify test data setup Markus Armbruster
2019-10-24 12:34 ` [RFC PATCH 04/19] tests/test-qmp-event: " Markus Armbruster
2019-10-24 12:34 ` [RFC PATCH 05/19] tests/test-qmp-event: Use qobject_is_equal() Markus Armbruster
2019-10-24 12:34 ` [RFC PATCH 06/19] tests/test-qmp-event: Check event is actually emitted Markus Armbruster
2019-10-24 12:34 ` [RFC PATCH 07/19] qapi: Add feature flags to remaining definitions Markus Armbruster
2019-10-24 12:34 ` [RFC PATCH 08/19] qapi: Consistently put @features parameter right after @ifcond Markus Armbruster
2019-10-24 12:34 ` [RFC PATCH 09/19] qapi: Inline do_qmp_dispatch() into qmp_dispatch() Markus Armbruster
2019-10-24 12:34 ` [RFC PATCH 10/19] qapi: Simplify how qmp_dispatch() deals with QCO_NO_SUCCESS_RESP Markus Armbruster
2019-10-24 12:34 ` [RFC PATCH 11/19] qapi: Simplify how qmp_dispatch() gets the request ID Markus Armbruster
2019-10-24 12:34 ` [RFC PATCH 12/19] qapi: Replace qmp_dispatch()'s TODO comment by an explanation Markus Armbruster
2019-10-24 12:34 ` [RFC PATCH 13/19] qapi: New special feature flag "deprecated" Markus Armbruster
2019-10-24 12:34 ` [RFC PATCH 14/19] qemu-options: New -compat to set policy for "funny" interfaces Markus Armbruster
2019-10-24 12:34 ` [RFC PATCH 15/19] qapi: Mark deprecated QMP commands with feature 'deprecated' Markus Armbruster
2019-10-24 12:34 ` [RFC PATCH 16/19] qapi: Implement -compat deprecated-input=reject for commands Markus Armbruster
2019-10-24 12:34 ` [RFC PATCH 17/19] qapi: Implement -compat deprecated-input=crash " Markus Armbruster
2019-10-24 12:34 ` [RFC PATCH 18/19] qapi: Include a warning in the response to a deprecated command Markus Armbruster
2019-10-24 14:01   ` [libvirt] " Daniel P. Berrangé
2019-10-24 19:35     ` Markus Armbruster
2019-10-24 12:34 ` [RFC PATCH 19/19] qapi: Implement -compat deprecated-output=hide for events Markus Armbruster
2019-10-24 14:16   ` [libvirt] " Daniel P. Berrangé
2019-10-24 19:56     ` Markus Armbruster

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.