On 3/12/21 9:32 AM, Markus Armbruster wrote:
> This policy suppresses deprecated bits in output, and thus permits
> "testing the future". Implement it for QMP command results. Example:
> when QEMU is run with -compat deprecated-output=hide, then
>
> {"execute": "query-cpus-fast"}
>
> yields
>
> {"return": [{"thread-id": 9805, "props": {"core-id": 0, "thread-id": 0,
> "socket-id": 0}, "qom-path": "/machine/unattached/device[0]", "cpu-index": 0,
> "target": "x86_64"}]}
>
> instead of
>
> {"return": [{"arch": "x86", "thread-id": 22436, "props": {"core-id": 0,
> "thread-id": 0, "socket-id": 0}, "qom-path": "/machine/unattached/device[0]",
> "cpu-index": 0, "target": "x86_64"}]}
Example may not be relevant much longer, given Dan's patch [1] to make
this permanent since we've already passed the deprecation wait. Up to
you if you want to choose a different example.
https://lists.gnu.org/archive/html/qemu-devel/2021-02/msg07564.html
>
> Note the suppression of deprecated member "arch".
>
> Signed-off-by: Markus Armbruster <[email protected]>
> Reviewed-by: Eric Blake <[email protected]>
> ---
R-b still stands.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization: qemu.org | libvirt.org