qapi/migration: Make migration parameter @local consistently unstable
PATCH 1/1 qapi/migration: Make migration parameter @local consistently unstable
@local is unstable in MigrationParameters, but not in MigrationParameter. Fix the latter.
--- qapi/migration.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
qapi/migration.json +3 -3
@@ -804,8 +804,8 @@ # # Features: # -# @unstable: Members @x-checkpoint-delay, @x-rdma-chunk-size, and -# @x-vcpu-dirty-limit-period are experimental. +# @unstable: Members @local, @x-checkpoint-delay, @x-rdma-chunk-size, +# and @x-vcpu-dirty-limit-period are experimental. # # Since: 2.4 ##
@@ -831,7 +831,7 @@ 'direct-io', { 'name': 'x-rdma-chunk-size', 'features': [ 'unstable' ] }, 'cpr-exec-command', - 'local'] } + { 'name': 'local', 'features': [ 'unstable' ] } ] } ## # @migrate-set-parameters:
Signature · 1 line
2.55.0
Quoted 25 lines · Markus Armbruster
@local is unstable in MigrationParameters, but not in MigrationParameter. Fix the latter.
Fixes c9affb8e9b (qapi: add local migration parameter)Signed-off-by Markus Armbruster <[email protected]>--- qapi/migration.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)qapi/migration.json +2
-2@@ -804,8 +804,8 @@ # # Features: # -# @unstable: Members @x-checkpoint-delay, @x-rdma-chunk-size, and -# @x-vcpu-dirty-limit-period are experimental. +# @unstable: Members @local, @x-checkpoint-delay, @x-rdma-chunk-size, +# and @x-vcpu-dirty-limit-period are experimental. # # Since: 2.4 ##
qapi/migration.json line 834
Quoted 5 lines
qapi/migration.json +1
-1@@ -831,7 +831,7 @@ 'direct-io', { 'name': 'x-rdma-chunk-size', 'features': [ 'unstable' ] }, 'cpr-exec-command', - 'local'] } + { 'name': 'local', 'features': [ 'unstable' ] } ] }
* Looks okay.
Thank you.
---
- Prasad
Quoted 5 lines · Markus Armbruster
@local is unstable in MigrationParameters, but not in MigrationParameter. Fix the latter.
Fixes c9affb8e9b (qapi: add local migration parameter)Signed-off-by Markus Armbruster <[email protected]>
To avoid this in the future, can we further simplify MigrationParameter in qapi/? E.g. either dropping the @unstable completely (by mentioning in its doc to reference MigrationParameters), or I also wonder if there is way we can completely avoid some struct to be visible in doc, so we can drop it; currently MigrationParameter still shows all fields "Not Documented".
Thanks,
Signature · 1 line
Peter Xu
Quoted 4 lines · Peter Xu
Quoted 3 lines · Markus Armbruster
@local is unstable in MigrationParameters, but not in MigrationParameter. Fix the latter.
Quoted 8 lines
Quoted 2 lines
Fixes c9affb8e9b (qapi: add local migration parameter)Signed-off-by Markus Armbruster <[email protected]>Reviewed-by Peter Xu <[email protected]>To avoid this in the future, can we further simplify MigrationParameter in qapi/? E.g. either dropping the @unstable completely (by mentioning in its doc to reference MigrationParameters),
Or mark the entire MigrationParameter unstable.
Quoted 3 lines
doc to reference MigrationParameters), or I also wonder if there is way we can completely avoid some struct to be visible in doc, so we can drop it; currently MigrationParameter still shows all fields "Not Documented".
The entire QAPI schema goes into the "QEMU QMP Reference Manual". Even types that aren't used in QMP, which is undesirable.
We have code to find the types used in QMP. query-qmp-schema uses it. We never got around to use it in the doc generator, too.
However, Marc-André's work to improve QOM introspection complicates matters. It exposes QAPI types in QOM introspection. Types so exposed are then part of the external interface, but that's not captured in the QAPI schema, only in QOM property definitions. We're probably going to dumb down query-qmp-schema to cover all types, like the reference manual.
We could create means to mark types "internal use only", and relax documentation requirements for them. Of course we better enforce these are not exposed externally, neither in QMP nor in QOM.
This would let us neglect marking types "internal use only". If we don't want that, we could instead require "used by QOM" marks for QOM use, and treat any type not so marked and also not used by QMP as internal.
Quoted 5 lines · Markus Armbruster
@local is unstable in MigrationParameters, but not in MigrationParameter. Fix the latter.
Fixes c9affb8e9b (qapi: add local migration parameter)Signed-off-by Markus Armbruster<[email protected]>
Thanks!
Signature · 2 lines
Best regards, Vladimir
Fabiano Rosas
AppliedQuoted 25 lines · Markus Armbruster
@local is unstable in MigrationParameters, but not in MigrationParameter. Fix the latter.
Fixes c9affb8e9b (qapi: add local migration parameter)Signed-off-by Markus Armbruster <[email protected]>--- qapi/migration.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)qapi/migration.json +2
-2@@ -804,8 +804,8 @@ # # Features: # -# @unstable: Members @x-checkpoint-delay, @x-rdma-chunk-size, and -# @x-vcpu-dirty-limit-period are experimental. +# @unstable: Members @local, @x-checkpoint-delay, @x-rdma-chunk-size, +# and @x-vcpu-dirty-limit-period are experimental. # # Since: 2.4 ##
qapi/migration.json line 837
Quoted 8 lines
qapi/migration.json +1
-1@@ -831,7 +831,7 @@ 'direct-io', { 'name': 'x-rdma-chunk-size', 'features': [ 'unstable' ] }, 'cpr-exec-command', - 'local'] } + { 'name': 'local', 'features': [ 'unstable' ] } ] } ## # @migrate-set-parameters:
Queued, thanks!