[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 6/6] qapi: introduce CONFIG_READ event
From: |
Markus Armbruster |
Subject: |
Re: [PATCH v2 6/6] qapi: introduce CONFIG_READ event |
Date: |
Thu, 07 Mar 2024 11:01:04 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> writes:
> Send a new event when guest reads virtio-pci config after
> virtio_notify_config() call.
>
> That's useful to check that guest fetched modified config, for example
> after resizing disk backend.
>
> Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
[...]
> diff --git a/qapi/qdev.json b/qapi/qdev.json
> index 6ece164172..ffc5e3be18 100644
> --- a/qapi/qdev.json
> +++ b/qapi/qdev.json
> @@ -179,3 +179,29 @@
> { 'command': 'device-sync-config',
> 'features': [ 'unstable' ],
> 'data': {'id': 'str'} }
> +
> +##
> +# @VIRTIO_CONFIG_READ:
> +#
> +# Emitted whenever guest reads virtio device config after config change.
Let's not abbreviate "configuration" to "config".
> +#
> +# @device: device name
> +#
> +# @path: device path
> +#
> +# Features:
> +#
> +# @unstable: The event is experimental.
> +#
> +# Since: 9.0
> +#
> +# Example:
> +#
> +# <- { "event": "VIRTIO_CONFIG_READ",
> +# "data": { "device": "virtio-net-pci-0",
> +# "path": "/machine/peripheral/virtio-net-pci-0" },
> +# "timestamp": { "seconds": 1265044230, "microseconds": 450486 } }
> +##
As for PATCH 4, I'd like to see some guidance on intended use.
> +{ 'event': 'VIRTIO_CONFIG_READ',
> + 'features': [ 'unstable' ],
> + 'data': { '*device': 'str', 'path': 'str' } }
[...]
[PATCH v2 6/6] qapi: introduce CONFIG_READ event, Vladimir Sementsov-Ogievskiy, 2024/03/01
- Re: [PATCH v2 6/6] qapi: introduce CONFIG_READ event,
Markus Armbruster <=
[PATCH v2 1/6] vhost-user-blk: simplify and fix vhost_user_blk_handle_config_change, Vladimir Sementsov-Ogievskiy, 2024/03/01
[PATCH v2 2/6] qdev-monitor: fix error message in find_device_state(), Vladimir Sementsov-Ogievskiy, 2024/03/01
[PATCH v2 5/6] qapi: device-sync-config: check runstate, Vladimir Sementsov-Ogievskiy, 2024/03/01
[PATCH v2 4/6] qapi: introduce device-sync-config, Vladimir Sementsov-Ogievskiy, 2024/03/01